aviaviavi / toodles

Project management directly from the TODOs in your codebase
MIT License
970 stars 35 forks source link

Show more context, like the -C option to grep #51

Open JeffreyBenjaminBrown opened 6 years ago

JeffreyBenjaminBrown commented 6 years ago

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.

aviaviavi commented 6 years ago

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!