vscode-todo-list icon indicating copy to clipboard operation
vscode-todo-list copied to clipboard

Filter in Action Comment

Open beautifullife opened this issue 5 years ago • 7 comments

Hello! This tool is useful for me. Thanks for your works. I have a question that how can I filter to show some tags (ex: TODO, UNDONE) in Action Comments? And how can I collapse all tags in Action Comment? Thanks.

beautifullife avatar Nov 14 '19 17:11 beautifullife

Hi @beautifullife, thanks for your feedback.

These features are currently not supported (but will be in the future, hopefully soon)

As a workaround, you can change the expression used to capture comments in order to capture only what you need at the moment: (?:\/\/|\/\*|\<\!--)[ ]?(TODO|UNDONE)(?: |\:|\(([A-Za-z\/\d ]+)\)\:)[ ]?(.*?)[ ]?(?:--\>|\*\/|$) (not tested)

tzachov avatar Nov 14 '19 17:11 tzachov

Hi, @tzachov Thanks for your recommendation config code. I will try it!

Sent with GitHawk

beautifullife avatar Nov 14 '19 19:11 beautifullife

This code is not working, but I can go to action comments and just type a tag that I want to focus on, and visual code shows me the right tag. Thanks anyway!

Sent with GitHawk

beautifullife avatar Nov 14 '19 20:11 beautifullife

image Really will be greate if we can define which kind of TAG we can display (like BUG, TODO, FIXME...)

mcunha98 avatar Nov 09 '20 15:11 mcunha98

@mcunha98 you can modify the regex to match only the tags you need

tzachov avatar Nov 11 '20 09:11 tzachov

@tzachov and how we did it ? I did searchs on google but not that I found is very specific to show where do it (change the regex)

mcunha98 avatar Nov 11 '20 12:11 mcunha98

@tzachov great extension, thanks

I have this regex working: (?:\/\/|\/\*|\<\!--)[ ]?(TODO|UNDONE|BUG|FIXME|HACK)(?: |\:|\(([A-Za-z\/\d ]+)\)\:)[ ]?(.*?)[ ]?(?:--\>|\*\/|$)

@mcunha98 Its found in settings -> TODO List image

mrevjd avatar Mar 10 '21 05:03 mrevjd