Skip to content

[FEATURE]: Allow to Shift + enter to edit in next line without enter #9836

@jtorrex

Description

@jtorrex

Feature 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

Problem: When composing multi-line messages in Opencode, pressing Enter sends the message immediately, making it difficult to write formatted code blocks or multi-line responses without using workarounds.

Requested Feature: Add support for Shift+Enter to insert a new line while keeping Enter as the send command.

Use Cases:

  • Writing multi-line code examples
  • Formatting markdown with line breaks
  • Composing structured explanations with paragraphs
  • Pasting code snippets with proper formatting

Expected Behavior:

  • Enter → Send message (current behavior)
  • Shift+Enter → Insert new line (new behavior)

This pattern is common in CLI tools and chat interfaces (e.g., ChatGPT, Discord, Slack) and would improve the user experience for composing complex multi-line content.

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis 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