Configure vertico-directory and add a table with key bindings

This commit is contained in:
Gerard Vermeulen 2022-01-10 08:47:45 +01:00
parent 75b2eec102
commit ba6470c0d1

View File

@ -459,9 +459,40 @@ file.
search-string))) search-string)))
(savehist-mode +1) (savehist-mode +1)
(when (fboundp 'vertico-mode) (when (fboundp 'vertico-mode)
(vertico-mode +1))) (vertico-mode +1))
(with-eval-after-load 'vertico
(define-key vertico-map (kbd "RET") #'vertico-directory-enter)
(define-key vertico-map (kbd "DEL") #'vertico-directory-delete-char)
(define-key vertico-map (kbd "M-DEL") #'vertico-directory-delete-word)))
#+end_src #+end_src
#+attr_latex: :booktabs yes :float table
#+caption[Vertico key map bindings]:
#+caption: Vertico key map bindings.
#+name: tab:vertico-keymap-bindings
|---------------------------------+---------------------+------------------------------------|
| command | keys | remap |
|---------------------------------+---------------------+------------------------------------|
| =vertico-directory-delete-char= | {{{kbd(DEL)}}} | |
| =vertico-directory-delete-word= | {{{kbd(M-DEL)}}} | |
| =vertico-directory-enter= | {{{kbd(RET)}}} | |
| =vertico-exit= | {{{kbd(C-j)}}} | =exit-minibuffer= |
| =vertico-exit-input= | {{{kbd(C-RET)}}} | |
| =vertico-first= | {{{kbd(M-<)}}} | =beginning-of-buffer= |
| =vertico-first= | {{{kbd(M-<)}}} | =minibuffer-beginning-of-buffer= |
| =vertico-insert= | {{{kbd(TAB)}}} | |
| =vertico-last= | {{{kbd(M->)}}} | =end-of-buffer= |
| =vertico-next-group= | {{{kbd(C-<down>)}}} | =forward-paragraph= |
| =vertico-next= | {{{kbd(<down>)}}} | =next-line-or-history-element= |
| =vertico-next= | {{{kbd(C-n)}}} | =next-line= |
| =vertico-previous-group= | {{{kbd(C-<up>)}}} | =backward-paragraph= |
| =vertico-previous= | {{{kbd(<up>)}}} | =previous-line-or-history-element= |
| =vertico-previous= | {{{kbd(C-p)}}} | =previous-line= |
| =vertico-save= | {{{kbd(M-w)}}} | =kill-ring-save= |
| =vertico-scroll-down= | {{{kbd(M-v)}}} | =scroll-down-command= |
| =vertico-scroll-up= | {{{kbd(C-v)}}} | =scroll-up-command= |
|---------------------------------+---------------------+------------------------------------|
** [[info:orderless#Top][Orderless (info)]] ** [[info:orderless#Top][Orderless (info)]]
:PROPERTIES: :PROPERTIES:
:CUSTOM_ID: sec:orderless-configuration :CUSTOM_ID: sec:orderless-configuration
@ -528,7 +559,7 @@ Listing [[lst:enable-marginalia-mode]] enables =marginalia-mode=.
Listing [[lst:configure-consult]] configures =consult=. Listing [[lst:configure-consult]] configures =consult=.
#+attr_latex: :booktabs yes :float table #+attr_latex: :booktabs yes :float table
#+caption[Configuration specific key binding]: #+caption[Configuration specific key bindings]:
#+caption: Configuration specific key-bindings. #+caption: Configuration specific key-bindings.
#+name: tab:configuration-specific-key-bindings #+name: tab:configuration-specific-key-bindings
|-------------------------------+---------------------+------------------------| |-------------------------------+---------------------+------------------------|