Alt+d can no longer be remapped #3150

Closed
opened 2026-02-16 17:38:52 -05:00 by yindo · 6 comments
Owner

Originally created by @berenddeboer on GitHub (Nov 26, 2025).

Originally assigned to: @kommander on GitHub.

Description

This was like working yesterday!!. I have this in my opencode.json:

  "keybinds": {
    "input_forward_delete": "alt+d",
  }

I prefer to have it delete word, but that doesn't exist. This worked like yesterday or the day before, but no longer with 1.0.115.

It has reverted to doing delete line, which is superannoying.

OpenCode version

1.0.115

Steps to reproduce

  1. Add keybinding to opencode.json
  2. Press alt+d
  3. This will do delete line.

Screenshot and/or share link

No response

Operating System

Ubuntu 24.04

Terminal

Alacritty, tmux

Originally created by @berenddeboer on GitHub (Nov 26, 2025). Originally assigned to: @kommander on GitHub. ### Description This was like working yesterday!!. I have this in my `opencode.json`: ```json "keybinds": { "input_forward_delete": "alt+d", } ``` I prefer to have it delete word, but that doesn't exist. This worked like yesterday or the day before, but no longer with 1.0.115. It has reverted to doing delete line, which is superannoying. ### OpenCode version 1.0.115 ### Steps to reproduce 1. Add keybinding to `opencode.json` 2. Press alt+d 3. This will do delete line. ### Screenshot and/or share link _No response_ ### Operating System Ubuntu 24.04 ### Terminal Alacritty, tmux
yindo added the opentuibug labels 2026-02-16 17:38:52 -05:00
yindo closed this issue 2026-02-16 17:38:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 26, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3675: Keybind doesn't work in 1.0.7 - Custom keybindings not working after update
  • #3849: Keybind: ctrl+j stopped working in 1.0 - Custom keybindings being overridden by defaults
  • #3851: Keybind: q for app_exit doesn't exit in 1.0 - Custom keybindings not working with leaders
  • #3557: opentui: input_submit not reading keybind properly - Custom keybindings not being read properly

These all appear to be related to custom keybinding configuration not working properly in v1.0 versions. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Nov 26, 2025): This issue might be a duplicate of existing issues. Please check: - #3675: Keybind doesn't work in 1.0.7 - Custom keybindings not working after update - #3849: Keybind: ctrl+j stopped working in 1.0 - Custom keybindings being overridden by defaults - #3851: Keybind: <leader>q for app_exit doesn't exit in 1.0 - Custom keybindings not working with leaders - #3557: opentui: `input_submit` not reading <leader> keybind properly - Custom keybindings not being read properly These all appear to be related to custom keybinding configuration not working properly in v1.0 versions. Feel free to ignore if your specific case differs from these.
Author
Owner

@ariane-emory commented on GitHub (Nov 27, 2025):

I think something related to your environment (terminal emulator/keyboard mapper/etc) must be involved here, I tried the same keybinding you showed and it's working for me (on MacOS/iTerm2).

@ariane-emory commented on GitHub (Nov 27, 2025): I think something related to your environment (terminal emulator/keyboard mapper/etc) must be involved here, I tried the same keybinding you showed and it's working for me (on MacOS/iTerm2).
Author
Owner

@jasonish commented on GitHub (Nov 29, 2025):

I don't configure any bindings, but came here looking for why alt+d is delete line instead of delete word. Is this intentional? Quite frustrating, especially for us bash and probably zsh users :)

@jasonish commented on GitHub (Nov 29, 2025): I don't configure any bindings, but came here looking for why `alt+d` is delete line instead of delete word. Is this intentional? Quite frustrating, especially for us bash and probably zsh users :)
Author
Owner

@berenddeboer commented on GitHub (Dec 10, 2025):

Seems to work again!

@berenddeboer commented on GitHub (Dec 10, 2025): Seems to work again!
Author
Owner

@berenddeboer commented on GitHub (Dec 15, 2025):

People, just specify:

  "keybinds": {
    "input_delete": "ctrl+d"
  }

that fixes it for me.

@berenddeboer commented on GitHub (Dec 15, 2025): People, just specify: ```json "keybinds": { "input_delete": "ctrl+d" } ``` that fixes it for me.
Author
Owner

@jasonish commented on GitHub (Dec 15, 2025):

I don't configure any bindings, but came here looking for why alt+d is delete line instead of delete word. Is this intentional? Quite frustrating, especially for us bash and probably zsh users :)

I'd like to note that as of commit c12be73bf7, "alt+d" does the more common expectation of deleteing word forward, rather than delete line. Thanks!

@jasonish commented on GitHub (Dec 15, 2025): > I don't configure any bindings, but came here looking for why `alt+d` is delete line instead of delete word. Is this intentional? Quite frustrating, especially for us bash and probably zsh users :) I'd like to note that as of commit c12be73bf7fcea92fa5ac59d2f3f9200f7db07f1, "alt+d" does the more common expectation of deleteing word forward, rather than delete line. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3150