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

Coloring changes between 0.3.2 and 0.4.0? #330

Closed
scottchiefbaker opened this issue Jan 17, 2017 · 1 comment
Closed

Coloring changes between 0.3.2 and 0.4.0? #330

scottchiefbaker opened this issue Jan 17, 2017 · 1 comment

Comments

@scottchiefbaker
Copy link

scottchiefbaker commented Jan 17, 2017

On Linux using the 0.3.2 and 0.4.0 binary releases from Github produce different colors in the output. My rg alias is:

alias rg='rg --smart-case --colors line:fg:yellow --colors path:fg:green'

rg-colors

Note the green and yellow are darker, and the red is brighter. Did the spec for --colors change between versions? I don't see any mention of this in the docs. Perhaps this is somehow related to #182?

@BurntSushi
Copy link
Owner

The spec for --colors did not have any breaking changes, but it does look like I missed commit b187c1 from the CHANGELOG.

Firstly, the default colors/styles changed. File paths went from green to magenta, line numbers went from blue to green and matches stayed as red. Both paths and line numbers are no longer bolded, but matches remain bolded. This color scheme generally matches GNU grep's color scheme.

Secondly, I fixed a bungling of intense colors. Namely, if a bold color was specified, then an intense color was used instead of emitting the bold ANSI escape sequence. Therefore, I added a new style intense to distinguish between the colors.

You can try fiddling with intensity and boldness like this:

$ rg --colors path:style:intense --colors line:style:bold

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

2 participants