The Hierarchy Plugin for Obsidian enhances your note-taking experience by visualizing the folder hierarchy of your markdown files directly within the editor. This plugin allows users to see subdirectory structures and modify how file titles are displayed in tabs and backlinks based on their file paths.
Once installed, the Hierarchy Plugin will:
To configure the plugin:
If you prefer using paths over tags (like I do), I recommend using Obsidian Linter.
When you use Obsidian's autocomplete feature to insert paths, it often automatically adds aliases to the links. You can prevent this by using the following regular expressions:
\[\[([^\|\[\n]+)\|([^\|\[\n]+)\]\]gm[[$1]]Additionally, I store all my pages under the pages/ directory, but I don’t want to start every link with pages/. To avoid this, I use the following setting:
\[\[pages/([^\|\[\n]+)\]\]gm[[$1]]This setup will clean up both aliases and the pages/ prefix, leaving a simple and clean path for your links.
ref. https://platers.github.io/obsidian-linter/settings/custom-rules/#custom-regex-replacements
To bump the version, run npm version patch or npm version minor or npm version major. This will bump the version in package.json, create a new git tag, and push the changes to the repository.
Contributions are welcome! If you have ideas, feature requests, or bug reports, feel free to open an issue or submit a pull request.
Some code around the backlinks are inspired by the Owner avatar better-search-views .
This plugin is open-source and available under the MIT License.