Open alexwhitman opened 10 years ago
I often use gr to do a quick search but sometimes it would be useful to know the context of what is found by looking at the surrounding lines. Adding something like grep's -A, -B and -C flags would be useful.
gr
-A
-B
-C
Makes sense. I'm open to pull requests, of course, but maybe I'll get my hands dirty in code next week or so. :)
I often use
gr
to do a quick search but sometimes it would be useful to know the context of what is found by looking at the surrounding lines. Adding something like grep's-A
,-B
and-C
flags would be useful.