sethyuan / logseq-plugin-favorite-tree

A hierarchical favorites in the left sidebar.
MIT License
19 stars 0 forks source link

Removed a tag from a page, but the page stays in the tree #5

Closed hmijail closed 7 months ago

hmijail commented 7 months ago

I added a tag to a page. It appeared in the tree as desired. Later I removed the tag from the page, but the favorites tree still shows the page in the tree.

Is there a way to force the favorites tree to be regenerated? I already tried restarting Logseq, disabling/re-enabling this extension, re-indexing... but nothing changed.

sethyuan commented 7 months ago

Can you post your screenshots here? I suspect you have a misunderstanding of how the hierarchy is formed.

hmijail commented 7 months ago
Screenshot 2024-02-06 at 4 30 39 pm

The "N-version" page had a tag "PhD/meetings/next" but later I removed that tag.

sethyuan commented 7 months ago

I tried the example you gave on my Logseq, and when I removed the tag from "N-version" page the favorite tree did update correctly. Also, the plugin will create the tree from your data every time Logseq starts, so I suspect your page is still having this tag persisted. Can you check the underlying markdown file if the tag is actually removed?

hmijail commented 7 months ago

Just checked, and the tag is not in the raw text. Just in case I tried changing the name of the N-version page, and it updates in the tree too.

sethyuan commented 7 months ago

Can you post a screenshot of the N-version page? Is it under the namespace "PhD/meetings/next"?

hmijail commented 7 months ago

I couldn't just post a screenshot, so I started experimenting to create a similar example... and suddenly it's fixed.

Unfortunately I can't now reproduce the problem; the moment I remove the tag from a page, the tree updates as expected. I'll let you know if it happens again. Until then, I'll close this issue.

Thank you anyway!