Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: make "Enter" to be start a new line, and "Ctrl+Enter" be send message #355

Open
Lostsite opened this issue Nov 18, 2023 · 3 comments

Comments

@Lostsite
Copy link

If it is possible to add a input opposition be make "Enter" to be start a new line, and "Ctrl+Enter" be send message?

Many times I need input multiple lines of context, and accidentally send it out in the middle of editing.

@Ryan526
Copy link
Contributor

Ryan526 commented Nov 20, 2023

You can use "Shift" + "Enter" to start a new line. That's how pretty much all messaging apps (teams, discord, etc...) work so I don't see any need to make it different than everything else.

@Lostsite
Copy link
Author

Lostsite commented Nov 20, 2023

In all other messaging apps (slack, teams, etc.), I have changed the settings to make enter as new line, and ctrl+enter as send message. We should have this choose. (I think this is more nature).

@science
Copy link

science commented Mar 30, 2024

Bumping support for this. I agree that most messaging apps use enter to submit. But talking to an LLM is more like an email message and less like a chat exchange, at least for my use-cases. I write multiple paragraphs of input, and having to remember to press shift-enter to add a newline is counter-intuitive to say the least.

It'd be great if there were a config option to allow enter to be "newline" and ctrl-enter to be submit.

Noting also, that this is how Github works, as well as the playground for OpenAI/GPT and Claude AI.

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

No branches or pull requests

3 participants