1
0
зеркало из https://github.com/glebtv/tui-textarea.git synced 2026-09-08 08:25:51 +03:00

feat(keymap): bind Ctrl+Backspace/Ctrl+Delete to word deletion

Add the de-facto standard terminal/editor hotkeys to the default key map:
- Ctrl+Backspace -> delete_word
- Ctrl+Delete -> delete_next_word

Previously only Alt+Backspace/Ctrl+w and Alt+Delete/Alt+d were bound,
which conflicts with muscle memory from readline, VS Code and other TUIs.
Этот коммит содержится в:
Gleb Tv
2026-08-17 20:47:38 +03:00
родитель 9b5afba816
Коммит b542e179ae
3 изменённых файлов: 110 добавлений и 1 удалений

Просмотреть файл

@@ -1,5 +1,11 @@
# Changelog
## [0.12.2] - 2026-08-17 [Changes][v0.12.2]
### Features
- **Common word-deletion hotkeys**: Bind `Ctrl+Backspace` to [`TextArea::delete_word`] and `Ctrl+Delete` to [`TextArea::delete_next_word`] in the default key map, matching the de-facto terminal/editor convention (readline, VS Code, opencode).
## [0.12.1] - 2026-07-10 [Changes][v0.12.1]
### Features