radian icon indicating copy to clipboard operation
radian copied to clipboard

Try replacing Selectrum with Vertico

Open raxod502 opened this issue 3 years ago • 5 comments

Per https://github.com/radian-software/selectrum/issues/598#issuecomment-1121682815

raxod502 avatar May 22 '22 21:05 raxod502

I think for prescient to work you also have to remember the selected candidates in the completion UI. Maybe @okamsn could take a look here and help with a migration guide?

(advice-add #'vertico-insert :after
            (lambda () (prescient-remember (vertico--candidate))))

minad avatar Sep 15 '22 20:09 minad

There is the section on the Vertico wiki: https://github.com/minad/vertico/wiki#using-prescientel-filtering-and-sorting. It is what I'm doing, more or less.

For a migration guide, do you mean one mapping Selectrum features to Vertico+extensions features? Would that be put on the Vertico wiki?

okamsn avatar Sep 16 '22 02:09 okamsn

@okamsn Sure, if you have more information about common Selectrum to Vertico migration issues, or mappings of certain features, feel free to add this to the Vertico wiki.

minad avatar Sep 16 '22 14:09 minad

@minad, I've made a mapping of the settings and features: https://github.com/minad/vertico/wiki/Migrating-from-Selectrum-to-Vertico

I put it on a new page since it felt separate from the content of the other page. Please edit it as you see fit (or let me know what should be changed). The GitHub wiki doesn't seem to accept Org footnotes, so I need to go back and clean those up.

okamsn avatar Sep 17 '22 18:09 okamsn

@okamsn Thanks! This looks already pretty great and covers a lot of ground. When I find time I will go over it again.

minad avatar Sep 17 '22 20:09 minad

Ok, I've been using this for a couple months and I think it's good to go. Will follow up with migrating to vertico-prescient-mode after https://github.com/radian-software/prescient.el/pull/131 is merged.

raxod502 avatar Oct 05 '22 23:10 raxod502