-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Color replacements when using --replace #521
Comments
Agreed. I like it! |
Maybe a new colour spec? So you could do like |
@okdana I'd rather not add a new color spec. We should just use the existing |
Fair. I was thinking there would be some cases where you didn't want colouring, like when your replacement affects the entire line, but on balance an additional colour spec doesn't really help you there. If you ever have a situation like that where don't want the colours, you'll still have to pass I retract my suggestion |
ripgrep colors matches in red (by default). That's very useful.
When using the
--replace
option, I would find it very useful if the replacements were colored. Currently, nothing is colored (except file paths and line numbers of course).Here's a screenshot showing what I mean:
And here's a text sketch:
What do you think?
(By the way, thank you very much for ripgrep. It's excellent.)
The text was updated successfully, but these errors were encountered: