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?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityI 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.
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.