Exclude a specific tag from the graph view

I’d love this feature too.

@ShaneNZ Your solution does not seem to work. For me all notes (inclusing subtags) disappear from graph view.

That’s really odd, it certainly works for me?!! Have recorded a video here for you to see what I’m doing and what happens for me.

Even just having -(# present in the filter, you can see it removes all the tag nodes but not the files (easiest to see at the top of the graph, theres a group of tagged kindle highlight notes). When I put-(#garden) in, you can also see it removes just the #garden tag node, leaves the files and the other tag nodes.

Honestly I have no explanation for you as to why it would work for me and not you?

Been doing some further testing, and have found out what I think is going on. This should give me all notes with the #flag tag, but no tag node:

And this should be all the notes with the #flag tag (and the tag node):

These two should of course have exactly the same notes present. It’s slightly hard to see with the additional green tag nodes present as well, but there are a few notes present in the second screenshot that should be present in the first, but aren’t.

The notes that are being removed all have that tag present in the body of the note, rather than in the tags property in the frontmatter. In short, if you’re tagging notes solely in the front matter (which I do 99% of the time), then the filter works to remove the node but not the note. If your tag is in the body of the note, then the filter will remove the tag node AND also remove the note as well.

EDIT: Confirmed that the above is correct - the brackets in -(#flag) are not actually required, the search is simply removing any note with the literal text #flag in the body. Putting the tag in the frontmatter removes it from the scope of the text search, hence removing the node but not the note from the graph.

Yep wow.

So what should someone like me do then – somebody with tens of thousands of notes, who has been tagging things in the body of my notes. How do I exclude particular tags from showing up as a node in graph view while maintaining the notes that contain this tag?

Anybody have suggestions or ideas?