1

I'm coming from Helm to Ivy just to try it out, and one thing I miss greatly from Helm is how the default candidate when hitting M-x is whatever the last command was.

Is there some way to sort Ivy's results by most-recently used?

  • Not exactly what you want but might help: Ivy re-uses the following packages if they are installed: avy, amx or smex, flx, and wgrep. So if you install smex you will have your last used commands at the top. – Hubisan Dec 3 '19 at 13:55
  • I would additionally suggest ivy-prescient(github.com/raxod502/prescient.el). – Aquaactress Dec 4 '19 at 20:37
  • @Aquaactress That worked. Thank you! If you turn it into an answer I'll accept it. – Ashton Wiersdorf Dec 5 '19 at 20:11
2

I would suggest using ivy-prescient. It is a package that provides sorting and filtering for ivy.

After installing it, you enable it with ivy-prescient-mode.

For more details on it's usage see its usage README section.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.