GeezerVison is showing github.com — [FEATURE]: Make App prompt action shortcuts configurable · Issue #43088 · anomalyco/opencode
[FEATURE]: Make App prompt action shortcuts configurable #43088DescriptionFeature hasn't been suggested before.
- I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The current web/Desktop App on dev has a Keyboard Shortcuts editor, but prompt submit, newline, and alternate delivery are still hardcoded and cannot be rebound. I want these actions exposed through the existing shortcut UI while preserving the current defaults:
prompt.submit: Enter
prompt.newline: Shift+Enter
prompt.submit.alternate: Ctrl/Cmd+Enter — queue or steer opposite the configured follow-up behavior
This would allow configurations such as Enter for newline and Ctrl/Cmd+Enter for submit, with a separate customizable alternate-delivery shortcut, without adding another settings model. Each action should support disabling and restoring its default, and shortcut hints should reflect the effective bindings.
This request targets the current App implementation promoted from v2 to dev. Related historical work does not cover the current implementation:
The proposed implementation registers all three actions in the App command catalog but keeps dispatch editor-local so suggestions, IME composition, selection replacement, and key-repeat behavior remain correct in the current Composer used by both new-session and session surfaces. Reacted by Bekir Dogan, Dave Hansen-Lange, labtopSir, Simon Kirsten, nil, Zhouys, Bryan Octavio, tooyangtoonaive, Yihao Gao, Ted Won and 6 more Reacted by Lukas Willin Reacted by Lukas Willin Activitychanged the title [-][FEATURE]: Make V2 App prompt submit and newline shortcuts configurable[/-] [+][FEATURE]: Make V2 App prompt action shortcuts configurable[/+] on Sep 10, 2026added 3 commits that reference this issue on Sep 10, 2026This issue will close once commit ab1363a is merged into the 'casual' branch.ab1363a This issue will close once commit ebea514 is merged into the 'casual' branch.ebea514 This issue will close once commit 6a5738d is merged into the 'casual' branch.6a5738d opencodejr commented on Oct 28, 2026 Thanks for the detailed request! In short, you'd like the App's prompt submit (Enter), newline (Shift+Enter) and alternate-delivery (Ctrl/Cmd+Enter) keys added as configurable actions in the existing Keyboard Shortcuts editor. Each would keep its current default, support disabling and resetting, and have hints that show the effective bindings. That would allow setups like Enter for newline and Ctrl/Cmd+Enter for submit.
I checked the current composer: these keys are handled directly in the editor's key handler and aren't registered as rebindable commands, so this is a new capability rather than a bug. The maintainers will consider it.
Related issues, as you noted:
added 5 commits that reference this issue on Oct 29, 2026This issue will close once commit 5968990 is merged into the 'casual' branch.5968990 This issue will close once commit 3348707 is merged into the 'casual' branch.3348707 This issue will close once commit cee1644 is merged into the 'casual' branch.cee1644 This issue will close once commit cf295b0 is merged into the 'casual' branch.cf295b0 This issue will close once commit 5b17712 is merged into the 'casual' branch.5b17712 BAV2026 commented on Nov 19, 2026 +1 — this is exactly what I need on the desktop app.
Environment: OpenCode desktop 2.2.5, Windows 10.0.28000, bundled CLI 2.2.5 (latest channel), no plugins.
In the desktop composer Enter always submits and Shift+Enter inserts a newline, and neither is exposed in Settings → Shortcuts, so there is no supported way to swap them. I first tried ~/.config/opencode/cli.json (input.submit / input.newline) — it works in the TUI, but the desktop bundle never reads cli.json, so nothing changed.
Configuring prompt.submit, prompt.newline, and prompt.submit.alternate through the existing Shortcuts UI (as proposed here) would fully solve it for Windows desktop users. Happy to test a build with #55313 on Windows. jakedowns commented on Nov 19, 2026 would love to see generic keybinding configs to match tui, i would love to be able to bind, say alt+p , alt+n for jumping to prev/next user messages in the desktop gui + web gui added 3 commits that reference this issue on Nov 19, 2026This issue will close once commit b76bf14 is merged into the 'casual' branch.b76bf14 This issue will close once commit a307f8e is merged into the 'casual' branch.a307f8e This issue will close once commit 0d91083 is merged into the 'casual' branch.0d91083 LukasWillin commented on Nov 22, 2026 This is exactly what I need as well. As a developer in all my programs Enter is a newline and it is jarring having to constantly change this mental model.
For me opencode and similar programs are tools like IDEs not simple chat windows. And even it is a chat app I rebind all my messengers to not immediately send on enter and instead enter newline.
Call me crazy for perhaps being a bit pedantic with my messages, but I really like to reread what I wrote and make sure that it is formatted. But apparently these days one get's to feel old at 34. added 2 commits that reference this issue on Nov 23, 2026This issue will close once commit a107e9d is merged into the 'casual' branch.a107e9d This issue will close once commit 677fc85 is merged into the 'casual' branch.677fc85
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|