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

A simple way to swap Enter and Meta-Enter #2473

Open
u2324 opened this issue Nov 27, 2024 · 2 comments
Open

A simple way to swap Enter and Meta-Enter #2473

u2324 opened this issue Nov 27, 2024 · 2 comments
Labels
question Further information is requested

Comments

@u2324
Copy link

u2324 commented Nov 27, 2024

Issue

Practically every input that I make to Aider is multi-line. In many other systems, for example, Mathematica or Sage, the default when pressing the Enter key is to simply insert a new line and not submit a query or statement to the backend. If one wishes to submit the current input, then they must press down Control, or Shift, or (in this case) Meta while pressing the Enter key.

Since the vast majority of the time I'm hitting Enter simply to get to the next line to separate elements of my input, it's often the case that I press enter mistakenly, which in my case costs me between 5 to 25 cents each time.

So, I would like a way to set the default to be that Enter does not submit the current input buffer, but rather simply moves to the next line to allow for multi-line editing, requiring a modifier to send the input buffer for processing.

Perhaps a reminder to submit via Alt-Enter could be put on the terminal prompt if this behaviour is unintuitive.

Thank you for such a great product!

Version and model info

No response

@Kreijstal
Copy link

or alternatively make shift+enter accept a new line just like in the web-ui of ChatGPT, Claude, Deepseek... mistral

@paul-gauthier
Copy link
Collaborator

Thanks for trying aider and filing this issue. This doc may be helpful:

https://aider.chat/docs/usage/commands.html#entering-multi-line-chat-messages

@paul-gauthier paul-gauthier added the question Further information is requested label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants