feat(tui): support shift-letter vim bindings across terminal variants

Make shifted letter bindings robust when terminals report uppercase
letters without explicit SHIFT modifiers.

This updates keybinding matching so bindings like `shift-i`, `shift-a`,
and `shift-o` also match `I`, `A`, and `O` event forms, and adds
regression tests covering Vim normal-mode actions for line-start insert,
line-end append, and open-line-above with shift-only bindings.
This commit is contained in:
Felipe Coury
2026-04-23 10:35:17 -03:00
committed by Felipe Coury
parent f0b70188a7
commit eb2275a64a
3 changed files with 94 additions and 3 deletions
+3
View File
@@ -104,6 +104,9 @@ Compatibility detail:
Some actions intentionally ship with multiple default bindings because terminals
can report modifier combinations differently. Examples include `?` vs `shift-?`
and certain `ctrl` chords with optional `shift`.
Shifted letter bindings are also matched compatibly when terminals report them
as uppercase characters without an explicit `shift` modifier (for example
`shift-i` matching `I`).
## Resolution and precedence