Add option to insert a new line with Enter key instead of sending a message

Status Fixed / completed
Maintainer reply None cached
Activity 5 comments · opened Jun 13, 2025 · closed Jun 13, 2025

Hi is there any option to insert a new line with Enter key instead of sending a message? In CJK languages enter key is used to confirm the input and the current key binding very often leads to an incomplete message mistakenly sent to claude.

View original on GitHub ↗

5 Comments

elvstejd · 1 year ago

Open a claude session and run the /terminal-setup command. That should configure newline support (with Shift + Enter) for the given terminal.

The docs have been very useful to answer these kinds of questions, I recommend taking a look https://docs.anthropic.com/en/docs/claude-code/overview

The search bar doubles as an AI chat that RAGs over the docs.

tmokmss · 1 year ago

@elvstejd Thanks, but I mean Enter to add a new line (and maybe shift+enter to submit.) The /terminal-setup configuration still sends the message when I pressed enter, which is annoying.

elvstejd · 1 year ago

Oh, I see! You're aware of /terminal-setup and shift+enter, but you mean adding an option to switch around the keys for send and newline.

I agree its annoying to send incomplete messages by mistake!

In the meantime, I recommend pressing the Escape key inmediately to interrumpt the incomplete message. You can also _double_ tap the Escape key to go back further.

tmokmss · 1 year ago

Thanks again @elvstejd. I'll add this issue as a feature request. (I thought reopening this issue triggers the triage action again but it turned out I don't have access to reopen it 🤷)

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.