Closed hoelzro closed 10 years ago
I think it would have to only be on if the user forced --color to be on. My assumption is that -g is going to be used as a source of data for something else.
That makes sense. But we should have -g
highlight its matches if --color
is active and we outputting to a terminal, yes?
Yes, if the user forces --color
, But --color
should default to off if -g
is on.
Ok, cool.
I've implemented this; since we now have the option to do this, does it make sense to implement --passthru
for -g
as well?
No, --passthru does not belong on -g.
That's done, then.
When I look through a file list using
ack -g
, it might be nice to highlight the matches. Should we do this by default when the color option is active?