How to exclude path(s) from graph in Obsidian
One of the coolest features in Obsidian is its built-in graph view, which uses some sort of D3 force-directed graph to display the notes and tags' relations. It is fascinating to view dots representing our notes branching out to each other and growing as we add more notes.
We may want to exclude specific folders from the graph, eg. because they cause clutter or are simply irrelevant.
To exlclude folders/directories:
- Click the settings icon on the top left
- Open "Filters" and input
-path:ExcludedFolderName
(replaceExcludedFolderName
with your folder name) - For multiple folders:
-path:FolderOne -path:FolderTwo -path:FolderThree
In: Obsidian MOC