Skip to content

Please allow setting color for matching line #3024

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

Open
depesz opened this issue Apr 8, 2025 · 1 comment
Open

Please allow setting color for matching line #3024

depesz opened this issue Apr 8, 2025 · 1 comment

Comments

@depesz
Copy link

depesz commented Apr 8, 2025

First of all - thank you for amazing tool. It's beyond great.

Describe your feature request

Sometimes I'm searching for short/small matches, and need to see context. While the match can be highlighted, it's not always obvious where it is.

For example, using gnu grep, I did set:

export GREP_COLORS="sl=48;5;240:mt=38;5;226;48;5;124"

and this lets me see matches like this:

Image

As far as I understand rg --help - I can't have this configured like this in ripgrep.

I think it would be worthy addition.

@BurntSushi
Copy link
Owner

I am unsure if this is worth adding. And it probably isn't something I'll work on. But I could probably review a patch that added it. Including updating all of the docs about color configuration.

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