nova-todo icon indicating copy to clipboard operation
nova-todo copied to clipboard

Topic tag support

Open danpalmer opened this issue 4 years ago • 3 comments

A pattern that we use in code on my team, and that I find very useful, is to "tag" TODOs/FIXMEs/etc with a topic. In particular this can be useful during development of a feature on a large codebase where there may be many TODOs, but you want to be able to add some and then find them again more easily as you finish up the feature. They can also be used to tag those responsible for fixing them.

These TODOs look like this:

# TODO(my-feature): Remember to change this bit

...

# TODO(danpalmer): Remove this code supporting an A/B test

It would be great if nova-todo supported this!

Currently these do not match in nova-todo at all, so they are not visible in the TODO list. I suspect a quick change could solve this issue. For further support, formatting the topic/name, or even allowing grouping/filtering by them could be helpful.

danpalmer avatar Feb 28 '21 14:02 danpalmer

Thanks for explaining Dan. I can see how this would be useful. I will try to get this functionality into an update in the near future.

jasonplatts avatar Mar 01 '21 15:03 jasonplatts

@danpalmer , @jasonplatts ,

Jus wondering...

Wouldn't this more like being able to change the settings of the extension? That way you can add any "keywords" to be taken as TODOs?

SuEric avatar Mar 17 '21 16:03 SuEric

That could certainly be one approach @SuEric.

If I understand correctly, another possibility would be to separate these into two distinct features.

  1. The ability to add additional custom keywords in the extension settings.
  2. Dynamically detect features or names that are added between parenthesis after a keyword and add/remove these from filter options. For convenience, it would also likely be possible to provide autocompletion for these in the editor itself after typing a keyword.

jasonplatts avatar Mar 17 '21 17:03 jasonplatts