mirror of
https://github.com/l0ng-ai/tty7.git
synced 2026-09-22 08:02:24 +00:00
Off macOS every GUI terminal teaches the same chords -- GNOME Terminal, Konsole, Windows Terminal and WezTerm all copy on Ctrl+Shift+C and paste on Ctrl+Shift+V -- but tty7 answered neither. Both are now defaults, alongside the unchanged Ctrl+C/Ctrl+V. Shift+Insert was installed as a hardcoded binding in init(), which made it invisible: Settings could not show it, record over it, or warn when another chord collided with it, and a user's own shift-insert binding silently lost to it in the Terminal context. Copy and Paste are now rows in the default table like any other action. Shift+Insert rides along as Paste's second chord through the same mechanism that gives InsertNewline its Alt+Enter -- generalized from a one-action special case into a table -- so rebinding Paste retires both defaults together instead of leaving Shift+Insert pasting behind the user's back. The control-code guard also tightens: Ctrl+2..8 are NUL, ESC, FS, GS, RS, US and DEL in xterm-style terminals, and Ctrl+` is NUL, so a future default cannot land on them. The changelog now also spells out the word-motion trade Alt+arrows made: Alt+left/right focus panes (Windows Terminal's default), and word movement in the prompt editor is Ctrl+left/right, with both Shift variants selecting by word. Refs #269 Co-authored-by: thomas <thomas@gmail.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>