minad / cape

🦸cape.el - Completion At Point Extensions
GNU General Public License v3.0
573 stars 20 forks source link

Control of sort order of cape-history #122

Closed ashlineldridge closed 2 weeks ago

ashlineldridge commented 2 weeks ago

I like to use cape-history and consult-history in different contexts and I also like to use Corfu's move to minibuffer for moving a cape-history completion to the minibuffer. I've noticed that the order of results returned by cape-history is different to consult-history. I believe this is controlled by Vertico's vertico-sort-function variable. For history completion, the nice thing about controlling the sort is so that more recently used commands are shown first by specifying the value #'vertico-sort-history-length-alpha. Is control over sort ordering possible with cape-history?