better-comments icon indicating copy to clipboard operation
better-comments copied to clipboard

Feature Request - Regex Tag Matching

Open joshio58 opened this issue 4 years ago • 2 comments
trafficstars

Love the extension! One thing that would be really useful would be the ability to use regex patterns for tag matching in the settings -> "better-comments.tags" : [{"tag": "MY_REGEX_PATTERN"}]

I would use this constantly for tag matching as it would allow for very dynamic tags to be created.

Thanks and keep up the great work!

joshio58 avatar Jan 13 '21 07:01 joshio58

This is a good idea.

For a heading only highlight the words:

"tag": "\s+\w+\s\w+"

OR do your own comments (js,sh,vimscript,lua). One line comment. Search for a non-word followed by a space and the heading.

 // ===== HIGHLIGHT THIS =====
"tag": "(//|#|\"|--)\W\s\w+\s\w+"

rickswe avatar Mar 31 '21 03:03 rickswe

I agree, this would be pretty awesome!

rbleattler avatar Feb 03 '22 14:02 rbleattler