Skip to content

Scarf: Add option to send message with ⌘+Enter instead of Enter #19234

@lueallen515

Description

@lueallen515

Problem

When using Scarf on macOS with a Chinese input method (or any IME), pressing Enter immediately sends the message. This conflicts with the IME workflow where Enter is used to confirm candidate character selection, causing messages to be sent mid-composition — often resulting in half-typed or garbled messages.

Current Behavior

  • Enter key = send message (hardcoded)
  • No way to configure this behavior
  • Shift+Enter = newline (workaround, but doesn't solve the IME conflict)

Proposed Solution

Add a setting in Scarf preferences to choose the send shortcut:

  • Enter to send (current default)
  • ⌘+Enter to send (Enter inserts newline / works normally with IME)

This is a standard feature in most chat applications (Slack, Telegram, Discord, WeChat, etc.).

Environment

  • macOS 26.3.1, Apple M4
  • Scarf (latest)
  • Chinese input method (SCIM)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/featureNew 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