Page 1 of 1

show 'n' lines either side of found term

Posted: Fri Oct 31, 2008 3:50 pm
by robcarter
Hello

Would it possible to have a facility in find in files to show a number of lines either side of the found text or string, for example if the found text is on line 56, then show lines 55-57 in the results.
This shouldn't be too hard to implement, grep does it with the -B, -A switches, personally I would find this very useful.
thanks for a great product!
regards
rob carter

I'll second that request

Posted: Fri Oct 31, 2008 8:20 pm
by sskaggs
That would be a great enhancement. I don't know how many times I have clicked on the text found only to see that it is in a commented section of code. If you could see 3 or 4 lines before and after, that would greatly reduce that problem.