Gruntfuggly / todo-tree

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

Cover python language #657

Closed HenriqueAJNB closed 1 year ago

HenriqueAJNB commented 2 years ago

I haven't seen any coverage for Python language and this would be a great feature

rbmarliere commented 2 years ago

Try installing ripgrep

e.g.

apt install ripgrep

xelcho commented 1 year ago

@rbmarliere I am not understanding your comment... like @HenriqueAJNB I see this page w/ all this lang specific regex... https://github.com/Gruntfuggly/todo-tree/wiki/Configuration-Examples

I would love to see one for python.

Please share how to implement your "workaround"! thanks!

Gruntfuggly commented 1 year ago

It should work out of the box with python # type comments, e.g.

print( 'hello') # TODO change this

For multi line comments using """ you'll need to tweak the regex.

If somebody can come up with one, I'll happily add it to the wiki.