refactor(selectrum): Move evil bindings where they belong

This commit is contained in:
Edmund Miller 2021-02-16 20:16:29 -06:00 committed by Itai Y. Efrat
parent d760474e1d
commit b4e1b2130c
3 changed files with 26 additions and 24 deletions

View file

@ -2,3 +2,4 @@
** TODO SPC-s-p
** TODO SPC-s-b
** TODO Start-up with recent files
** TODO Add vanilla keybindings

View file

@ -12,18 +12,7 @@
:config
(defadvice! +selectrum-refresh-on-cycle (&rest _)
:after 'marginalia-cycle
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit)))
(map!
:g "C-s-r" #'selectrum-repeat
(:map selectrum-minibuffer-map
:geni "M-RET" #'selectrum-submit-exact-input
:geni "C-j" #'selectrum-next-candidate
:geni "C-S-j" #'selectrum-next-page
:geni "C-s-j" #'selectrum-goto-end
:geni "C-k" #'selectrum-previous-candidate
:geni "C-S-k" #'selectrum-previous-page
:geni "C-s-k" #'selectrum-goto-beginning)))
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit))))
(use-package! selectrum-prescient
:when (featurep! +prescient)
@ -79,17 +68,6 @@
(use-package! embark
:defer t
:init
(map!
:g "C-s-e" #'embark-act
(:map minibuffer-local-completion-map
"C-c C-o" #'embark-export
"C-c C-c" #'embark-act-noexit)
(:map embark-file-map
:desc "Open Dired on target" :g "j" #'ffap-dired
:desc "Open target with sudo" :g "s" #'sudo-edit
:desc "Open target with vlf" :g "l" #'vlf)
(:map embark-file-map
:desc "Cycle marginalia views" :g "A" #'marginalia-cycle))
(setq embark-action-indicator
(lambda (map)
(which-key--show-keymap "Embark" map nil nil 'no-paging)

View file

@ -200,7 +200,30 @@
(:after helm-occur :map helm-occur-map
[C-return] #'helm-occur-run-goto-line-ow)
(:after helm-grep :map helm-grep-map
[C-return] #'helm-grep-run-other-window-action)))
[C-return] #'helm-grep-run-other-window-action))
(:when (featurep! :completion selectrum)
(:after selectrum
"C-s-r" #'selectrum-repeat
:map selectrum-minibuffer-map
"M-RET" #'selectrum-submit-exact-input
"C-j" #'selectrum-next-candidate
"C-S-j" #'selectrum-next-page
"C-s-j" #'selectrum-goto-end
"C-k" #'selectrum-previous-candidate
"C-S-k" #'selectrum-previous-page
"C-s-k" #'selectrum-goto-beginning)
(:after embark
"C-o" #'embark-act
:map minibuffer-local-completion-map
"C-c C-o" #'embark-export
"C-c C-c" #'embark-act-noexit
:map embark-file-map
:desc "Open Dired on target" "j" #'ffap-dired
:desc "Open target with sudo" "s" #'sudo-edit
:desc "Open target with vlf" "l" #'vlf
:map embark-file-map
:desc "Cycle marginalia views" "A" #'marginalia-cycle)))
;;; :ui
(map! (:when (featurep! :ui popup)