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

feat: use backslash at end of line for multiline text #147

Merged
merged 1 commit into from
Oct 24, 2023
Merged

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Oct 24, 2023

⚠️ The PR has been replaced by #151 and will have no effect


〉.set dry_run true

〉abc \
def \
ijk

>>> The following message consumes 12 tokens.
abc 
def 
ijk

Deprecate old {}/() multi-line editing

@sigoden sigoden merged commit b5e1460 into main Oct 24, 2023
3 checks passed
@sigoden sigoden deleted the feat-newline branch October 24, 2023 09:45
@jacksongoode
Copy link
Contributor

Does this mean there is no toggle for multiline editing now?

@sigoden
Copy link
Owner Author

sigoden commented Oct 25, 2023

yes

In aichat repl, there will be only two ways to enter multi-line text

  • use .edit command
  • directly pasting the multi-lines text

@milanglacier
Copy link

milanglacier commented Oct 25, 2023

Does this mean there is no toggle for multiline editing now?

Most of time just pasting the multi-lines text should work as long as you are using a popular terminal (which should implement the bracketed paste mode to support paste).

rooct pushed a commit to rooct/aichat that referenced this pull request Nov 30, 2023
BREAKING CHANGE: use backslash at end of line for multiline text

```
〉.set dry_run true

〉abc \
def \
ijk

>>> The following message consumes 12 tokens.
abc 
def 
ijk
```

Deprecate old {}/() multi-line editing
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.

3 participants