vscode-todo-highlight
vscode-todo-highlight copied to clipboard
Feature request: allow regex rules in the same way as existing text matches
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.
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.
Thanks! Will have a look
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
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.
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.