Commit Graph
2 Commits
Author SHA1 Message Date
Callum Alpass 8a0475ed63 One keymap for keys, hints, clickable hints and palette shortcuts
Each binding names its keys, its hint and its palette command once. The app
builds the bindings for the current state in hint order; the first that
takes a key runs it, the hint bar lists them and a click runs the same
action, and the palette reads its shortcuts from them. This replaces the
hand-ordered key handler, the hint strings and the parsing of hint text
back into key events.

The secret, queue and turn hooks return bindings in place of their key()
handlers and command lists.
2026-11-02 22:40:50 +11:00
Callum Alpass 87a3a79288 Test the app end to end on OpenTUI's test renderer
A fake session serves fixed state and records calls; tests drive the whole
App by key and mouse and check the screen: modes and hints, the palette and
pickers, approvals, questions, the composer and drafts, and mouse clicks,
menus and resizing.
2026-11-02 22:32:12 +11:00