[Feature Request] Add character transposition support (Ctrl+T) for swapping adjacent characters

Resolved 💬 2 comments Opened Jul 1, 2026 by sughodke Closed Jul 5, 2026

Bug Description
Add support for swapping adjacent characters in the CLI input, similar to bash's Ctrl+T keybinding. This would allow users to quickly fix typos by transposing two characters without retyping.

Bash man description:

transpose-chars (C-t)
              Drag the character before point forward over the character
              at point, moving point forward as well.  If point is at the
              end of the line, then this transposes the two characters
              before point.  Negative arguments have no effect.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.170
  • Feedback ID: 4f2ad90a-9870-4f00-9cc0-b6b5a5bf6a4a

Errors

[]

View original on GitHub ↗

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