Skip to content

Modifying keybinds.input_newline has no effect #5458

Closed

Description

@JosXa

Description

Putting anything into

  "keybinds": {
    "input_newline": "..."
  },

doesn't appear to do anything. The only working keybinds for me remain Ctrl+J and Ctrl+Enter no matter what I try.

What I would like is Ctrl+Shift instead, if possible. Is it?

OpenCode version

1.0.150

Steps to reproduce

  1. Be on Windows Terminal
  2. Set
  "keybinds": {
    "input_newline": "Shift+Enter"
  },
  1. Observe: Only Ctrl+J and Ctrl+Enter work.

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Activity

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

    @github-actions
    Contributor

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

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

    Feel free to ignore if none of these address your specific case.

  3. JosXa commented on Dec 15, 2025

    @JosXa
    ContributorAuthor

    Duplicate, I suppose

  4. kommander commented on Dec 15, 2025

    @kommander
    Contributor

    Yes, we'll provide some scripts to tweak terminal settings across platforms and use some windows console scripting to improve, but out of the box there is currently not much I can do here I am afraid.

  5. doodhout commented on Dec 18, 2025

    @doodhout

    Slightly highjacking this issue report to notify (KDE Plasma) Konsole users suffering from the same symptom: Shift+Enter not working in OpenCode.

    I found that this is because of the way Konsole is configured by default. Users of Claude Code have raised this very issue on the Claude Code issue tracker: anthropics/claude-code#2115

    TL;DR: Default key bindings for Konsole is based on Xfree 4 which binds Return+Shift to \EOM instead of to \n. When you manually modify this value in the key binding profile, then Shift+Enter does work both for Claude Code and OpenCode. Yay!

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