Gruntfuggly / todo-tree

Use ripgrep to find TODO tags and display the results in a tree view
Other
1.4k stars 134 forks source link

add `%` to the regex for latex #815

Open HernandoR opened 5 months ago

HernandoR commented 5 months ago

add % to regex for tex files, untested

HernandoR commented 5 months ago

Noticed that this week will also include % in the equation input part i.e. $ \% todo$ will be matched.

and if merged, a=b%todo in auto languages will be matched. Even though % is not a comment symbol in python. This behavior aligned with other languages: # todo in markdown will also be matched. Even though # is not a comment symbol in markdown.

GitMensch commented 1 month ago

Should be closed as duplicate of #568 which notes:

Hi, sorry to disappoint you, but this won't get merged. I no longer update the default regex as it causes too many issues for people who use the original default. Every time I've done it (after convincing myself it wouldn't have any effect) I've had to back it out again.

The default is really only intended to be a starting point - it would be impossible for the default to work for everybody.

The wiki contains some example configurations for LaTeX: https://github.com/Gruntfuggly/todo-tree/wiki/Configuration-Examples#latex