toodles
toodles copied to clipboard
Show more context, like the -C option to grep
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.
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!