Skip to content

[FEATURE REQUEST] Enable natural_text_editing by default on macOS #117

Done

Description

@gjuoun

What it is for

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.

References

Activity

  1. reopened this on Nov 18, 2026
  2. Raiden-MeixElysia commented on Nov 24, 2026

    @Raiden-MeixElysia
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions