Expand description
View-model and interaction state for the keybinding reference panel. It turns the application’s effective keymap into stable display entries, lays them out as a width-aware column grid, and tracks open/scroll/onscreen-area state for keyboard and mouse routing.
Binding semantics stay in config/app; pixels and terminal styles stay in
ui. The reserved ? toggle and Escape close keys live here alongside the
panel behavior they control.
Structs§
Constants§
- CLOSE_
KEY - Closes the open panel before its normal binding runs (see
App::handle_key). - GRID_
GAP - MAX_
PANEL_ ROWS - TOGGLE_
KEY - The reserved key that toggles the panel; user configs cannot rebind it
(see
App::new). Already inKey’s normalized form.
Functions§
- build_
entries - build_
grid - build_
sectioned_ grid - Lay out user entries first, followed by a blank row that the UI renders as a separator, then the remaining built-in entries.
- truncate_
with_ ellipsis