Skip to content

Alt+d can no longer be remapped #4808

Closed

Description

@berenddeboer

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 27, 2025
  2. github-actions commented on Nov 27, 2025

    @github-actions
    Contributor

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

    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.

  3. ariane-emory commented on Nov 27, 2025

    @ariane-emory
    Contributor

    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).

  4. jasonish commented on Nov 29, 2025

    @jasonish

    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 :)

  5. berenddeboer commented on Dec 11, 2025

    @berenddeboer
    Author

    Seems to work again!

  6. berenddeboer commented on Dec 15, 2025

    @berenddeboer
    Author

    People, just specify:

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

    that fixes it for me.

  7. jasonish commented on Dec 15, 2025

    @jasonish

    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 c12be73, "alt+d" does the more common expectation of deleteing word forward, rather than delete line. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions