From c35b5b3dc39131d6e528ac8bbff13c1017e83f5a Mon Sep 17 00:00:00 2001 From: d12frosted Date: Sat, 29 Jul 2017 20:56:56 +0300 Subject: [PATCH] set ivy-use-selectable-prompt to t Following #8571. --- layers/+completion/ivy/README.org | 4 +++- layers/+completion/ivy/packages.el | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/layers/+completion/ivy/README.org b/layers/+completion/ivy/README.org index dedb958fb..4dd413076 100644 --- a/layers/+completion/ivy/README.org +++ b/layers/+completion/ivy/README.org @@ -26,13 +26,15 @@ file. You can customize ivy with the following variables: - =ivy-wrap= Whether C-n and C-p should wrap-around when at the the first or - last candidate. The default value is nil. + last candidate. The default value is =nil=. - =ivy-extra-directories= Setting this to =nil= hides . and .. directories from file name completion. You can still go up a directory up by ~DEL~. The default value is ("../", "./"). - =ivy-use-virtual-buffers= Add bookmarks and recent files to buffer completion menu. The Spacemacs default is t. - =ivy-height= The height of the minibuffer. The Spacemacs default is 15. +- =ivy-use-selectable-prompt= When non-nil, make the prompt line selectable like + a candidate. The Spacemacs default value is =t=. * Key Bindings If you choose =ivy= as completion system, make sure to read the [[http://oremacs.com/swiper/][official manual]]. diff --git a/layers/+completion/ivy/packages.el b/layers/+completion/ivy/packages.el index 691f4609c..a33658720 100644 --- a/layers/+completion/ivy/packages.el +++ b/layers/+completion/ivy/packages.el @@ -205,7 +205,10 @@ (spacemacs/set-leader-keys-for-major-mode 'ivy-occur-grep-mode "w" 'ivy-wgrep-change-to-wgrep-mode) ;; Why do we do this ? - (ido-mode -1)))) + (ido-mode -1) + + ;; allow to select prompt in some ivy functions + (setq ivy-use-selectable-prompt t)))) (defun ivy/init-ivy-hydra () (use-package ivy-hydra)