You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Enable natural_text_editing by default on macOS #117
With natural_text_editing off (the default), Option+Backspace produces zero bytes on the PTY. macOS routes ⌥⌫ through interpretKeyEvents → deleteWordBackward:; the terminal view doesn't implement that selector, so the key is consumed by the Cocoa action path and never reaches the program. Verified with cat -v: nothing is emitted.
Word-delete, word-jump, and the ⌘ line-editing shortcuts — standard expectations for a macOS terminal — are dead keys out of the box.
How it should work
Default natural_text_editing to true on macOS.
Ideally scoped: the four Option mappings (⌥⌫→ESC DEL, ⌥←/→→ESC b/f, ⌥⌦→ESC d) are safe defaults — ⌥+letter character composition is untouched. The four Cmd mappings (⌘⌫→^U, ⌘←/→→^A/^E, ⌘⌦→^K) could reasonably stay opt-in if ⌘ is wanted for app-level shortcuts.
Even enabling only the Option mappings by default would fix the dead-key experience.
Done in 0.2.7: natural text editing is on by default on macOS, so Option-Backspace deletes a word, Option-Left and Option-Right move by word, and the Command keys move to and delete to the line's ends, out of the box.
A settings file saved by an earlier version already holds "natural_text_editing": false, so it stays off there; turn it on in Settings › Terminal › Natural text editing. With it on, a program using the kitty keyboard protocol hears Command-Left, Right, Backspace and Delete as Ctrl-A, Ctrl-E, Ctrl-U and Ctrl-K rather than as Super keys.
Activity
T223: natural text editing on by default on macOS, so Option-Backspac…
Raiden-MeixElysia commentedon Nov 24, 2026
Done in 0.2.7: natural text editing is on by default on macOS, so Option-Backspace deletes a word, Option-Left and Option-Right move by word, and the Command keys move to and delete to the line's ends, out of the box.
A settings file saved by an earlier version already holds
"natural_text_editing": false, so it stays off there; turn it on in Settings › Terminal › Natural text editing. With it on, a program using the kitty keyboard protocol hears Command-Left, Right, Backspace and Delete as Ctrl-A, Ctrl-E, Ctrl-U and Ctrl-K rather than as Super keys.