Claude
|
faf2ab831b
|
feat(tui): Sprint 4 — keybindings with presets + command palette
- Create src/keybindings.rs: Action enum (20 variants), KeyMap with
Emacs/Vim/Windows presets, Vim normal/insert mode support
- Create src/command_palette.rs: fuzzy-filterable modal with 9 built-in
entries, arrow navigation, Enter to execute, Escape to close
- Refactor handle_key() to dispatch through Action enum instead of
hardcoded KeyCode matches — clean separation of concerns
- dispatch_action() method shared by palette and key handler
- show_help() renders keybinding reference for current preset
- Ctrl+K opens palette, F1 shows help, /keys switches presets
- 10 keybinding tests + 5 palette tests
- 262 tests pass
Sprint 4 of 7.
Authored by TheArchitectit
|
2026-06-11 19:12:36 -05:00 |