File: vertico-repeat.el.html
This package is a Vertico extension, which enables repetition of
Vertico sessions via the vertico-repeat, vertico-repeat-previous
and vertico-repeat-select commands. If the repeat commands are
called from an existing Vertico minibuffer session, only sessions
corresponding to the current minibuffer command are offered via
completion.
It is necessary to register a minibuffer setup hook, which saves
the Vertico state for repetition. In order to save the history
across Emacs sessions, enable savehist-mode(var)/savehist-mode(fun).
(keymap-global-set "M-R" #'vertico-repeat)
(keymap-set vertico-map "M-P" #'vertico-repeat-previous)
(keymap-set vertico-map "M-N" #'vertico-repeat-next)
(keymap-set vertico-map "S-<prior>" #'vertico-repeat-previous)
(keymap-set vertico-map "S-<next>" #'vertico-repeat-next)
(add-hook 'minibuffer-setup-hook #'vertico-repeat-save)
See also the related extension vertico-suspend, which uses a
different technique, relying on recursive minibuffers to suspend
the current completion session temporarily while preserving the
entire state.
Defined variables (2)
Defined functions (13)
vertico-repeat | (&optional ARG) |
vertico-repeat--current | |
vertico-repeat--filter-commands | |
vertico-repeat--filter-empty | |
vertico-repeat--remember-input | |
vertico-repeat--remove-long | |
vertico-repeat--restore | |
vertico-repeat--run | |
vertico-repeat--save-on-exit | |
vertico-repeat-next | (N) |
vertico-repeat-previous | (N) |
vertico-repeat-save | [Arg list not available until function definition is loaded.] |
vertico-repeat-select | [Arg list not available until function definition is loaded.] |