Closed pickfire closed 5 years ago
Thank you for your issue! There are plans to add a column width argument so that you can set the width of the output yourself, that error message should not and does not come up when I run tokei at 80 column width. The help message text formatting is not up to tokei as it isn't generated by tokei it is generated using clap.rs
@Aaronepower Thanks a lot for the quick response. :smile:
Sorry, I forgot to mention the error message are generated by tokei -o json
where I did not enable the feature json
.
Thank you for your issue! There are plans to add a column width argument so that you can set the width of the output yourself,
Limiting, by default, to something like 80 might be easier and more useful then a user-configurable option.
Hm, perhaps even limiting is not required? All output is known upfront, so it should be possible to calculate the desired width and just use that?
@matklad Yes, it would be even cooler if we do it in compile time (but I am not sure how that works). Still, I prefer to keep it below 80.
Sorry I haven't replied to this issue, I do actually have a working implementation for setting a width limit. I will try to release it by the end of the month.
@Aaronepower yep, just saw that. -c
options looks great, but I suggest using at most 79 by default as well: https://github.com/Aaronepower/tokei/pull/286
So now in 9.0.0 you can add config file so that you can manually specify the width of Tokei whenever it runs. I think this adequately solves this issue, please do provide feedback if you feel it is lacking in a certain aspect.
When the terminal is too long (340 columns), the output is not easily readable without highlighting line by line.
Suggestion:
When the terminal is too small (80 columns), error message (
tokei -o json
whenjson
feature is not enabled) looks weird.Further more, the help is hard to read as compared to error messages which is readable.
Suggestion:
gqap
in vim)Error:
isn't necessary there.Note: I agree that everyone could buy a bigger monitor if the screen is small or reduce the width and font size of terminal is the screen is big. But I just hope that
tokei
could look the best no matter the terminal or screen size. In a nutshell, readability matters.