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_layerwhen the popup opens; popped when the popup closes. - completion_
popup_ mode_ id - K.1.b (2026-05-30): canonical
ModeIdfor the completion-popup minor-mode keymap layer. Used both bycompletion_popup_layer_bindings(the per-binding provenance tag at build time) and byApp::sync_keymap_overlays(the push site). Centralised here so the two stay in lockstep — drift would surface as:describe-keyshowing the wrong mode name. - dispatch_
insert - Dispatch a key event in Insert mode through the layered
keymap registry. Replaces the legacy
input::translate_insertplus thetranslate_insert_completion_popupandtranslate_active_snippetoverlay branches at the top ofinput::translate. - register_
insert_ bindings - Register every chord the legacy
input::translate_insertrecognised into the supplied handle’sBuiltinlayer underBindingMode::Insert. Called at App startup.