Expand description
Re-export shim for the static keymap catalog + keymap_entry! macro.
K.2.4.A.0.1 (2026-06-02) relocated the canonical definitions of
KeymapEntry / default_keymap / lookup / entries and the
keymap_entry! macro into lattice-mode::keymap_entry, so mode
crates contributing keymaps via Mode::keymap() can declare
bindings without depending on lattice-host. The matcher engine
(KeymapTrie / KeymapLayer / BoundCommand) still lives in
host; only the static catalog + entry-row metadata moved.
This shim preserves every lattice_host::keymap::{...} import
path used by:
dispatch.rs—:describe-keystatic-catalog hits viacrate::keymap::lookup(chord);:keymaplisting viacrate::keymap::{BindingMode, entries}.lattice-ui-tui::keymap— re-export chain feeding the TUI drift-test catalog walker ininput.rsand the app-glue reference inapp.rs.- The various
lattice-host::keymap_normal/keymap_visual/keymap_insert/keymap_replacemodules that importBindingModeviacrate::keymap::BindingMode.
Plan to retire the shim once downstream imports flip to
lattice_mode::{KeymapEntry, keymap_entry, ...} directly.
Structs§
- Keymap
Entry - One row in the catalog. Ordering of fields matches the rendering
order in
:describe-keyso reading one field at a time still tells a coherent story.
Enums§
- Binding
Mode - Where a binding takes effect. Multi-key sequences (e.g.
gg) resolve atomically; intermediate single-key prefixes (g,z) get their own descriptor entries so:describe-key gexplains the pending substate.
Functions§
- default_
keymap - Borrow the full vim default keymap. Lazily initialised on first
call (the entries embed
SourceLocations which carryPathBufs and therefore can’t live in astatic). - entries
- Every entry of the built-in catalog in mode-grouped declaration order —
identical to
default_keymap. Used by:keymap. - lookup
- Every row of the built-in
default_keymapwhoseKeymapEntry::chordstring equalschordexactly — across all modes, in table order. The match is on the notation string, case-sensitively, with no chord parsing or normalisation. Used by:describe-key.