-
Notifications
You must be signed in to change notification settings - Fork 360
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] Add ability to set maximum line width #97
Comments
Do you mean no-wrap and horizontal scrolling? Normal text wrapping is more appropriate. Given this, I'm not going to add this feature. |
No, I meant setting a maximum width of e.g. 80, or 120 characters and having the text wrapped at that width, even if the terminal window is wider. |
This introduce a problem: text copied to from terminal selection may be broken. For example. let text = "Lorem ipsum dolor sit amet. Morbi et lobortis nisi, at ullamcorper sem. Vestibulum semper diam nec nulla
tempor dictum. Sed vitae placerat tortor. In ut convallis sapien. Fusce non scelerisque sapien. " In order to meet the max-width limit, Aichat may insert line break: If we copy this text and run |
Technically, a vim-like tui application takes over the terminal, which handles the copying itself. This way you can copy the original text from the selected text. |
text-wrap of #99 has the same problem. |
That was the motivation for suggesting not to wrap code blocks. Code blocks remain easily copyable, but paragraphs of explanation are more readable. This very roughly approximates the rendering within a browser. |
Currently, text will be wrapped at the width of the terminal window. Ideally I could set a maximum width (and even better if this maximum width was ignored for fenced code blocks).
The text was updated successfully, but these errors were encountered: