show 'n' lines either side of found term

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
robcarter
Posts: 2
Joined: Fri Oct 31, 2008 3:46 pm

show 'n' lines either side of found term

Post 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
sskaggs
Posts: 24
Joined: Mon Oct 22, 2007 8:50 pm
Location: Evansville, IN
Contact:

I'll second that request

Post 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.
Steve Skaggs
Post Reply