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

Compact output #88

Closed
devnoname120 opened this issue Oct 2, 2019 · 2 comments · Fixed by #89
Closed

Compact output #88

devnoname120 opened this issue Oct 2, 2019 · 2 comments · Fixed by #89

Comments

@devnoname120
Copy link

devnoname120 commented Oct 2, 2019

This is a bug I've meant to keep track of for a long time. I love tealdeer but the output drives me crazy because it's not compact enough compared to other tldr clients.

Official client:
image

Tealdeer:
image

As you can see in the screenshot it takes twice the space.

If I remove the excessive newlines, here is what it looks like (better imho):
image

I'd suggest to match the official client's output by default. I will give it a shot when I get the chance to, but feel free to fix it.

@dbrgn
Copy link
Collaborator

dbrgn commented Oct 2, 2019

IIRC tealdeer simply shows the newlines that are also present in the source file, without trying to collapse them.

I think the additional spacing makes things easier to read, but a "compact" option could be added, so that it's user-configurable.

@dbrgn dbrgn changed the title Tealdeer clutters the output with unnecessary newlines Compact output Oct 2, 2019
@korrat
Copy link
Contributor

korrat commented Oct 3, 2019

I would like to try this

@dbrgn dbrgn closed this as completed in #89 Oct 3, 2019
dbrgn added a commit that referenced this issue Oct 3, 2019
Add compact output option. Fixes #88.
@dbrgn dbrgn added this to the v1.3.0 milestone Oct 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants