[FEATURE] Add Control-t for transpose characters

Resolved 💬 3 comments Opened Mar 23, 2026 by rc5w Closed Mar 26, 2026

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

I'm trying to use emacs keybindings when in claude.

Control-t for transposing characters is the keybinding, but it doesn't do anything.

Proposed Solution

I'd like to be able to press control-t and transpose characters.

Alternative Solutions

I asked claude if I could add this as a keybinding but it's not possible -- it told me to submit this here:

● Unfortunately no — Claude Code's keybindings system only supports application-level actions (submit, cancel, navigate, etc.), not text-editing operations. Transpose characters isn't bindable there.

Your best bet is ~/.inputrc, which configures readline for the terminal. But Claude Code's input likely uses its own input handling (it's a Node.js/Ink app), so .inputrc may not apply to it either.

The most reliable path would be to file a feature request at https://github.com/anthropics/claude-code/issues for Emacs text-editing mode — Ctrl+T transpose is a pretty fundamental one.

Priority

Low - Nice to have

Feature Category

CLI commands and flags

Use Case Example

_No response_

Additional Context

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