Skip to content

Add Ctrl+H as backspace keyboard shortcut #2391

@mkusaka

Description

@mkusaka

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions