Skip to content

[FEATURE] Switch Enter <> Alt-Enter #74

@MostFrabjous

Description

@MostFrabjous

Problem Statement

I'd love to see an option to switch the default behavior of Enter to insert a newline, over the default behavior of submitting the message.

Proposed Solution

Change Keybindings to behave like:

  • Enter → Insert a new line (instead of submitting)
  • Shift+Enter / Ctrl+Enter / Alt+Enter → Submit message

Alternative Solutions

I tried to dirty patch Claude Code using https://github.com/appositeit/claude-code-better-enter. But on the on hand that failed, on the other hand is it a very dirty solution.

Use Case

My ingrained habit of pressing 'Enter' for a new line causes me to accidentally send messages. This becomes a point of friction when I'm trying to write code, create lists, or compose prompts that span multiple paragraphs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions