Add Ctrl+H as backspace keyboard shortcut

Resolved 💬 0 comments Opened Aug 17, 2025 by mkusaka Closed Aug 18, 2025

What feature would you like to see?

Currently, Codex CLI supports Ctrl+D for forward delete, but doesn't support Ctrl+H for backspace. Many terminal applications following readline conventions support both:

  • Ctrl+D: Delete character under cursor (forward delete)
  • Ctrl+H: Delete character before cursor (backspace)

This would improve consistency with standard terminal keybindings and make text editing more efficient for users familiar with readline-style shortcuts.

Current behavior:

  • Ctrl+D works for forward delete ✅
  • Ctrl+H doesn't work for backspace ❌
  • Users must use the Backspace key only

Expected behavior:

  • Both Ctrl+D and Ctrl+H should work
  • Ctrl+H should delete the character before the cursor, same as Backspace key

Version: codex-cli 0.22.0

Are you interested in implementing this feature?

Yes.

Additional information

_No response_

View original on GitHub ↗