merijnvervoorn47 downloadsAutomatically adds or updates a tag based on the folder a note is in. Updates both on creation and file move.
Automatically tags notes in Obsidian based on the folder they are stored in. Ideal for users who organize notes by folder but want to leverage tags for easier searching, linking, and graph view.
tags:.Choose how many folder levels to include in tags:
| Option | Example (note path: main-folder/sub-folder/last-folder/note.md) |
|---|---|
| Default (1) | #last-folder |
| Depth 2 (split) | #last-folder + #sub-folder |
| Depth 2 (single) | #sub-folder/last-folder |
| Full path | #main-folder/sub-folder/last-folder |
You can also optionally add a prefix or suffix to all folder tags, e.g., prefix- → #prefix-folder.
When a new note is created, the plugin automatically adds folder tag(s) to the tags: property.
If a note is moved or renamed, the plugin updates its tag(s) to match the new folder path.
Use the settings tab to:
tags: property. Preserving any other frontmatter (including other tags).This plugin is released under the GNU GPL v3.