Skip to content

feat(core, prompts): add submitOnEnter option to multiline - #651

Open
snelusha wants to merge 2 commits into
bombshell-dev:mainfrom
snelusha:feat/multiline-submit-on-enter
Open

snelusha wants to merge 2 commits into
bombshell-dev:mainfrom
snelusha:feat/multiline-submit-on-enter

Conversation

@snelusha

Copy link
Copy Markdown

What does this PR do?

Adds submitOnEnter to multiline: Enter submits, Alt+Enter or Ctrl+J adds a new line. Default is unchanged.

Shift+Enter and Ctrl+Enter send the same \r as Enter in most terminals, so they can't be used.

Pasting text with line breaks still submits early. This is an existing issue, to be fixed with bracketed paste in a follow-up.

Closes #650

Type of change

  • Feature

Checklist

  • pnpm test passes (or targeted tests for my change)
  • pnpm format has been run
  • I have added/updated tests for my changes (if applicable)
  • I have added a changeset

AI-generated code disclosure

  • This PR includes AI-generated code

@changeset-bot

changeset-bot Bot commented Nov 29, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 831155a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@clack/core Minor
@clack/prompts Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request] multiline: submit on single Enter

1 participant