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

Apply better coloring #43

Merged
merged 2 commits into from
Oct 14, 2021
Merged

Apply better coloring #43

merged 2 commits into from
Oct 14, 2021

Conversation

hasufell
Copy link
Contributor

Specifically, this gets rid of the {{path/to/file}}
pieces in code.

Most tldr clients parse these and apply different color.
Let's match that.


Haskell tldr

Screenshot_2021-10-10_15-50-18

NPM tldr

Screenshot_2021-10-10_15-49-48

Haskell tldr with this patch

Screenshot_2021-10-10_15-50-55


I couldn't find any impact on performance. The parsing is very quick.

@hasufell hasufell force-pushed the better-coloring branch 2 times, most recently from 29d01f0 to 9e1c28c Compare October 10, 2021 18:32
tldr.cabal Show resolved Hide resolved
Copy link
Owner

@psibi psibi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some minor comments. Can you also update the Changelog ? Thank you!

src/Tldr.hs Outdated Show resolved Hide resolved
Specifically, this gets rid of the {{path/to/file}}
pieces in code.

Most tldr clients parse these and apply different color.
Let's match that.
@hasufell hasufell requested a review from psibi October 13, 2021 08:35
@psibi psibi merged commit 0ac2f70 into psibi:master Oct 14, 2021
@psibi
Copy link
Owner

psibi commented Oct 14, 2021

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants