Make the todo side panel only show TODOs/FIXMEs for lines that differ from the parent branch
While it's nice to see all the TODOs in a project, the list can be big for projects that existed for a bit. I don't think it's useful to see all TODOs in a project, unless you're really chasing all of them to fix them. It's more useful to see the list of FIXME/TODO that I added while writing code, as reminders for things that need to be addressed before submitting/merging the corresponding MR.
As such, I wonder if it would be possible to have a (enabled by default) checkbox that determines whether TODOs should only be searched within lines which were changed with regard to the parent branch (or just the lines that changed with regard to the last commit). It seems like
git grep doesn't provide this feature by default, and although there's
git diff -G <regex> -U0 that shows the chunks that have a line matching the regex, the line number and filename aren't prefixed to the lines like it is for
git grep (it's only with the
--- a/data/org.gnome.epiphany.gschema.xml +++ b/data/org.gnome.epiphany.gschema.xml @@ -23,15 +23,30 @@
notation), and the whole chunk is included in the output, not just the matching line. So it would require on the Builder code's side than with a plain
git grep, but I think it's worth is as currently the TODO panel is useless to me because it shows all TODOs, not just the ones I added.