Command input keystroke support #29
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I believe we have a requirement for Ctrl-A and Ctrl-E support (Home and End should work?), but I don't think we've added something simple like Esc (or double-Esc?) to remove a partly typed command and empty the input.
Implemented in
66c8bda— ADR-0049 (input-field readline keymap).The full I1b readline set is now wired in the command input field (both modes):
EscCtrl-A/Ctrl-ECtrl-WCtrl-KCtrl-UDesign decisions (all user-confirmed):
Escclears (not double-Esc) — discoverable over accident-proof; an unsubmitted draft can be lost, but a submitted line is always recoverable from history.Escprecedence preserved: a live Tab-completion memo still wins (Esc undoes the completion first, ADR-0022); Esc clears only when no memo is alive.Ctrl-O+Escdoes not clear the input — while a sidebar panel is focused, Esc exits navigation mode upstream of the input keymap, so the draft is preserved (locked by a regression test).Tests: 22 new Tier-1 tests; 2458 pass / 0 fail / 0 skip (1 ignored), clippy clean.
requirements.mdI1b marked done.Deferred (user-confirmed):
Escalready badges[ESC]; the glyph-less Ctrl-chords are an ADR-0047 follow-up.