feat(tui): improve editor Ctrl/Alt word and line deletion shortcuts

- Add Ctrl+W for word deletion (stops at whitespace/punctuation)
- Add Ctrl+U for delete to start of line (merges with previous line at col 0)
- Change Ctrl+K from delete entire line to delete to end of line (merges with next line at EOL)
- Add Option+Backspace support in Ghostty (maps to Ctrl+W via ESC+DEL sequence)
- Cmd+Backspace in Ghostty works as Ctrl+U (terminal sends same control code)
- Update README and CHANGELOG with new keyboard shortcuts

Fixes #2, Fixes #3
This commit is contained in:
Mario Zechner 2025-11-14 23:19:24 +01:00
parent 508d1bb2d6
commit a686f61c1d
6 changed files with 215 additions and 36 deletions

View file

@ -2,6 +2,15 @@
## [Unreleased]
### Changed
- Editor: updated keyboard shortcuts to follow Unix conventions:
- **Ctrl+W** deletes the previous word (stopping at whitespace or punctuation)
- **Ctrl+U** deletes from cursor to start of line (at line start, merges with previous line)
- **Ctrl+K** deletes from cursor to end of line (at line end, merges with next line)
- **Option+Backspace** in Ghostty now behaves like **Ctrl+W** (delete word backwards)
- **Cmd+Backspace** in Ghostty now behaves like **Ctrl+U** (delete to start of line)
## [0.7.8] - 2025-11-13
### Changed