(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.
master
Samuel Loury 5 years ago committed by GitHub
parent b2cc997976
commit b184cdaef0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      org-roam-completion.el

@ -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))

Loading…
Cancel
Save