pub struct ExBuiltins {Show 81 fields
pub write: ExCommandId,
pub quit: ExCommandId,
pub write_quit: ExCommandId,
pub no_hlsearch: ExCommandId,
pub list_registers: ExCommandId,
pub list_marks: ExCommandId,
pub delete_line: ExCommandId,
pub set_option: ExCommandId,
pub set_local_option: ExCommandId,
pub set_global_option: ExCommandId,
pub colorscheme: ExCommandId,
pub edit: ExCommandId,
pub substitute: ExCommandId,
pub global: ExCommandId,
pub describe_command: ExCommandId,
pub describe_buffer: ExCommandId,
pub apropos: ExCommandId,
pub describe_key: ExCommandId,
pub list_keymap: ExCommandId,
pub buffer_next: ExCommandId,
pub buffer_prev: ExCommandId,
pub list_buffers: ExCommandId,
pub buffer_delete: ExCommandId,
pub file_tree: ExCommandId,
pub file_tree_close: ExCommandId,
pub oil: ExCommandId,
pub describe_option: ExCommandId,
pub describe_element: ExCommandId,
pub list_options: ExCommandId,
pub describe_plugin_api: ExCommandId,
pub list_plugin_apis: ExCommandId,
pub export_plugin_api: ExCommandId,
pub list_commands: ExCommandId,
pub describe_plugin: ExCommandId,
pub list_plugins: ExCommandId,
pub describe_events: ExCommandId,
pub describe_event: ExCommandId,
pub list_modes: ExCommandId,
pub describe_mode: ExCommandId,
pub describe_option_resolution: ExCommandId,
pub customize: ExCommandId,
pub tutor: ExCommandId,
pub tutor_next: ExCommandId,
pub tutor_prev: ExCommandId,
pub hover: ExCommandId,
pub hover_close: ExCommandId,
pub help: ExCommandId,
pub list_diagnostics: ExCommandId,
pub next_diagnostic: ExCommandId,
pub prev_diagnostic: ExCommandId,
pub lsp_log: ExCommandId,
pub messages: ExCommandId,
pub lsp_trace: ExCommandId,
pub lsp_status: ExCommandId,
pub lsp_server_log: ExCommandId,
pub lsp_restart: ExCommandId,
pub lsp_progress_cancel: ExCommandId,
pub lsp_expand_region: ExCommandId,
pub lsp_shrink_region: ExCommandId,
pub lsp_log_level: ExCommandId,
pub lsp_log_clear: ExCommandId,
pub lsp_symbols: ExCommandId,
pub lsp_workspace_symbol: ExCommandId,
pub lsp_incoming_calls: ExCommandId,
pub lsp_outgoing_calls: ExCommandId,
pub lsp_supertypes: ExCommandId,
pub lsp_subtypes: ExCommandId,
pub lsp_moniker: ExCommandId,
pub lsp_code_lens: ExCommandId,
pub lsp_color_presentation: ExCommandId,
pub format: ExCommandId,
pub lsp_format: ExCommandId,
pub lsp_format_range: ExCommandId,
pub lsp_signature_help: ExCommandId,
pub lsp_complete: ExCommandId,
pub lsp_rename: ExCommandId,
pub lsp_code_action: ExCommandId,
pub reload_snippets: ExCommandId,
pub cd: ExCommandId,
pub pwd: ExCommandId,
pub project_root: ExCommandId,
}Expand description
The ids of the built-in ex-commands, as returned by populate;
mirrors Builtins for motions / operators /
text objects.
Each field’s doc gives the registered name (ex:<name>) and the usual
: spelling. Not every builtin ex-command has a field: several
(ex:quit-all, ex:only, ex:split, …) are reached only by name, which
is how the : line resolves every command anyway. A field exists where
some caller wants the id without a name lookup.
Fields§
§write: ExCommandIdex:write: :w[rite] [path] — write the buffer to disk, or to path.
quit: ExCommandIdex:quit: :q[uit][!] — close the pane, or quit on the last one; ! discards changes.
write_quit: ExCommandIdex:write-quit: :wq[!] / :x[!] — write, then quit.
no_hlsearch: ExCommandIdex:nohlsearch: :noh[lsearch] — clear the search highlight until the next search.
list_registers: ExCommandIdex:registers: :reg[isters] — show every register’s contents.
list_marks: ExCommandIdex:marks: :marks — show every set mark and its position.
delete_line: ExCommandIdex:delete: :d[elete] — delete the current line, newline included (no range form yet).
set_option: ExCommandIdex:set: :set <option> — set an option; the argument string goes to the host’s option parser verbatim.
set_local_option: ExCommandIdex:setlocal: :setl[ocal] / :sl — set a buffer-local override.
set_global_option: ExCommandIdex:setglobal: :setg[lobal] / :sg — set the global value, leaving local overrides.
colorscheme: ExCommandIdT.9.b (2026-06-18): :colorscheme <name> — swap the active
theme by name (lattice-host looks the name up in
lattice_theme::builtin_themes() and calls set_theme).
edit: ExCommandIdex:edit: :e[dit][!] [path] — load a file into the current pane; ! discards changes.
substitute: ExCommandIdex:substitute: :s/pat/rep/[g] / :%s/… — substitute on the current line or the whole buffer; delimiter form (SurfaceForm::Delimiter).
global: ExCommandIdex:global: :g/pat/cmd and :v/pat/cmd — run a command on every (non-)matching line; delimiter form.
describe_command: ExCommandIdex:describe-command: :describe-command <name> — the help view for a registered command.
describe_buffer: ExCommandIdex:describe-buffer: :describe-buffer — the help view for the active buffer’s state and modes.
apropos: ExCommandIdex:apropos: :apropos <text> — search command names and docs.
describe_key: ExCommandIdex:describe-key: :describe-key <chord> — what a key chord is bound to.
list_keymap: ExCommandIdex:keymap: :keymap — every default binding, by mode.
buffer_next: ExCommandIdex:bnext: :bn[ext] — next listed buffer.
buffer_prev: ExCommandIdex:bprev: :bp[rev] — previous listed buffer.
list_buffers: ExCommandIdex:buffers: :ls — list open buffers as a static view.
buffer_delete: ExCommandIdex:bdelete: :bd[elete][!] — close the active buffer; ! discards changes.
file_tree: ExCommandIdex:filetree: :filetree [path] — open a file-tree buffer (default: the working directory).
file_tree_close: ExCommandIdex:filetree-close: :filetree-close — dismiss the file-tree buffer.
oil: ExCommandIdex:oil: :oil [path] — open an oil (editable directory listing) buffer.
describe_option: ExCommandIdex:describe-option: :describe-option <name> — the help view for a typed option.
describe_element: ExCommandIdT.9.d: :describe-element / :describe-face — theme-element
introspection (host build_describe_element_content).
list_options: ExCommandIdex:options: :options — list every registered option.
describe_plugin_api: ExCommandIdPI.2: plugin-API introspection (:describe-plugin-api [<seam>],
:list-plugin-apis). The catalog is derived from wit/ at build
time by lattice-plugin-api; the host renders it.
list_plugin_apis: ExCommandIdex:list-plugin-apis: :list-plugin-apis — one row per plugin-API interface (see Self::describe_plugin_api).
export_plugin_api: ExCommandIdPI.2b: :export-plugin-api [markdown|json] – dump the catalog to a
savable buffer.
list_commands: ExCommandIdPI.3: :list-commands – enumerate every command, source-grouped.
describe_plugin: ExCommandIdPI.4: :describe-plugin <name> / :list-plugins – loaded-plugin
introspection (Facet B).
list_plugins: ExCommandIdex:list-plugins: :list-plugins — every loaded plugin (see Self::describe_plugin).
describe_events: ExCommandIdex:describe-events: :describe-events — list every registered event.
describe_event: ExCommandIdex:describe-event: :describe-event <name> — the help view for one event.
list_modes: ExCommandIdex:list-modes: :list-modes — every registered mode, grouped major / minor, with its state on the active buffer.
describe_mode: ExCommandIdex:describe-mode: :describe-mode <name> — the help view for one mode.
describe_option_resolution: ExCommandIdex:describe-option-resolution: :describe-option-resolution <name> — which resolver layer supplies an option’s value on the active buffer.
customize: ExCommandIdex:customize: :customize [name] — the customize buffer: typed option editing that writes back to user TOML.
tutor: ExCommandIdex:tutor: :tutor [N] — open the interactive tutor at lesson N (default 1).
tutor_next: ExCommandIdex:tutor-next: :tutor-next — next tutor exercise (as <CR> in tutor-mode).
tutor_prev: ExCommandIdex:tutor-prev: :tutor-prev — previous tutor exercise.
hover: ExCommandIdex:hover: :hover [markdown] — open a hover popup at the cursor.
hover_close: ExCommandIdex:hover-close: :hover-close — dismiss the hover popup.
help: ExCommandIdex:help: :help [topic] — the help index, or a named topic.
list_diagnostics: ExCommandIdex:diagnostics: :diagnostics — every workspace diagnostic, with source links.
next_diagnostic: ExCommandIdex:diag-next: :diag-next — cursor to the next diagnostic in the buffer (wraps; also ]d).
prev_diagnostic: ExCommandIdex:diag-prev: :diag-prev — cursor to the previous diagnostic (wraps; also [d).
lsp_log: ExCommandIdex:lsp-log: :lsp-log [server] — the LSP subsystem log, or one server’s.
messages: ExCommandIdex:messages: :messages — the *messages* buffer (every echo and notification).
lsp_trace: ExCommandIdex:lsp-trace: :lsp-trace <server> — toggle JSON-RPC wire tracing for a server.
lsp_status: ExCommandIdex:lsp-status: :lsp-status — every running LSP server.
lsp_server_log: ExCommandIdex:lsp-server-log: :lsp-server-log — running servers, each linking to its log and trace.
lsp_restart: ExCommandIdex:lsp-restart: :lsp-restart <server> — restart a server (registered; the supervisor path is still a no-op).
lsp_progress_cancel: ExCommandIdex:lsp-progress-cancel: :lsp-progress-cancel [server] — cancel cancellable $/progress work.
lsp_expand_region: ExCommandIdex:lsp-expand-region: :lsp-expand-region — one step outward in the LSP selectionRange chain.
lsp_shrink_region: ExCommandIdex:lsp-shrink-region: :lsp-shrink-region — one step back inward.
lsp_log_level: ExCommandIdex:lsp-log-level: :lsp-log-level [server] <level> — set the minimum log level.
lsp_log_clear: ExCommandIdex:lsp-log-clear: :lsp-log-clear [server] — drop the records in a log buffer.
lsp_symbols: ExCommandIdex:lsp-symbols: :lsp-symbols — picker over the document’s symbols.
lsp_workspace_symbol: ExCommandIdex:lsp-workspace-symbol: :lsp-workspace-symbol [query] — picker over workspace symbols.
lsp_incoming_calls: ExCommandIdex:lsp-incoming-calls: :lsp-incoming-calls — picker over callers of the function at the cursor.
lsp_outgoing_calls: ExCommandIdex:lsp-outgoing-calls: :lsp-outgoing-calls — picker over its callees.
lsp_supertypes: ExCommandIdex:lsp-supertypes: :lsp-supertypes — picker over the supertypes of the type at the cursor.
lsp_subtypes: ExCommandIdex:lsp-subtypes: :lsp-subtypes — picker over its subtypes.
lsp_moniker: ExCommandIdex:lsp-moniker: :lsp-moniker — echo the moniker of the symbol at the cursor.
lsp_code_lens: ExCommandIdex:lsp-code-lens: :lsp-code-lens — picker over the buffer’s code lenses.
lsp_color_presentation: ExCommandIdex:lsp-color-presentation: :lsp-color-presentation — picker of alternative formats for the color literal at the cursor.
format: ExCommandIdIN.8b: :format — the LSP-independent cascade.
lsp_format: ExCommandIdex:lsp-format: :lsp-format — textDocument/formatting, applied as one undo unit. LSP-only; :format is the cascade.
lsp_format_range: ExCommandIdex:lsp-format-range: :[range]lsp-format-range — textDocument/rangeFormatting over a range or the selection.
lsp_signature_help: ExCommandIdex:lsp-signature-help: :lsp-signature-help — the signature-help popup at the cursor.
lsp_complete: ExCommandIdex:lsp-complete: :lsp-complete — picker over LSP completion items at the cursor.
lsp_rename: ExCommandIdex:lsp-rename: :lsp-rename [new-name] — workspace rename of the symbol at the cursor.
lsp_code_action: ExCommandIdex:lsp-code-action: :lsp-code-action — picker over code actions at the cursor or selection.
reload_snippets: ExCommandIdex:reload-snippets: :reload-snippets — re-read the snippet files from disk.
cd: ExCommandIdex:cd: :cd [path] — change the working directory (no arg: $HOME).
pwd: ExCommandIdex:pwd: :pwd — echo the working directory.
project_root: ExCommandIdPR.2: :project-root — the introspection affordance for project
resolution.
Trait Implementations§
Source§impl Clone for ExBuiltins
impl Clone for ExBuiltins
Source§fn clone(&self) -> ExBuiltins
fn clone(&self) -> ExBuiltins
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more