Re:Show HN: A simple, fast and user-friendly alternative to ...
by kaushalmodi on Thursday October 12, 2017 @06:23PM
(#15461779)
Thanks. That's good to know, though it's impossible for rg to do something like this at the moment.. highlight different regexes in different colors. Note that support of \K from PCRE is really crucial for this.
[ Parent
| on HN ]
Re:Show HN: A simple, fast and user-friendly alternative to ...
by burntsushi on Friday October 13, 2017 @08:50AM
(#15465110)
Huh? You can pretty much do exactly the same thing with ripgrep. There's no need for any fancy magic powers.
Example in the linux repo:
rg --color always PM_RESUME | rg '^|PM_SUSPEND' --colors 'match:fg:green'