selectrum: improve bindings
- add missing emacs bindings - properly feature guard swiper related bindings - for selectrum, unbind `SPC s B` and temporarily bind `SPC s s` to isearch to prevent don't get errors until we decide what to do there. - update readme to reflect that
This commit is contained in:
parent
c349a0a046
commit
ed922a62cb
5 changed files with 33 additions and 18 deletions
|
@ -27,9 +27,11 @@ If prefix ARG is set, prompt for a directory to search from."
|
|||
If a selection is active, pre-fill the prompt with it."
|
||||
(interactive)
|
||||
(call-interactively
|
||||
(if (region-active-p)
|
||||
#'swiper-isearch-thing-at-point
|
||||
#'swiper-isearch)))
|
||||
(cond ((or (featurep! :completion helm) (featurep! :completion ivy))
|
||||
(if (region-active-p)
|
||||
#'swiper-isearch-thing-at-point
|
||||
#'swiper-isearch))
|
||||
((featurep! :completion selectrum) #'isearch-forward))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +default/search-project (&optional arg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue