Skip to content

Config option that swaps the default Enter key behavior: Enter inserts newline, Ctrl+Enter submits input #5716

@hackf5

Description

@hackf5

What feature would you like to see?

Currently, pressing Enter submits the input, while Ctrl+Enter inserts a newline.
This setup optimises for single-line use, but many workflows involve multi-line input by default. Accidental early submissions are frequent and frustrating.

Proposed Enhancement

Add a new config option that swaps the default behavior:

  • Enter → insert newline
  • Ctrl+Enter → submit input

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displayenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions