Keybind: ctrl+_ stopped working in 1.0 #2546

Closed
opened 2026-02-16 17:36:10 -05:00 by yindo · 9 comments
Owner

Originally created by @jdanbrown on GitHub (Nov 3, 2025).

Description

The ctrl+_ keybind (sent by pressing ctrl+/) used to work in 0.15.31 but no longer works in 1.0.16. Example:

"keybinds": {
  "model_list": "ctrl+_",
}

Note that when you press ctrl+/, VS Code terminals send ctrl+_ (which gpt5 says is "more correct" 🤷) but iTerm2 sends ctrl+/. So YMMV depending on terminal.

OpenCode version

1.0.16

Steps to reproduce

(above)

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Originally created by @jdanbrown on GitHub (Nov 3, 2025). ### Description The `ctrl+_` keybind (sent by pressing `ctrl+/`) used to work in 0.15.31 but no longer works in 1.0.16. Example: ```jsonc "keybinds": { "model_list": "ctrl+_", } ``` Note that when you press `ctrl+/`, VS Code terminals send `ctrl+_` (which gpt5 says is "more correct" 🤷) but iTerm2 sends `ctrl+/`. So YMMV depending on terminal. - If you want to change iTerm2 to instead send `ctrl+_`: Settings → Keys → Key Bindings → plus icon → "Send Hex Codes: 0x1F" - gpt5: https://chatgpt.com/share/69091331-27b4-8009-8d59-47b816311339 ### OpenCode version 1.0.16 ### Steps to reproduce (above) ### Screenshot and/or share link _No response_ ### Operating System macOS 15.5 ### Terminal VS Code terminal
yindo added the opentuibug labels 2026-02-16 17:36:10 -05:00
yindo closed this issue 2026-02-16 17:36:10 -05:00
Author
Owner

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

This issue might be related to other keybinding problems introduced in version 1.0. Please check:

  • #3675: General keybind configuration issues in 1.0.7
  • #3647: Ctrl-u not working (readline keybinding issue)
  • #3640: ctrl+p/ctrl+n behavior changed in 1.0.2
  • #3379: readline-style keybindings not working
  • #3783: Command backspace not working from 1.0
  • #3643: C-x y keybinding no longer working in 1.0.2

While none of these specifically address ctrl+_ (ctrl+/), they represent a broader pattern of keybinding regressions in v1.0 that might share the same underlying cause.

@github-actions[bot] commented on GitHub (Nov 3, 2025): This issue might be related to other keybinding problems introduced in version 1.0. Please check: - #3675: General keybind configuration issues in 1.0.7 - #3647: Ctrl-u not working (readline keybinding issue) - #3640: ctrl+p/ctrl+n behavior changed in 1.0.2 - #3379: readline-style keybindings not working - #3783: Command backspace not working from 1.0 - #3643: C-x y keybinding no longer working in 1.0.2 While none of these specifically address ctrl+_ (ctrl+/), they represent a broader pattern of keybinding regressions in v1.0 that might share the same underlying cause.
Author
Owner

@thdxr commented on GitHub (Nov 3, 2025):

fixed will release soon

@thdxr commented on GitHub (Nov 3, 2025): fixed will release soon
Author
Owner

@jdanbrown commented on GitHub (Nov 3, 2025):

Verified it's working in 1.0.18, thank you!

@jdanbrown commented on GitHub (Nov 3, 2025): Verified it's working in 1.0.18, thank you!
Author
Owner

@JSCOP commented on GitHub (Nov 3, 2025):

These keybinds are not working on 1.0.19.
Does anyone can verified these keybinds are working?
@thdxr @jdanbrown
{
"$schema": "https://opencode.ai/config.json",
"keybinds": {
"input_submit": "ctrl+enter",
"input_newline": "enter",
}
}

@JSCOP commented on GitHub (Nov 3, 2025): These keybinds are not working on 1.0.19. Does anyone can verified these keybinds are working? @thdxr @jdanbrown { "$schema": "https://opencode.ai/config.json", "keybinds": { "input_submit": "ctrl+enter", "input_newline": "enter", } }
Author
Owner

@rekram1-node commented on GitHub (Nov 3, 2025):

@JSCOP we have a separate issue tracking newline behaviors

@rekram1-node commented on GitHub (Nov 3, 2025): @JSCOP we have a separate issue tracking newline behaviors
Author
Owner

@JSCOP commented on GitHub (Nov 4, 2025):

@rekram1-node 1.0.20 doesn't work either please fix this please

@JSCOP commented on GitHub (Nov 4, 2025): @rekram1-node 1.0.20 doesn't work either please fix this please
Author
Owner

@rekram1-node commented on GitHub (Nov 4, 2025):

@JSCOP what doesn't work? are we talking about newline still? Like I said for that, separate issue and we are going to fix it

@rekram1-node commented on GitHub (Nov 4, 2025): @JSCOP what doesn't work? are we talking about newline still? Like I said for that, separate issue and we are going to fix it
Author
Owner

@JSCOP commented on GitHub (Nov 6, 2025):

@rekram1-node
I found the reason why the keybinds weren’t working.

"keybinds": {
"input_newline": "return",
"input_submit": "ctrl+p"
}

It looks like enter was changed to return, so input_newline works fine.
But input_submit doesn’t work when I bind it to ctrl+return.
I’m guessing ctrl+return is already bound to something else.

So I changed the terminal keybind for ctrl+return to act as ctrl+p, and now everything works the way I want.

@JSCOP commented on GitHub (Nov 6, 2025): @rekram1-node I found the reason why the keybinds weren’t working. "keybinds": { "input_newline": "return", "input_submit": "ctrl+p" } It looks like enter was changed to return, so input_newline works fine. But input_submit doesn’t work when I bind it to ctrl+return. I’m guessing ctrl+return is already bound to something else. So I changed the terminal keybind for ctrl+return to act as ctrl+p, and now everything works the way I want.
Author
Owner

@rekram1-node commented on GitHub (Nov 6, 2025):

interesting, thanks for clarifying

@rekram1-node commented on GitHub (Nov 6, 2025): interesting, thanks for clarifying
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2546