From 6e3f500a3998114dd2037795a62f13baec79c4fa Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 14 May 2018 20:03:36 +0200 Subject: [PATCH] completion/ivy: ivy-use-selectable-prompt = t Solves the "I want to enter something new, but it also is a part of a match" issue. Thanks to @gilbertw1 for letting me know about this. As such, the C-RET keybind from 310d81ab is no longer necessary --- modules/completion/ivy/config.el | 4 +++- modules/config/default/+bindings.el | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/completion/ivy/config.el b/modules/completion/ivy/config.el index 9259fdb85..148138262 100644 --- a/modules/completion/ivy/config.el +++ b/modules/completion/ivy/config.el @@ -44,7 +44,9 @@ immediately runs it on the current candidate (ending the ivy session)." ;; ...but if that ever changes, show their full path ivy-virtual-abbreviate 'full ;; don't quit minibuffer on delete-error - ivy-on-del-error-function nil) + ivy-on-del-error-function nil + ;; enable ability to select prompt (alternative to `ivy-immediate-done') + ivy-use-selectable-prompt t) (after! magit (setq magit-completing-read-function #'ivy-completing-read)) (after! yasnippet (push #'+ivy-yas-prompt yas-prompt-functions)) diff --git a/modules/config/default/+bindings.el b/modules/config/default/+bindings.el index 3359cd7eb..4d0e3a9d4 100644 --- a/modules/config/default/+bindings.el +++ b/modules/config/default/+bindings.el @@ -574,7 +574,6 @@ (:after ivy :map ivy-minibuffer-map [escape] #'keyboard-escape-quit - [C-return] #'ivy-immediate-done "C-SPC" #'ivy-call-and-recenter "M-z" #'undo "M-v" #'yank