beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 138 forks source link

Make --color similar to --color from grep #405

Closed pengyu closed 10 years ago

pengyu commented 10 years ago

--color from grep can take always and auto. --color from ack2 is equivalent to always, which cause problems when the output is piped. May I suggest adding auto to ack2's --color.

See more at https://groups.google.com/forum/#!topic/vim_use/Ba1SfjC7J-M.

petdance commented 10 years ago

ack without --color should be equivalent to --color=auto. Ack should not color if it is being piped. It sounds like your problem may be with ack detecting if it's being piped.