selectrum: improve wgrep

- add `:demand t` to `embark-consult` so it works on first call
- add `C-c C-e` to `consult-grep`
This commit is contained in:
Itai Y. Efrat
2021-05-07 21:27:14 +03:00
parent 341343308a
commit 8957f02ab2
3 changed files with 29 additions and 1 deletions

View File

@@ -31,6 +31,7 @@
(map! :map selectrum-minibuffer-map
"C-o" #'embark-act
"C-c C-o" #'embark-export
"C-c C-e" #'+selectrum/embark-wgrep
[backspace] #'+selectrum/backward-updir))
(use-package! selectrum-prescient
@@ -123,7 +124,8 @@
: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))
:desc "Cycle marginalia views" "A" #'marginalia-cycle)
(set-popup-rule! "^\\*Embark Export" :size 0.35 :ttl 0 :quit nil))
(use-package! marginalia
:hook (doom-first-input . marginalia-mode)
@@ -134,6 +136,7 @@
(use-package! embark-consult
:after (embark consult)
:demand t
:hook
(embark-collect-mode . embark-consult-preview-minor-mode))