feat(vertico): add embark-collect-snapshot binding
The C-c C-s binding mirrors the export and writable export bindings. embark-export is used for type specific exports (such as buffers to an ibuffer buffer), not for verbatim exports. This is most noticeable if you want to export a variable list, which gets you to an apropos buffer. if you just want a list of things to keep around, embark-collect-snapshot is the tool for the job, but having it be only on C-; S makes it harder to reach and less visible. C-c C-s is a nice visible thing to have around.
This commit is contained in:
parent
1e2d5485a9
commit
09add70efd
2 changed files with 11 additions and 9 deletions
|
@ -79,15 +79,16 @@ Doom-specific additions:
|
||||||
When in an active Vertico completion session, the following doom added
|
When in an active Vertico completion session, the following doom added
|
||||||
keybindings are available:
|
keybindings are available:
|
||||||
|
|
||||||
| Keybind | Description |
|
| Keybind | Description |
|
||||||
|-----------------------+----------------------------------------------------|
|
|-----------------------+-------------------------------------------------------------------------------|
|
||||||
| =C-k= | (evil) Go to previous candidate |
|
| =C-k= | (evil) Go to previous candidate |
|
||||||
| =C-j= | (evil) Go to next candidate |
|
| =C-j= | (evil) Go to next candidate |
|
||||||
| =C-M-k= | (evil) Go to previous group |
|
| =C-M-k= | (evil) Go to previous group |
|
||||||
| =C-M-j= | (evil) Go to next group |
|
| =C-M-j= | (evil) Go to next group |
|
||||||
| =C-;= or =<leader> a= | Open an ~embark-act~ menu to chose a useful action |
|
| =C-;= or =<leader> a= | Open an ~embark-act~ menu to chose a useful action |
|
||||||
| =C-c C-;= | export the current candidate list to a buffer |
|
| =C-c C-;= | ~embark-export~ the current candidate list (export to a type-specific buffer) |
|
||||||
| =C-SPC= | Preview the current candidate |
|
| =C-c C-s= | ~embark-collect-snapsnot~ the current candidate list (collect verbatim) |
|
||||||
|
| =C-SPC= | Preview the current candidate |
|
||||||
|
|
||||||
~embark-act~ will prompt you with a =which-key= menu with useful commands on the
|
~embark-act~ will prompt you with a =which-key= menu with useful commands on the
|
||||||
selected candidate or candidate list, depending on the completion category. Note
|
selected candidate or candidate list, depending on the completion category. Note
|
||||||
|
|
|
@ -172,6 +172,7 @@ orderless."
|
||||||
(:map minibuffer-local-map
|
(:map minibuffer-local-map
|
||||||
"C-;" #'embark-act
|
"C-;" #'embark-act
|
||||||
"C-c C-;" #'embark-export
|
"C-c C-;" #'embark-export
|
||||||
|
"C-c C-s" #'embark-collect-snapshot
|
||||||
:desc "Export to writable buffer" "C-c C-e" #'+vertico/embark-export-write)
|
:desc "Export to writable buffer" "C-c C-e" #'+vertico/embark-export-write)
|
||||||
(:leader
|
(:leader
|
||||||
: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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue