refactor(selectrum): Move evil bindings where they belong
This commit is contained in:
parent
d760474e1d
commit
b4e1b2130c
3 changed files with 26 additions and 24 deletions
|
@ -2,3 +2,4 @@
|
||||||
** TODO SPC-s-p
|
** TODO SPC-s-p
|
||||||
** TODO SPC-s-b
|
** TODO SPC-s-b
|
||||||
** TODO Start-up with recent files
|
** TODO Start-up with recent files
|
||||||
|
** TODO Add vanilla keybindings
|
||||||
|
|
|
@ -12,18 +12,7 @@
|
||||||
:config
|
:config
|
||||||
(defadvice! +selectrum-refresh-on-cycle (&rest _)
|
(defadvice! +selectrum-refresh-on-cycle (&rest _)
|
||||||
:after 'marginalia-cycle
|
:after 'marginalia-cycle
|
||||||
(when (bound-and-true-p selectrum-mode) (selectrum-exhibit)))
|
(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)))
|
|
||||||
|
|
||||||
(use-package! selectrum-prescient
|
(use-package! selectrum-prescient
|
||||||
:when (featurep! +prescient)
|
:when (featurep! +prescient)
|
||||||
|
@ -79,17 +68,6 @@
|
||||||
(use-package! embark
|
(use-package! embark
|
||||||
:defer t
|
:defer t
|
||||||
:init
|
: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
|
(setq embark-action-indicator
|
||||||
(lambda (map)
|
(lambda (map)
|
||||||
(which-key--show-keymap "Embark" map nil nil 'no-paging)
|
(which-key--show-keymap "Embark" map nil nil 'no-paging)
|
||||||
|
|
|
@ -200,7 +200,30 @@
|
||||||
(:after helm-occur :map helm-occur-map
|
(:after helm-occur :map helm-occur-map
|
||||||
[C-return] #'helm-occur-run-goto-line-ow)
|
[C-return] #'helm-occur-run-goto-line-ow)
|
||||||
(:after helm-grep :map helm-grep-map
|
(: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
|
;;; :ui
|
||||||
(map! (:when (featurep! :ui popup)
|
(map! (:when (featurep! :ui popup)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue