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

add `%` to the regex for latex

Open HernandoR opened this issue 1 year ago • 2 comments

add % to regex for tex files, untested

HernandoR avatar Jan 21 '24 15:01 HernandoR

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.

HernandoR avatar Jan 22 '24 01:01 HernandoR

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

GitMensch avatar May 06 '24 06:05 GitMensch