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:
Itai Y. Efrat 2021-05-17 15:44:39 +03:00
parent c349a0a046
commit ed922a62cb
5 changed files with 33 additions and 18 deletions

View file

@ -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)