toodles icon indicating copy to clipboard operation
toodles copied to clipboard

Show more context, like the -C option to grep

Open JeffreyBenjaminBrown opened this issue 6 years ago • 1 comments

grep todo normally shows you only those lines where it discovered the word "todo", but grep todo -C n will show you the n preceding lines and the n subsequent lines as well. (If you want more granularity you can use -A n_preceding -B n_subsequent.) Controls on the web page to do this would let a user get a better view of an issue they don't remember clearly without having to open any file.

JeffreyBenjaminBrown avatar Nov 13 '18 21:11 JeffreyBenjaminBrown

Neat idea, would certainly be easier than clicking through to the resulting source code page.

I think this change would end up being moderately tricky, from complexity around tracking the surrounding lines as other TODO's get deleted and such, but it's definitely doable!

aviaviavi avatar Nov 13 '18 21:11 aviaviavi