Commit Graph
6 Commits
Author SHA1 Message Date
Felipe Coury d6a09dddcd test(tui): update keymap copy snapshots
Use a non-copy chord in the queue shadowing regression test so it still reaches the intended composer conflict after `global.copy` claimed `ctrl-o`.

Accept the keymap picker snapshots now that Copy is part of the configurable global keymap actions.
2026-04-23 10:35:34 -03:00
Felipe Coury 62922b712b feat(tui): expose copy shortcut in keymap config
Add `global.copy` to the TUI keymap schema, runtime keymap,
and interactive remap action list so the Copy shortcut can be
remapped or unbound like other global shortcuts.

Move the existing `ctrl-o` default into a new `v3` preset while
preserving older presets, and update docs plus coverage for the
remapped copy behavior.
2026-04-23 10:35:34 -03:00
Felipe Coury 704225a300 docs(tui): config and keybinding docs 2026-04-23 10:35:33 -03:00
Felipe Coury 942fb20e00 fix(tui): resolve keymap rebase regressions
Preserve mainline submit/queue semantics, update approval tests for
`SubmitThreadOp`, and keep permission-deny shortcuts from shadowing
`Esc` cancellation.

Add a `v2` keymap preset so `latest` can restore `alt-d`
`delete_forward_word` without mutating frozen `v1` defaults, and refresh
the generated config schema and docs.
2026-04-23 10:35:33 -03:00
Felipe Coury cb3e5baa73 feat(tui): add configurable Vim keymap and startup default
Expose Vim bindings through the TUI keymap config and add a startup
toggle so Vim mode can be enabled by default.

Wire runtime keymap handling for Vim actions, add
`tui.vim_mode_default` to config parsing/runtime config, apply the
default in ChatWidget startup paths, and update docs/default
keymap/schema accordingly.
2026-04-23 10:35:17 -03:00
Josh McKinney ef07eb7efd test(tui): add runtime keymap resolver characterization suite
Introduce the TUI runtime keymap resolver and keybinding matching helpers
with a dedicated unit-test suite. This commit is additive only: it adds
resolution logic, conflict validation, parser coverage, and documented macros
without wiring input handlers to the new runtime map yet.
2026-04-23 10:34:37 -03:00