Skip to main content

ExBuiltins

Struct ExBuiltins 

Source
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: ExCommandId

ex:write: :w[rite] [path] — write the buffer to disk, or to path.

§quit: ExCommandId

ex:quit: :q[uit][!] — close the pane, or quit on the last one; ! discards changes.

§write_quit: ExCommandId

ex:write-quit: :wq[!] / :x[!] — write, then quit.

§no_hlsearch: ExCommandId

ex:nohlsearch: :noh[lsearch] — clear the search highlight until the next search.

§list_registers: ExCommandId

ex:registers: :reg[isters] — show every register’s contents.

§list_marks: ExCommandId

ex:marks: :marks — show every set mark and its position.

§delete_line: ExCommandId

ex:delete: :d[elete] — delete the current line, newline included (no range form yet).

§set_option: ExCommandId

ex:set: :set <option> — set an option; the argument string goes to the host’s option parser verbatim.

§set_local_option: ExCommandId

ex:setlocal: :setl[ocal] / :sl — set a buffer-local override.

§set_global_option: ExCommandId

ex:setglobal: :setg[lobal] / :sg — set the global value, leaving local overrides.

§colorscheme: ExCommandId

T.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: ExCommandId

ex:edit: :e[dit][!] [path] — load a file into the current pane; ! discards changes.

§substitute: ExCommandId

ex:substitute: :s/pat/rep/[g] / :%s/… — substitute on the current line or the whole buffer; delimiter form (SurfaceForm::Delimiter).

§global: ExCommandId

ex:global: :g/pat/cmd and :v/pat/cmd — run a command on every (non-)matching line; delimiter form.

§describe_command: ExCommandId

ex:describe-command: :describe-command <name> — the help view for a registered command.

§describe_buffer: ExCommandId

ex:describe-buffer: :describe-buffer — the help view for the active buffer’s state and modes.

§apropos: ExCommandId

ex:apropos: :apropos <text> — search command names and docs.

§describe_key: ExCommandId

ex:describe-key: :describe-key <chord> — what a key chord is bound to.

§list_keymap: ExCommandId

ex:keymap: :keymap — every default binding, by mode.

§buffer_next: ExCommandId

ex:bnext: :bn[ext] — next listed buffer.

§buffer_prev: ExCommandId

ex:bprev: :bp[rev] — previous listed buffer.

§list_buffers: ExCommandId

ex:buffers: :ls — list open buffers as a static view.

§buffer_delete: ExCommandId

ex:bdelete: :bd[elete][!] — close the active buffer; ! discards changes.

§file_tree: ExCommandId

ex:filetree: :filetree [path] — open a file-tree buffer (default: the working directory).

§file_tree_close: ExCommandId

ex:filetree-close: :filetree-close — dismiss the file-tree buffer.

§oil: ExCommandId

ex:oil: :oil [path] — open an oil (editable directory listing) buffer.

§describe_option: ExCommandId

ex:describe-option: :describe-option <name> — the help view for a typed option.

§describe_element: ExCommandId

T.9.d: :describe-element / :describe-face — theme-element introspection (host build_describe_element_content).

§list_options: ExCommandId

ex:options: :options — list every registered option.

§describe_plugin_api: ExCommandId

PI.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: ExCommandId

ex:list-plugin-apis: :list-plugin-apis — one row per plugin-API interface (see Self::describe_plugin_api).

§export_plugin_api: ExCommandId

PI.2b: :export-plugin-api [markdown|json] – dump the catalog to a savable buffer.

§list_commands: ExCommandId

PI.3: :list-commands – enumerate every command, source-grouped.

§describe_plugin: ExCommandId

PI.4: :describe-plugin <name> / :list-plugins – loaded-plugin introspection (Facet B).

§list_plugins: ExCommandId

ex:list-plugins: :list-plugins — every loaded plugin (see Self::describe_plugin).

§describe_events: ExCommandId

ex:describe-events: :describe-events — list every registered event.

§describe_event: ExCommandId

ex:describe-event: :describe-event <name> — the help view for one event.

§list_modes: ExCommandId

ex:list-modes: :list-modes — every registered mode, grouped major / minor, with its state on the active buffer.

§describe_mode: ExCommandId

ex:describe-mode: :describe-mode <name> — the help view for one mode.

§describe_option_resolution: ExCommandId

ex:describe-option-resolution: :describe-option-resolution <name> — which resolver layer supplies an option’s value on the active buffer.

§customize: ExCommandId

ex:customize: :customize [name] — the customize buffer: typed option editing that writes back to user TOML.

§tutor: ExCommandId

ex:tutor: :tutor [N] — open the interactive tutor at lesson N (default 1).

§tutor_next: ExCommandId

ex:tutor-next: :tutor-next — next tutor exercise (as <CR> in tutor-mode).

§tutor_prev: ExCommandId

ex:tutor-prev: :tutor-prev — previous tutor exercise.

