Open Nezteb opened 7 months ago
I'd also use this if it existed; use case details:
I frequently work on code with lots of old TODOs, but I have a personal rule about never committing a new one because I use them to track progress in my current projects. Currently my workflow to check pending tasks is to run git diff
and git diff --staged
and search for "TODO", and it would be amazing if I could configure old and new TODOs (distinguished by whether they're committed to HEAD
) to be in separate buckets, a la:
"todo-tree.general.tagGroups": {
"PENDING": ["new:TODO", "new:[ ]", "new:XXX", "new:HACK", "new:FIXME"],
"XXX": ["XXX", "HACK", "FIXME"],
"TODO": ["TODO", "[ ]"]
},
That way I could simply check the PENDING
list for tasks remaining in the current project, without losing the ability to review old ones if desired.
I found a thing today that reminded me of this issue that could be helpful: https://github.com/CompSciLauren/awesome-git-hooks/blob/master/pre-commit-hooks/search-term.hook
Looks like something related was scoped a bit here, could be a big change: https://github.com/Gruntfuggly/todo-tree/issues/219
As an example, there's an Elixir static analysis tool called
credo
that supports flags related to git diffs like:--from-dir
--from-git-ref
--from-git-merge-base
--since
It'd be cool of Todo Tree supported this. Sometimes I'm in a large project with many existing todos and I want to double check if I've added or modified any of them.