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

Feature request: Automatic wrap long lines #27

Open
unlight opened this issue Jan 26, 2021 · 0 comments
Open

Feature request: Automatic wrap long lines #27

unlight opened this issue Jan 26, 2021 · 0 comments

Comments

@unlight
Copy link

unlight commented Jan 26, 2021

Current behavior when using timestamp and tags and trying to log long lines

[time] [tag] Lorem ipsum dolor sit amet
[time] [tag] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
[time] [tag] Lorem ipsum dolor sit amet

But it is more nicer when it looks like:

[time] [tag] Lorem ipsum dolor sit amet
[time] [tag] Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
             tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
             quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
[time] [tag] Lorem ipsum dolor sit amet

I suppose it is possible when I manually add linebreaks

log('Lorem ipsum dolor sit amet\ntempor incididunt ut labore\n et dolore magna aliqua. Ut enim ad minim veniam')

It would be nice if it happends automatically (break lines depending of available columns in terminal - https://github.com/sindresorhus/term-size)

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

No branches or pull requests

1 participant