§hover: ExCommandId

ex:hover: :hover [markdown] — open a hover popup at the cursor.

§hover_close: ExCommandId

ex:hover-close: :hover-close — dismiss the hover popup.

§help: ExCommandId

ex:help: :help [topic] — the help index, or a named topic.

§list_diagnostics: ExCommandId

ex:diagnostics: :diagnostics — every workspace diagnostic, with source links.

§next_diagnostic: ExCommandId

ex:diag-next: :diag-next — cursor to the next diagnostic in the buffer (wraps; also ]d).

§prev_diagnostic: ExCommandId

ex:diag-prev: :diag-prev — cursor to the previous diagnostic (wraps; also [d).

§lsp_log: ExCommandId

ex:lsp-log: :lsp-log [server] — the LSP subsystem log, or one server’s.

§messages: ExCommandId

ex:messages: :messages — the *messages* buffer (every echo and notification).

§lsp_trace: ExCommandId

ex:lsp-trace: :lsp-trace <server> — toggle JSON-RPC wire tracing for a server.

§lsp_status: ExCommandId

ex:lsp-status: :lsp-status — every running LSP server.

§lsp_server_log: ExCommandId

ex:lsp-server-log: :lsp-server-log — running servers, each linking to its log and trace.

§lsp_restart: ExCommandId

ex:lsp-restart: :lsp-restart <server> — restart a server (registered; the supervisor path is still a no-op).

§lsp_progress_cancel: ExCommandId

ex:lsp-progress-cancel: :lsp-progress-cancel [server] — cancel cancellable $/progress work.

§lsp_expand_region: ExCommandId

ex:lsp-expand-region: :lsp-expand-region — one step outward in the LSP selectionRange chain.

§lsp_shrink_region: ExCommandId

ex:lsp-shrink-region: :lsp-shrink-region — one step back inward.

§lsp_log_level: ExCommandId

ex:lsp-log-level: :lsp-log-level [server] <level> — set the minimum log level.

§lsp_log_clear: ExCommandId

ex:lsp-log-clear: :lsp-log-clear [server] — drop the records in a log buffer.

§lsp_symbols: ExCommandId

ex:lsp-symbols: :lsp-symbols — picker over the document’s symbols.

§lsp_workspace_symbol: ExCommandId

ex:lsp-workspace-symbol: :lsp-workspace-symbol [query] — picker over workspace symbols.

§lsp_incoming_calls: ExCommandId

ex:lsp-incoming-calls: :lsp-incoming-calls — picker over callers of the function at the cursor.

§lsp_outgoing_calls: ExCommandId

ex:lsp-outgoing-calls: :lsp-outgoing-calls — picker over its callees.

§lsp_supertypes: ExCommandId

ex:lsp-supertypes: :lsp-supertypes — picker over the supertypes of the type at the cursor.

§lsp_subtypes: ExCommandId

ex:lsp-subtypes: :lsp-subtypes — picker over its subtypes.

§lsp_moniker: ExCommandId

ex:lsp-moniker: :lsp-moniker — echo the moniker of the symbol at the cursor.

§lsp_code_lens: ExCommandId

ex:lsp-code-lens: :lsp-code-lens — picker over the buffer’s code lenses.

§lsp_color_presentation: ExCommandId

ex:lsp-color-presentation: :lsp-color-presentation — picker of alternative formats for the color literal at the cursor.

§format: ExCommandId

IN.8b: :format — the LSP-independent cascade.

§lsp_format: ExCommandId

ex:lsp-format: :lsp-format — textDocument/formatting, applied as one undo unit. LSP-only; :format is the cascade.

§lsp_format_range: ExCommandId

ex:lsp-format-range: :[range]lsp-format-range — textDocument/rangeFormatting over a range or the selection.

§lsp_signature_help: ExCommandId

ex:lsp-signature-help: :lsp-signature-help — the signature-help popup at the cursor.

§lsp_complete: ExCommandId

ex:lsp-complete: :lsp-complete — picker over LSP completion items at the cursor.

§lsp_rename: ExCommandId

ex:lsp-rename: :lsp-rename [new-name] — workspace rename of the symbol at the cursor.

§lsp_code_action: ExCommandId

ex:lsp-code-action: :lsp-code-action — picker over code actions at the cursor or selection.

§reload_snippets: ExCommandId

ex:reload-snippets: :reload-snippets — re-read the snippet files from disk.

§cd: ExCommandId

ex:cd: :cd [path] — change the working directory (no arg: $HOME).

§pwd: ExCommandId

ex:pwd: :pwd — echo the working directory.

§project_root: ExCommandId

PR.2: :project-root — the introspection affordance for project resolution.

Trait Implementations§

Source§

impl Clone for ExBuiltins

Source§

fn clone(&self) -> ExBuiltins

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ExBuiltins

Source§

impl Debug for ExBuiltins

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more