ggreer / the_silver_searcher

A code-searching tool similar to ack, but faster.
http://geoff.greer.fm/ag/
Apache License 2.0
26.08k stars 1.42k forks source link

Combine --color and --vimgrep #890

Open evgeniysharapov opened 8 years ago

evgeniysharapov commented 8 years ago

Is it possible to have --vimgrep and --color options working together ? I would like ag to output and behave like grep (and --vimgrep seems to be doing exactly this) but with --vimgrep options --color and --color-win-ansi are not working. While with grep I can use --color=always

redguardtoo commented 8 years ago

Could you also add --color=auto option, like latest grep? The auto option will highlight the matched word in the line