From ba6470c0d199a09155d9f62ff7b03bf241178e60 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Mon, 10 Jan 2022 08:47:45 +0100 Subject: [PATCH] Configure vertico-directory and add a table with key bindings --- README.org | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index a59478a..d94ce7a 100644 --- a/README.org +++ b/README.org @@ -459,9 +459,40 @@ file. search-string))) (savehist-mode +1) (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 +#+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-)}}} | =forward-paragraph= | +| =vertico-next= | {{{kbd()}}} | =next-line-or-history-element= | +| =vertico-next= | {{{kbd(C-n)}}} | =next-line= | +| =vertico-previous-group= | {{{kbd(C-)}}} | =backward-paragraph= | +| =vertico-previous= | {{{kbd()}}} | =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)]] :PROPERTIES: :CUSTOM_ID: sec:orderless-configuration @@ -528,7 +559,7 @@ Listing [[lst:enable-marginalia-mode]] enables =marginalia-mode=. Listing [[lst:configure-consult]] configures =consult=. #+attr_latex: :booktabs yes :float table -#+caption[Configuration specific key binding]: +#+caption[Configuration specific key bindings]: #+caption: Configuration specific key-bindings. #+name: tab:configuration-specific-key-bindings |-------------------------------+---------------------+------------------------|