Open JeffreyBenjaminBrown opened 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!
grep todo
normally shows you only those lines where it discovered the word "todo", butgrep todo -C n
will show you then
preceding lines and then
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.