Implement multiline-mode, swaps Enter & Meta-Enter

This commit is contained in:
Mir Adnan ALI 2024-12-11 04:58:42 -05:00
parent fbde0936e7
commit aaf7e3f943
6 changed files with 66 additions and 2 deletions

View file

@ -5,6 +5,10 @@ You can send long, multi-line messages in the chat in a few ways:
- Use Meta-ENTER to start a new line without sending the message (Esc+ENTER in some environments).
- Use `/paste` to paste text from the clipboard into the chat.
- Use the `/editor` command to open your editor to create the next chat message. See [editor configuration docs](/docs/config/editor.html) for more info.
- Use multiline-mode, which swaps the function of Meta-Enter and Enter, so that Enter inserts a newline, and Meta-Enter submits your command. You can enable multiline mode in three ways:
- Use the `/multiline-mode` command to toggle it during a session
- Start aider with the `--multiline` flag
- Start aider with the environment variable AIDER\_MULTILINE=true
Example with a tag:
```