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

Enable colorizing of context line separator characters #568

Closed h3xx closed 7 years ago

h3xx commented 9 years ago

(Discussion in ack-users)

I tried to set the color of the context line separator characters in ack, but found ack lacks the options to do so. Ack only has support for uncolored separator characters.

The characters I'm talking about are the :, -, and -- characters that decorate the output when you're searching with context lines turned on:

$ ack -H -C 1 z ~/.garbage
/home/me/.garbage
2-bar
3:baz
4-qux
--
25-bar
26:baz
27-qux

I've already implemented this feature in my own repo: https://github.com/h3xx/ack2/tree/feature-color-separator

Grep supports this already. Would anyone find this enhancement useful?

petdance commented 7 years ago

Closed and moved to Feature requests in wiki.