fix(vertico): which-key buffer on embark prompter
The which-key buffer now disappears immediately on using embark-completing-read-prompter, instead of only after further user input.
This commit is contained in:
parent
6e629c1c53
commit
423939033f
1 changed files with 8 additions and 0 deletions
|
@ -168,6 +168,14 @@ orderless."
|
||||||
:desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted
|
:desc "Actions" "a" #'embark-act)) ; to be moved to :config default if accepted
|
||||||
:config
|
:config
|
||||||
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
|
(set-popup-rule! "^\\*Embark Export Grep" :size 0.35 :ttl 0 :quit nil)
|
||||||
|
|
||||||
|
(defadvice! +vertico--embark-which-key-prompt-a (fn &rest args)
|
||||||
|
"Hide the which-key indicator immediately when using the completing-read prompter."
|
||||||
|
:around #'embark-completing-read-prompter
|
||||||
|
(which-key--hide-popup-ignore-command)
|
||||||
|
(let ((embark-indicators
|
||||||
|
(remq #'embark-which-key-indicator embark-indicators)))
|
||||||
|
(apply fn args)))
|
||||||
(cl-nsubstitute #'+vertico-embark-which-key-indicator #'embark-mixed-indicator embark-indicators)
|
(cl-nsubstitute #'+vertico-embark-which-key-indicator #'embark-mixed-indicator embark-indicators)
|
||||||
(add-to-list 'embark-indicators #'+vertico-embark-vertico-indicator)
|
(add-to-list 'embark-indicators #'+vertico-embark-vertico-indicator)
|
||||||
;; add the package! target finder before the file target finder,
|
;; add the package! target finder before the file target finder,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue