From b184cdaef02c8edbaf9fe4126a585377ffb90159 Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Wed, 4 Nov 2020 10:37:50 +0100 Subject: [PATCH] (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. --- org-roam-completion.el | 1 + 1 file changed, 1 insertion(+) diff --git a/org-roam-completion.el b/org-roam-completion.el index 8313908..e2c6c15 100644 --- a/org-roam-completion.el +++ b/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))