(feat): use :preselect for ivy-read completions (#1234)

This way, in case of the initial-input being an exact match, ivy will suggest this one first.
This commit is contained in:
Samuel Loury
2020-11-04 10:37:50 +01:00
committed by GitHub
parent b2cc997976
commit b184cdaef0

View File

@ -79,6 +79,7 @@ Return user choice."
(if (fboundp 'ivy-read)
(ivy-read prompt choices
:initial-input initial-input
:preselect initial-input
:require-match require-match
:action (prog1 action
(setq action nil))