Ability to disable or unset keybinds #804

Closed
opened 2026-02-16 17:28:23 -05:00 by yindo · 1 comment
Owner

Originally created by @nderscore on GitHub (Jul 18, 2025).

Originally assigned to: @adamdotdevin on GitHub.

Description

opencode's configuration currently supports customizing keybinds, but it does not provide any mechanism to disable, unbind, or unset a particular keybind. I would like to disable keybinds for specific actions in order to prevent myself from accidentally triggering them, while still leaving them available for slash-command usage.

If an empty value is provided to the keybinds config, the current behavior is that default keybinds are used:

{
  "keybinds": {
    "session_share": "" // <-- this falls back to `<leader>s`
  }
}

Proposal

When an explicit empty string (or another value like null or "<off>") is set for a keybind config, treat this as disabling the keybind.

Originally created by @nderscore on GitHub (Jul 18, 2025). Originally assigned to: @adamdotdevin on GitHub. # Description opencode's configuration currently supports customizing keybinds, but it does not provide any mechanism to disable, unbind, or unset a particular keybind. I would like to disable keybinds for specific actions in order to prevent myself from accidentally triggering them, while still leaving them available for slash-command usage. If an empty value is provided to the keybinds config, the current behavior is that default keybinds are used: ```json { "keybinds": { "session_share": "" // <-- this falls back to `<leader>s` } } ``` # Proposal When an explicit empty string (or another value like `null` or `"<off>"`) is set for a keybind config, treat this as disabling the keybind.
yindo closed this issue 2026-02-16 17:28:23 -05:00
Author
Owner

@rekram1-node commented on GitHub (Aug 29, 2025):

@nderscore you can set a keybind value to "none" to disable it, ex:

"keybinds": {
    "app_exit": "none"
  }
@rekram1-node commented on GitHub (Aug 29, 2025): @nderscore you can set a keybind value to "none" to disable it, ex: ``` "keybinds": { "app_exit": "none" } ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#804