-
Notifications
You must be signed in to change notification settings - Fork 62
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
Wrap lines to terminal width #119
Comments
I ran into something similar, in the json-benchmark there is a 2mb canada.json almost all of of the contents being on a single line. It might be nice to also have a
I'm not sure if it deserved a separate report since it seemed somewhat related. |
I am opposed to this. If you wrap lines to terminal width, then the lines look really ugly whenever the user resizes the terminal. For example, this is what bat does:
and this is what it looks like when I resize my terminal: |
Just so I understand, you're opposed to this even when locked behind a |
I guess if it's opt-in it would be ok, but it should still be documented that there's no way for codespan to handle terminal resizing. This is a common annoyance that I have with CLI programs, it also breaks copy/pasting. |
This does seem like something tools should expose, kind of like the coloring of output - something like |
I'm thinking it might be useful to pass in an optional width for line wrapping in the
Config
struct. This would wrap lines and error messages. If we can figure out how to also include types like those frompretty
, then these might be able to take advantage of this information as well.The text was updated successfully, but these errors were encountered: