wayou / vscode-todo-highlight

a vscode extension to highlighting todos, fixmes, and any annotations...
https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight
MIT License
509 stars 98 forks source link

Feature request: allow regex rules in the same way as existing text matches #181

Open finnmerlett opened 4 years ago

finnmerlett commented 4 years ago

I like this extension, but I would love to be able to specify regex patterns as highlight criteria, rather than the current text-only. I know you can specify the regex highlight pattern, but you can only do one pattern for one set of formatting, and it replaces all your other keyword rules.

It would make more sense to adapt the todohighlight.keywords setting to take rules where there is a "regex" key allowed instead of the "text" key, if you wanted to select by regex for that rule.

My use case is that I want to use TODOhighlight for multiple other separate formatting changes that require individual regexes.

jgclark commented 4 years ago

You're in luck, @finnmerlett, despite the author sadly seeming to have abandoned this. A year ago @vonEdfa included this in a PR over in issue #152, and I'm hoping to learn how to get that released as a full new extension. In the meantime if you follow the instructions in #152 you can apply the changes for yourself, and then use a new "regex" setting.

finnmerlett commented 4 years ago

Thanks! Will have a look

aarowman commented 3 years ago

I was looking for exactly this issue. Since the author stopped updating it, how can we get this extension supported again? There are a lot of open PRs that are just sitting there

jgclark commented 3 years ago

A long time back I figured out how to fork and publish an extension, so I have done that. Look for TODO Highlight V2, and you'll find what you want.

aarowman commented 3 years ago

Nice, I found it and switched over to use that instead. Thanks!

On Sat, Aug 28, 2021, 3:15 AM Jonathan Clark @.***> wrote:

A long time back I figured out how to fork and publish an extension, so I have done that. Look for TODO Highlight V2, and you'll find what you want.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wayou/vscode-todo-highlight/issues/181#issuecomment-907592248, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANF5BIN534YMHUPWRSE5R73T7CLLZANCNFSM4OF32TQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Stanzilla commented 4 months ago

Just came across this and wanted to request that as well, nice to see that there is a fork but would love to see this integrated here as well :)

jgclark commented 4 months ago

Indeed. But the reason I forked it was that the extension appeared to be abandoned.

Message ID: @.***>