Disable candidate restriction in ivy

The main motivation is me often mistyping S-SPC for SPC, loosing my current
candidates and frustrating myself.  This is even more frustrating when inserting
text into non-selection inputs (org-capture), which is why we had disabled ivy
completion for org-capture previously.  Since we are no using
ivy--regex-ignore-order for candidate regex building anyway, input restriction
is not necessary anymore, and so we remove the shortcut altogether.
Daniel Borchmann 2021-01-02 16:33:23 +01:00
parent 0e21e68aca
commit bac20f30c3
No known key found for this signature in database
GPG Key ID: 1C7071A75BB72D64
1 changed files with 8 additions and 2 deletions

View File

@ -2160,8 +2160,14 @@
ivy-use-selectable-prompt t
ivy-do-completion-in-region t
ivy-re-builders-alist '((t . ivy--regex-ignore-order)))
:config (add-to-list 'ivy-completing-read-handlers-alist
'(org-capture . completing-read-default)))
:config (progn
;; Since we are using `ivy--regex-ignore-order' for completion
;; anyway, providing the an individual restriction in the ivy buffer
;; is not necessary anymore. Since I often mistype S-SPC for SPC,
;; loosing the current candidate and annoying myself, removing this
;; shortcut is both helpful and not removing necessary
;; functionality.
(define-key ivy-minibuffer-map (kbd "S-SPC") nil)))
(use-package ivy-hydra)