File: consult.el.html
Consult implements a set of consult-<thing> commands, which aim to
improve the way you use Emacs. The commands are founded on
completing-read, which selects from a list of candidate strings.
Consult provides an enhanced buffer switcher consult-buffer and
search and navigation commands like consult-imenu and
consult-line. Searching through multiple files is supported by the
asynchronous consult-grep command. Many Consult commands support
previewing candidates. If a candidate is selected in the completion
view, the buffer shows the candidate immediately.
The Consult commands are compatible with multiple completion systems
based on the Emacs completing-read API, including the default
completion system, Vertico, Mct and Icomplete.
See the README for an overview of the available Consult commands and the documentation of the configuration and installation of the package.
The full list of contributors can be found in the acknowledgments section of the README.
Defined variables (80)
consult--annotate-align-step | Round candidate width. |
consult--annotate-align-width | Maximum candidate width used for annotation alignment. |
consult--async-log | Buffer for async logging output used by ‘consult--async-process’. |
consult--buffer-display | Buffer display function. |
consult--completion-candidate-hook | Get candidate from completion system. |
consult--completion-refresh-hook | Refresh completion system. |
consult--convert-regexp-table | Regexp conversion table. |
consult--customize-alist | Command configuration alist for fine-grained configuration. |
consult--focus-lines-indicator | Mode line indicator displayed if ‘consult-focus-lines’ is active. |
consult--focus-lines-overlays | Overlays used by ‘consult-focus-lines’. |
consult--gc-percentage | Large GC percentage for temporary increase. |
consult--gc-threshold | Large GC threshold for temporary increase. |
consult--grep-match-regexp | Regexp used to match file and line of grep output. |
consult--narrow | Current narrow key. |
consult--narrow-config | Narrowing config of the current completion. |
consult--narrow-overlay | Narrowing indicator overlay. |
consult--preview-function | Minibuffer-local variable which exposes the current preview function. |
consult--process-chunk | Increase process output chunk size. |
consult--regexp-compiler | Regular expression compiler used by ‘consult-grep’ and other commands. |
consult--tofu-char | Special character used to encode line suffixes for disambiguation. |
consult--tofu-range | Special character range. |
consult--tofu-regexp | Special character regexp. |
consult-after-jump-hook | Function called after jumping to a location. |
consult-async-indicator | Async indicator characters and faces. |
consult-async-input-debounce | Input debounce for asynchronous commands. |
consult-async-input-throttle | Input throttle for asynchronous commands. |
consult-async-map | Keymap added for commands with asynchronous candidates. |
consult-async-min-input | Minimum number of characters needed, before asynchronous process is called. |
consult-async-refresh-delay | Refreshing delay of the completion UI for asynchronous commands. |
consult-async-split-style | Async splitting style, see ‘consult-async-split-styles-alist’. |
consult-async-split-styles-alist | Async splitting styles. |
consult-bookmark-narrow | Bookmark narrowing configuration. |
consult-buffer-filter | Filter regexps for ‘consult-buffer’. |
consult-buffer-list-function | List of buffers to use for selection. |
consult-buffer-sources | Sources used by ‘consult-buffer’. |
consult-fd-args | Command line arguments for fd, see ‘consult-fd’. |
consult-find-args | Command line arguments for find, see ‘consult-find’. |
consult-fontify-max-size | Avoid whole-buffer fontification for buffers larger than this character limit. |
consult-fontify-preserve | Preserve fontification for line-based commands. |
consult-git-grep-args | Command line arguments for git-grep, see ‘consult-git-grep’. |
consult-goto-line-numbers | Show line numbers for ‘consult-goto-line’. |
consult-grep-args | Command line arguments for grep, see ‘consult-grep’. |
consult-grep-max-columns | Maximal number of columns of grep output. |
consult-isearch-history-map | Additional keymap used by ‘consult-isearch-history’. |
consult-line-numbers-widen | Show absolute line numbers when narrowing is active. |
consult-line-start-from-top | Start search from the top if non-nil. |
consult-locate-args | Command line arguments for locate, see ‘consult-locate’. |
consult-man-args | Command line arguments for man, see ‘consult-man’. |
consult-mode-command-filter | Filter commands for ‘consult-mode-command’. |
consult-mode-histories | Alist of mode histories (mode history index bol). |
consult-narrow-key | Prefix key for narrowing during completion. |
consult-narrow-map | Narrowing keymap which is added to the local minibuffer map. |
consult-point-placement | Where to leave point when jumping to a match. |
consult-preview-allowed-hooks | List of hooks, which should be executed during file preview. |
consult-preview-excluded-buffers | Buffers excluded from preview. |
consult-preview-excluded-files | List of regexps matched against names of files, which are not previewed. |
consult-preview-key | Preview trigger keys, can be nil, ‘any’, a single key or a list of keys. |
consult-preview-max-count | Number of file buffers to keep open temporarily during preview. |
consult-preview-partial-chunk | Partial preview chunk size in bytes. |
consult-preview-partial-size | Files larger than this byte limit are previewed partially. |
consult-preview-variables | Variables which are bound for file preview. |
consult-project-buffer-sources | Sources used by ‘consult-project-buffer’. |
consult-project-function | Function which returns project root directory. |
consult-ripgrep-args | Command line arguments for ripgrep, see ‘consult-ripgrep’. |
consult-source-bookmark | Bookmark source for ‘consult-buffer’. |
consult-source-buffer | Buffer source for ‘consult-buffer’. |
consult-source-buffer-register | Buffer register source. |
consult-source-file-register | File register source. |
consult-source-hidden-buffer | Hidden buffer source for ‘consult-buffer’. |
consult-source-modified-buffer | Modified buffer source for ‘consult-buffer’. |
consult-source-other-buffer | Source for ‘consult-buffer’ for buffers from other frames or tabs. |
consult-source-project-buffer | Project buffer source for ‘consult-buffer’. |
consult-source-project-buffer-hidden | Like ‘consult-source-project-buffer’ but hidden by default. |
consult-source-project-recent-file | Project file source for ‘consult-buffer’. |
consult-source-project-recent-file-hidden | Like ‘consult-source-project-recent-file’ but hidden by default. |
consult-source-project-root | Known project root source. |
consult-source-project-root-hidden | Like ‘consult-source-project-root’ but hidden by default. |
consult-source-recent-file | Recent file source for ‘consult-buffer’. |
consult-themes | List of themes (symbols or regexps) to be presented for selection. |
consult-widen-key | Key used for widening during completion. |
Defined functions (254)
Defined faces (19)
consult-async-failed | Face used if asynchronous process has failed. |
consult-async-finished | Face used if asynchronous process has finished. |
consult-async-option | Face used to highlight asynchronous command options. |
consult-async-running | Face used if asynchronous process is running. |
consult-async-split | Face used to highlight punctuation character. |
consult-bookmark | Face used to highlight bookmarks in ‘consult-buffer’. |
consult-buffer | Face used to highlight buffers in ‘consult-buffer’. |
consult-file | Face used to highlight files in ‘consult-buffer’. |
consult-grep-context | Face used to highlight grep context in ‘consult-grep’. |
consult-help | Face used to highlight help, e.g., in ‘consult-register-store’. |
consult-highlight-mark | Face used for mark positions in completion candidates. Used for example by ‘consult-mark’. The face should be different than the ‘cursor’ face to avoid confusion. |
consult-highlight-match | Face used to highlight matches in the completion candidates. Used for example by ‘consult-grep’. |
consult-line-number | Face used to highlight location line in ‘consult-global-mark’. |
consult-line-number-prefix | Face used to highlight line number prefixes. |
consult-line-number-wrapped | Face used to highlight line number prefixes after wrap around. |
consult-narrow-indicator | Face used for the narrowing indicator. |
consult-preview-insertion | Face used for previews of text to be inserted. Used by ‘consult-completion-in-region’, ‘consult-yank’ and ‘consult-history’. |
consult-preview-line | Face used for line previews. |
consult-preview-match | Face used for match previews, e.g., in ‘consult-line’. |