Skip to main content

Module keybindings

Module keybindings 

Source
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§

KeyLabel
KeybindingEntry
KeybindingGrid
KeybindingPanelState

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 in Key’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