GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Support modifying newline and submit keybinds in TUI/GUI · Issue #11898 · anomalyco/opencode

[FEATURE]: Support modifying newline and submit keybinds in TUI/GUI #11898

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
[FEATURE]: Support modifying newline and submit keybinds in TUI/GUI#11898
Copy link
Assignees
rekram1-node

Description

@gitsang
gitsang
opened on Feb 3, 2026
Issue body actions

Question

Is there any way to use enter to send newline(\n), and ctrl+enter to send message.

Relate Issue

  • shift+enter keybinding not working #1505
  • [FEATURE]: Allow to Shift + enter to edit in next line without enter #9836
Reacted by Jorge, Philip Mateescu, Inari0, TatsuyaKITABORI, Esa-Matti Suuronen, hiraghi, S. Mahdi Mir-Ismaili and Igor WebDev

Activity

Next
  1. github-actions
    assigned
    rekram1-node
    on Feb 3, 2026
  2. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 3, 2026
  3. github-actions commented on Feb 3, 2026

    @github-actions
    github-actionsBot
    on Feb 3, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • shift+enter keybinding not working #1505: shift+enter keybinding not working - a related issue about keybind customization for message input

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

  4. jorgedanisc commented on Feb 14, 2026

    @jorgedanisc
    jorgedanisc
    on Feb 14, 2026
    More actions
    Image

    This would be really interesting to me as well on the Desktop App! Claude Code handles this nicely (uploaded a screenshot from their Settings on VSCode)

    It could be as simple as adding that checkbox I uploaded above - or just two new shortcuts on the settings (line break and input submit)

    Reacted by Alex Yaroshuk, Sang and Philip Mateescu
  5. philipmat commented on Feb 23, 2026

    @philipmat
    philipmat
    on Feb 23, 2026
    More actions

    The Codex desktop app does it the same way and it's particularly nice when writing multi-line prompts (which for me is most of the time).

    Image
  6. TomServo138 commented on Mar 18, 2026

    @TomServo138
    TomServo138
    on Mar 18, 2026
    More actions

    Surprising bug to let thru, for such an otherwise prominent program. Obviously should have been fixed immedately ... last month.

    That said, came here to let others know that one workaround, in the meantime, is use Ghosttly and add this to config:

    # Swap Enter and Ctrl+Enter for OpenCode
    keybind = enter=text:\n
    keybind = ctrl+enter=text:\r
    
    Reacted by Sang
  7. Molunerfinn commented on Mar 22, 2026

    @Molunerfinn
    Molunerfinn
    on Mar 22, 2026
    More actions

    +1 need this feature too

    Reacted by hiraghi, Airic Lenz and Sam
  8. 49 remaining items

  9. serhumanos commented on Oct 4, 2026

    @serhumanos
    serhumanos
    on Oct 4, 2026
    More actions

    This will be very useful; in most cases, I hit Enter to add a new line.

  10. IgorWRD commented on Oct 20, 2026

    @IgorWRD
    IgorWRD
    on Oct 20, 2026
    More actions

    +1 - confirming this is still an issue in the desktop app on Windows (v2.1.0).

    Desired behavior: Enter inserts a newline, Ctrl+Enter submits the message.
    Current behavior: Enter always submits, and the documented input.submit / input.newline overrides in cli.json are ignored by the desktop composer.

    An app-level option (like the "Enter sends message" checkbox in other AI chat clients) would solve this for desktop and web clients - multi-line prompts are quite common, and the current behavior causes accidental sends.

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

Metadata

Metadata

Assignees

  • @rekram1-node
    rekram1-node

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.