blakedietz / vscode-nested-tags

Stop using your file tree to organize your notes. Transform VSCode into a note-taking app by adding tag support.
MIT License
74 stars 17 forks source link

Duplicate Tags in Tag Tree #59

Closed twstewart42 closed 4 years ago

twstewart42 commented 4 years ago

For some files with tags they are producing duplicate categories in the Tag Tree, such that 1 or 2 files is separate from the other tag.

image

for example I have 2 files with the terraform tag each with the same exact line <!--@nested-tags:terraform--> but as you can see this is producing duplicate tags in the tag tree.

I tried copy/pasting the same line from one file to another and it made no difference. For other instances, it appears to be order based like <!--@nested-tags:writing,fiction,books,specific-name--> and <!--@nested-tags:writing,fiction,specific-name,books--> I had to re-arrange tags so that tags were in the same order on all files.

Running VScode 1.46.1, OS Win 10, Nested Tags v1.7.0

twstewart42 commented 4 years ago

Doing more experiments and this might be a conflict between another extension, both fighting over the last line

twstewart42 commented 4 years ago

Moving the <!--@nested-tags:terraform--> (and all other nested-tag lines) to the very first line fixed my problem.

aisbergde commented 1 year ago

it is not fixed: image

The difference is: in test.vcode-nested-tags.2.md it is not the last line of the document. <!--@nested-tags:topic,here/is/a/nested/example-->

image

but in test08.md it is the last line image

and here YAML syntax is used: image