-
|
Hello! I have switched from flyspell and while I am a vertico user I still don't find the UI efficient enough (for all the reasons already mentioned in #30). The workarounds proposed in #30 are rather complex for my taste. So I would be reasonably happy to achieve a minimal vertico setup by reusing the triggering key for vertico-next and auto-selecting the first candidate from the list. This would come close to I bind (define-key jinx-correct-map (kbd "M-$") #'vertico-next)What is left is preselecting the first candidate in the menu but I cannot make this work. My Would you be so kind to advice for how to achieve the first candidate pre-selecton? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I am not sure what you want to achieve exactly, but you can press the key 1 to quickly select the first candidate and commit it directly. You could also try keyboard macros. For example this keyboard macro (keymap-global-set "C-M-$" #'jinx-correct)
(keymap-global-set "M-$" "C-M-$ 1")You could also bind (keymap-global-set "M-$" #'jinx-correct)
(keymap-set jinx-correct-map "M-$" "1")Then you can press Regarding |
Beta Was this translation helpful? Give feedback.
-
I am trying to get as close as possible to the behavior of If I bind C-; to I have tried a macro per your suggestion My ideal scenario would be to be able
For the first candidate selection I have tried the following but it does not work. During the setup the completion buffer is still not available: (defun my/vertico-setup-for-jinx ()
(when (eq this-command 'jinx-correct)
(vertico-first)))
(advice-add 'vertico--setup :after #'my/vertico-setup-for-jinx) |
Beta Was this translation helpful? Give feedback.
Did you try the function provided at #30 (comment)? How close is this to your desired behavior?
Implementing this via vertico-next and performing the action would work with embark-dwim I guess, but it would be a hack.
Delaying should help.