Alexander-Miller/treemacs@96a808f067 -> Alexander-Miller/treemacs@820b09db10 FStarLang/fstar-mode.el@36ffb46259 -> FStarLang/fstar-mode.el@3bbfe93abd JuliaEditorSupport/julia-emacs@0f4d74f904 -> JuliaEditorSupport/julia-emacs@5c940c4ba3 ProofGeneral/PG@85cde55a86 -> ProofGeneral/PG@af2e7b9a4e Silex/docker.el@3bea08f1d2 -> Silex/docker.el@464105ed8b Wilfred/helpful@6a4d5e0760 -> Wilfred/helpful@03756fa6ad abo-abo/swiper@e33b028ed4 -> abo-abo/swiper@2529a23f9f agda/agda@49a12eab7f -> agda/agda@900bdaa335 alexluigit/dirvish@ecb7c42e20 -> alexluigit/dirvish@e8ec5765da ardumont/markdown-toc@d2fb4cbd95 -> ardumont/markdown-toc@1b0c5ae7f3 bastibe/org-journal@cf72173233 -> bastibe/org-journal@e581bf5530 clojure-emacs/cider@fdfa7c2200 -> clojure-emacs/cider@12f10a6f4b clojure-emacs/clojure-mode@eabe29b076 -> clojure-emacs/clojure-mode@b766094aea company-mode/company-mode@8d599ebc8a -> company-mode/company-mode@41f07c7d40 creichert/ido-vertical-mode.el@b1659e967d -> creichert/ido-vertical-mode.el@35c521789b dgutov/diff-hl@7da881a957 -> dgutov/diff-hl@aa667ac58a dimitri/switch-window@61e425e703 -> dimitri/switch-window@8f771b571a doomelpa/code-review@eeffdd9e20 -> doomelpa/code-review@fba8fe3343 editorconfig/editorconfig-emacs@1a9942746c -> editorconfig/editorconfig-emacs@d2beb3ec2e ema2159/centaur-tabs@7704f2017c -> ema2159/centaur-tabs@a790dc8fb6 emacs-circe/circe@d0e531bd2a -> emacs-circe/circe@e5e64d549f emacs-citar/citar-org-roam@ff38add0aa -> emacs-citar/citar-org-roam@9750cfbbf3 emacs-ess/ESS@56f355acbd -> emacs-ess/ESS@d19efaae12 emacs-helm/helm-org@22d60952f8 -> emacs-helm/helm-org@4744ca7f8b emacs-helm/helm@f948dc4464 -> emacs-helm/helm@5a222a8a6b emacs-lsp/dap-mode@56e92dd86b -> emacs-lsp/dap-mode@b977566657 emacs-lsp/emacs-ccls@28c7930c89 -> emacs-lsp/emacs-ccls@5636ee6c50 emacs-lsp/helm-lsp@cf4ea6fb42 -> emacs-lsp/helm-lsp@54926afd10 emacs-lsp/lsp-dart@2170823139 -> emacs-lsp/lsp-dart@34e2a1191f emacs-lsp/lsp-haskell@cd0f5d251c -> emacs-lsp/lsp-haskell@081d5115ce emacs-lsp/lsp-ivy@bdc730a209 -> emacs-lsp/lsp-ivy@3ee14a24bb emacs-lsp/lsp-java@6cfff8761e -> emacs-lsp/lsp-java@21c89243ad emacs-lsp/lsp-metals@345b4fa80e -> emacs-lsp/lsp-metals@e1d9d04f3b emacs-lsp/lsp-mode@7c0df125c1 -> emacs-lsp/lsp-mode@54251da4ff emacs-lsp/lsp-pyright@b4cee81af4 -> emacs-lsp/lsp-pyright@73377169be emacs-lsp/lsp-sourcekit@3bd9750e7e -> emacs-lsp/lsp-sourcekit@1fb230109e emacs-lsp/lsp-treemacs@312dee2b3a -> emacs-lsp/lsp-treemacs@3e5550f278 emacs-lsp/lsp-ui@09d4080642 -> emacs-lsp/lsp-ui@a0dde8b52b emacs-php/composer.el@6c7e19256f -> emacs-php/composer.el@eba6b953a4 emacs-php/php-mode@5b6cc1c068 -> emacs-php/php-mode@462b62248f emacs-php/psysh.el@ae15a36301 -> emacs-php/psysh.el@223bf55975 emacs-rustic/rustic@22a5ef8bfd -> emacs-rustic/rustic@29f912c750 emacs-straight/auctex@6fb366064c -> emacs-straight/auctex@f58a2b972b emacs-straight/dape@c7a1f1abdb -> emacs-straight/dape@588a907c87 emacs-straight/eglot@6a9e0c76b9 -> emacs-straight/eglot@928c216af5 emacs-straight/org-mode@74dde3abae -> emacs-straight/org-mode@79781bac69 emacs-straight/project@369ac661c8 -> emacs-straight/project@27c6b04914 emacs-straight/sml-mode@021233f60a -> emacs-straight/sml-mode@c33659fd9b emacs-straight/use-package@d79bac4574 -> emacs-straight/use-package@bbfe01bdf1 emacs-straight/vundo@c32481ab48 -> emacs-straight/vundo@5a666b34e4 emacs-tree-sitter/elisp-tree-sitter@8516c9977e -> emacs-tree-sitter/elisp-tree-sitter@12f92ef399 emacs-tree-sitter/tree-sitter-langs@2ff446b4b8 -> emacs-tree-sitter/tree-sitter-langs@4eb4989d1a emacsmirror/org-contrib@8d14a600a2 -> emacsmirror/org-contrib@f1f6b6ec81 emacsorphanage/dart-mode@6229941ec5 -> emacsorphanage/dart-mode@f82ff05230 emacsorphanage/ox-pandoc@34e6ea97b5 -> emacsorphanage/ox-pandoc@5766c70b6d emacsorphanage/quickrun@4b6df453f8 -> emacsorphanage/quickrun@a5c9a5e8c6 ericdallo/hover.el@4ca0638a14 -> ericdallo/hover.el@1b380fa395 erlang/otp@740af6bae5 -> erlang/otp@b9d3ec017d flycheck/flycheck@b9db1379dc -> flycheck/flycheck@16b536b031 fsharp/emacs-fsharp-mode@bf7a11e1ba -> fsharp/emacs-fsharp-mode@8d08f05788 godotengine/emacs-gdscript-mode@3f3739dd88 -> godotengine/emacs-gdscript-mode@5136be407a greghendershott/racket-mode@88d82e249e -> greghendershott/racket-mode@c4cc7c160b hakimel/reveal.js@dfc5690c6d -> hakimel/reveal.js@eb95b14531 haskell/haskell-mode@be2639592f -> haskell/haskell-mode@e9c3567393 https://git.notmuchmail.org/git/notmuch@dfc800c26e7b -> https://git.notmuchmail.org/git/notmuch@d8ebc9cf80b6 https://git.savannah.gnu.org/git/emms.git@8713a0ee985c -> https://git.savannah.gnu.org/git/emms.git@abb4f614dae6 idris-hackers/idris-mode@09de86a8f0 -> idris-hackers/idris-mode@ccf32ed0b5 jcollard/elm-mode@699841865e -> jcollard/elm-mode@90b72cd2c9 jdtsmith/indent-bars@fa293f98ab -> jdtsmith/indent-bars@ea74161b46 jdtsmith/ultra-scroll@b72c507f67 -> jdtsmith/ultra-scroll@f2e4fba601 jimhourihan/glsl-mode@c5f2c2e7ed -> jimhourihan/glsl-mode@86e6bb6cf2 joaotavora/sly@c48defcf58 -> joaotavora/sly@ce17a568ef jrblevin/markdown-mode@d2d960bec1 -> jrblevin/markdown-mode@90ad4af79a jschaf/powershell.el@38727f1cda -> jschaf/powershell.el@9efa1b4d0a magit/magit@bf58615a03 -> magit/magit@531e7ca619 minad/cape@f72ebcaeff -> minad/cape@5546a2db8e minad/consult-flycheck@3bc2141daf -> minad/consult-flycheck@77d3e790a3 minad/consult@f94d557807 -> minad/consult@ee64a2a299 minad/corfu@061d926d0f -> minad/corfu@2e05fe8244 minad/goggles@d71e85ff8d -> minad/goggles@6141d31c51 minad/marginalia@c51fd9e4d4 -> minad/marginalia@2ff4d690f7 minad/org-modern@3cc432dc99 -> minad/org-modern@6158d3d007 minad/vertico@e0bb699ebf -> minad/vertico@304be874be mohkale/consult-yasnippet@834d39acfe -> mohkale/consult-yasnippet@a3482dfbdc msnoigrs/ox-rst@b4ba5c7e95 -> msnoigrs/ox-rst@b73eff187e oantolin/embark@d5df0eff18 -> oantolin/embark@923d0ec52e ocaml/dune@a46193e167 -> ocaml/dune@422986440e ocaml/merlin@2eeb63d002 -> ocaml/merlin@e4c66857ad oer/org-re-reveal@53e9be7d89 -> oer/org-re-reveal@89ed240450 polymode/poly-R@8024e852cf -> polymode/poly-R@fee0b6e999 purcell/package-lint@43012b41ac -> purcell/package-lint@2dc48e5fb9 purescript-emacs/purescript-mode@a3d6ca4ba5 -> purescript-emacs/purescript-mode@8c4736759a pythonic-emacs/pyenv-mode@7faed57eb7 -> pythonic-emacs/pyenv-mode@ba1a8c7bd7 rust-lang/rust-mode@efd830806c -> rust-lang/rust-mode@25d91cff28 seagle0128/doom-modeline@1708db2d35 -> seagle0128/doom-modeline@a85cb28da8 seagle0128/grip-mode@e90e3b47d8 -> seagle0128/grip-mode@96a927dce6 seagle0128/nerd-icons-ivy-rich@5006f91b49 -> seagle0128/nerd-icons-ivy-rich@83c7b60595 sebasmonia/sharper@496e90e337 -> sebasmonia/sharper@5049795848 swift-emacs/swift-mode@2c0b2b72dc -> swift-emacs/swift-mode@e30b9d46e0 szermatt/emacs-bash-completion@a4c8fbc902 -> szermatt/emacs-bash-completion@d0637428fd technomancy/fennel-mode@811f39de12 -> technomancy/fennel-mode@df8e83d6e2 wanderlust/wanderlust@6a0605415d -> wanderlust/wanderlust@d6dcbad228 weijiangan/flycheck-golangci-lint@424ba1b3a1 -> weijiangan/flycheck-golangci-lint@14bf143ea7 ziglang/zig-mode@4ad4edf759 -> ziglang/zig-mode@c46d024733
:completion vertico
Description unfold
This module enhances the Emacs search and completion experience, and also provides a united interface for project search and replace, powered by ripgrep.
It does this with several modular packages focused on enhancing the built-in
completing-read
interface, rather than replacing it with a parallel ecosystem
like doom-package:ivy and doom-package:helm do. The primary packages are:
- Vertico, which provides the vertical completion user interface
- Consult, which provides a suite of useful commands using
completing-read
- Embark, which provides a set of minibuffer actions
- Marginalia, which provides annotations to completion candidates
- Orderless, which provides better filtering methods
Maintainers
Module flags
- +childframe
- Display completion candidates in a child frame rather than an overlay or tooltip. Requires GUI Emacs.
- +icons
-
Add icons to
file
andbuffer
category completion selections.
Packages
- doom-package:nerd-icons-completion if doom-module:+icons
- doom-package:consult
- doom-package:consult-flycheck if doom-module::checkers syntax
- doom-package:embark
- doom-package:embark-consult
- doom-package:marginalia
- doom-package:orderless
- doom-package:vertico
- doom-package:vertico-posframe if doom-module:+childframe
- doom-package:wgrep
Hacks
No hacks documented for this module.
TODO Changelog
This module does not have a changelog yet.
Installation
Enable this module in your doom!
block.
This module has only one requirement: Ripgrep (built with PCRE support; run $
doom doctor
to determine if your build meets this requirement), which is a hard
dependency of Doom itself, so you should already have it installed.
Otherwise, Consult (a plugin this module installs) provides many commands to interface with a variety of programs from fzf to Dash docsets to pass and much more. These programs are optional for this module, but must be installed if you intend to use their associated Helm command or plugin.
TODO Usage
This module's usage documentation is incomplete. Complete it?
The packages in this module modify and use the built-in completing-read
function, which is used by any function that requires completion. Due to this
the full scope of these packages is too large to cover here and you are
encouraged to go and read their excellent documentation. We will detail
Doom-specific additions:
Vertico keybindings
When in an active Vertico completion session, the following doom added keybindings are available:
Keybind | Description |
---|---|
C-k | (evil) Go to previous candidate |
C-j | (evil) Go to next candidate |
C-M-k | (evil) Go to previous group |
C-M-j | (evil) Go to next group |
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-l | embark-collect 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
selected candidate or candidate list, depending on the completion category. Note
that you can press C-h instead of choosing a command to filter through the
options with a Vertico buffer, that also has slightly more detailed descriptions
due to Marginalia annotations.
Jump-to navigation
This module provides an interface to navigate within a project using doom-package:projectile:
https://assets.doomemacs.org/completion/vertico/projectile.png
Keybind | Description |
---|---|
SPC p f, SPC SPC | Jump to file in project |
SPC f f, SPC . | Jump to file from current directory |
SPC s i | Jump to symbol in file |
Project search & replace
This module provides interactive text search and replace using ripgrep.
Keybind | Description |
---|---|
<leader> s p | Search project |
<leader> s P | Search another project |
<leader> s d | Search this directory |
<leader> s D | Search another directory |
https://assets.doomemacs.org/completion/vertico/search.png
Prefixing these keys with the universal argument (SPC u for evil users; C-u otherwise) changes the behavior of these commands, instructing the underlying search engine to include ignored files.
This module also provides Ex Commands for evil users:
Ex command | Description |
---|---|
:pg[rep][!] [QUERY] |
Search project (if ! , include hidden files) |
:pg[rep]d[!] [QUERY] |
Search from current directory (if ! , don't search recursively) |
The optional !
is equivalent to the universal argument for the previous
commands.
On top of the usual Vertico keybindings, search commands also offer support for
exporting the current candidate list to an editable buffer C-c C-e. After
editing the changes can be committed with C-c C-c and aborted with C-c C-k
(alternatively ZZ and ZQ, for evil users). It uses doom-package:wgrep for grep searches,
doom-package:wdired for file searches, and occur
for buffer searches.
https://assets.doomemacs.org/completion/vertico/search-replace.png
In-buffer searching
Vertico integration for various completing commands
Jump to files, buffers or projects
Keybind | Description |
---|---|
SPC RET | Find bookmark |
SPC f f, SPC . | Browse from current directory |
SPC p f, SPC SPC | Find file in project |
SPC f r | Find recently opened file |
SPC p p | Open another project |
SPC b b, SPC , | Switch to buffer in current workspace |
SPC b B, SPC < | Switch to buffer |
SPC b b and SPC , support changing the workspace you're selecting a buffer from via Consult narrowing, e.g. if you're on the first workspace, you can switch to selecting a buffer from the third workspace by typing 3 SPC into the prompt, or the last workspace by typing 0 SPC.
SPC f f and SPC . support exporting to a wdired buffer using C-c C-e.
Search
Keybind | Description |
---|---|
SPC p t | List all TODO/FIXMEs in project |
SPC s b | Search the current buffer |
SPC s d | Search this directory |
SPC s D | Search another directory |
SPC s i | Search for symbol in current buffer |
SPC s p | Search project |
SPC s P | Search another project |
SPC s s | Search the current buffer (incrementally) |
File Path Completion
Note that Emacs allows you to switch directories with shadow paths, for example
starting at /foo/bar/baz
, typing /foo/bar/baz/~/
will switch the searched
path to the home directory. For more information see substitute-in-file-name
and file-name-shadow-mode
. This module will erase the "shadowed" portion of
the path from the minibuffer, so in the previous example the path will be reset
to ~/
.
Consult
Multiple candidate search
Async search commands
Consult async commands (e.g. consult-ripgrep
) will have a preceding separator
character (usually #
) before the search input. This is known as the perl
splitting style. Input typed after the separator will be fed to the async
command until you type a second seperator, afterwhich the candidate list will be
filtered with Emacs instead (and can be filtered using doom-package:orderless, for example).
The specific seperator character can be changed by editing it, and might be
different if the initial input already contains #
.
Note that grep-like async commands translate the input (between the first and
second #
) to an Orderless-light expression: space separated inputs are all
matched in any order. If the grep backend does not support PCRE lookahead, it'll
only accept 3 space separated inputs to prevent long lookup times, and further
filtering should be done after a second #
.
For more information see here.
Marginalia
Orderless filtering
When using orderless to filter through candidates, the default behaviour is for each space separated input to match the candidate as a regular expression or literally.
Note that due to this style of matching, pressing tab does not expand the input
to the longest matching prefix (like shell completion), but rather uses the
first matched candidate as input. Filtering further is instead achieved by
pressing space and entering another input. In essence, when trying to match
foobar.org
, instead of option 1., use option 2.:
- (BAD) Enter
foo TAB
, completes tofoobar.
, enterorg RET
- (GOOD) Enter
foo SPC org RET
Doom has some builtin style dispatchers for more fine-grained filtering, which you can use to further specify each space separated input in the following ways:
Input | Description |
---|---|
!foo |
match without literal input foo |
%foo or foo% |
perform char-fold-to-regexp on input foo |
`foo or foo` |
match input foo as an initialism |
=foo or foo= |
match only with literal input foo |
~foo or foo~ |
match input foo with fuzzy/flex matching |
TODO Configuration
This module's configuration documentation is incomplete. Complete it?
If you want to further configure this module, here are some good places to start:
Vertico
Vertico provides several extentions that can be used to extend it's interface
Consult
Much of the behaviour of Consult commands can be changed with
consult-customize
. The vertico
module already does this, if you want to
override the module's modifications, do:
(setq consult--customize-alist nil)
(consult-customize ...)
If you are changing the preview key (set to C-SPC), remember to change the
binding on vertico-map
as well, as the binding there gets previews to work to
an extent on non-consult commands as well.
Marginalia
You can add more Marginalia annotation levels and change the existing ones by
editing marginalia-annotator-registry
Embark
You can change the available commands in Embark for category $cat
by editing
embark-$cat-map
, and even add new categories. Note that you add categories by
defining them through marginalia, and embark picks up on them.
Troubleshooting
There are no known problems with this module. Report one?
Frequently asked questions
Helm vs Ivy vs Ido vs Vertico
See this answer.
TODO Appendix
This module has no appendix yet. Write one?