vscode-comment-anchors icon indicating copy to clipboard operation
vscode-comment-anchors copied to clipboard

Cannot match lowercase tags

Open lethefrost opened this issue 4 years ago • 4 comments

https://github.com/ExodiusStudios/vscode-comment-anchors/issues/9#issue-363635240 I have seen this issue two years ago and it looks like you have added this feature? But it turns not to work for me... Even I manually added lowercase tags, the extension cannot parse and catch them. Thank you for any help, and this extension is really useful.

lethefrost avatar Aug 13 '20 03:08 lethefrost

@lethefrost hi according here it is seem to be intended

Maybe we can create a new parameter for this feature

eggachecat avatar Aug 17 '20 02:08 eggachecat

@lethefrost hi according here it is seem to be intended

Maybe we can create a new parameter for this feature

Oh! I think you are right. There are a lot of tag.toUpperCase(). And I would really appreciate it if you add this feature!

lethefrost avatar Aug 17 '20 08:08 lethefrost

@lethefrost Hi, my bad.

Is setting Match case to false can do the trick for you ?

image

eggachecat avatar Aug 17 '20 10:08 eggachecat

@lethefrost Hi, my bad.

Is setting Match case to false can do the trick for you ?

image

Thank you! It works, now that the editor can catch the anchors regardless of cases. However what I want is a little bit more complicated, I hope it to match the case that exactly as I set in the settings.json, for example, if I have todo, REVIEW, TODO in the setting, then it will match todo, TODO, REVIEW but won't match review or Review. If I just simply set the commentAnchors.tags.matchCase to false, it will also get "review" as anchor which is undesirable because review is a real word and can occur in some nature language description, which is not intended to be an anchor.

lethefrost avatar Aug 19 '20 20:08 lethefrost