Skip to main content

Module keymap_insert

Module keymap_insert 

Source
Expand description

Crossterm-coupled test harness for the renderer-neutral lattice_host::keymap_insert catalog. Production code moved to lattice-host in slice 5.4 / slice 4; the tests stay here because their ev() helper builds KeyChord values via crate::chord::from_event(&KeyEvent { ... }).

Functions§

completion_popup_layer_bindings
Build the completion-popup minor-mode layer’s binding set. Wrapped into the registry by App::push_completion_popup_layer when the popup opens; popped when the popup closes.
completion_popup_mode_id
K.1.b (2026-05-30): canonical ModeId for the completion-popup minor-mode keymap layer. Used both by completion_popup_layer_bindings (the per-binding provenance tag at build time) and by App::sync_keymap_overlays (the push site). Centralised here so the two stay in lockstep — drift would surface as :describe-key showing the wrong mode name.
dispatch_insert
Dispatch a key event in Insert mode through the layered keymap registry. Replaces the legacy input::translate_insert plus the translate_insert_completion_popup and translate_active_snippet overlay branches at the top of input::translate.
register_insert_bindings
Register every chord the legacy input::translate_insert recognised into the supplied handle’s Builtin layer under BindingMode::Insert. Called at App startup.