Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Folder Tags

imbaletimbalet58 downloads

Automatically apply tags to notes based on their paths.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Folder Tags automatically adds YAML frontmatter tags to Markdown notes based on their vault-relative paths. It can run when a new note is created or be invoked manually for an existing note, folder, or the entire vault.

Settings and rules

The plugin has two global settings:

  • Enable plugin turns all automatic and manual processing on or off;
  • Apply automatically applies matching rules when a Markdown file is created.

Each rule contains a name, an enabled switch, a pattern, a matching mode, and one or more comma-separated tags. Every enabled rule that matches the full file path is applied, so one note can receive tags from several rules.

Regex

Regex patterns use JavaScript regular expression syntax. Named and positional capture groups can be used in tag values:

Pattern: ^courses/(?<course>[^/]+)/(?<topic>[^/]+)/notes/
Mode: Regex
Tags: course-{course}, topic-{topic}, note-{1}

For courses/linux/networking/notes/firewall.md, this produces:

course-linux, topic-networking, note-linux

{0} is the full match. {1}, {2}, and so on refer to positional capture groups. {course} and {topic} refer to named groups.

Glob

Glob patterns support:

  • * — any characters except /;
  • ** — any characters, including /;
  • ? — exactly one character except /.

Examples:

Pattern: projects/*/notes/*.md
Mode: Glob
Tags: project-note

This matches a note directly inside projects/<project>/notes/. A pattern such as projects/**/README.md also matches through nested folders.

Frontmatter behavior

Tags are merged into the existing YAML frontmatter without replacing manual tags or creating duplicates. Values are trimmed, empty values are ignored, and leading # is removed.

The resulting field is written as a YAML list:

---
tags:
  - personal
  - course-linux
---

Running the same rule again is safe and does not add another copy of a tag.

Commands and preview

The command palette provides commands to apply tags to the current file, current folder, or entire vault. Matching can also be previewed for each of these scopes without changing files.

Preview shows matching rules, existing tags, tags that would be added, and the final deduplicated tag set. The Test button on a rule accepts a vault-relative path and shows whether it matches, its captures, and resolved tag values without modifying a note.

HealthExcellent
ReviewSatisfactory
About
Add YAML frontmatter tags to notes based on their vault-relative paths using glob or JavaScript regex patterns, including named and positional capture-group values. Merge tags into existing frontmatter without duplicates and apply rules automatically for new notes or manually to a file, folder, or entire vault with match previews.
TagsFoldersAutomation
Details
Current version
0.1.2
Last updated
Last week
Created
2 weeks ago
Updates
3 releases
Downloads
58
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
imbaletimbalet
GitHubimbalet
  1. Community
  2. Plugins
  3. Tags
  4. Folder Tags

Related plugins

Waypoint

Easily generate dynamic MOCs in your folder notes using waypoints. Enables folders to show up in the graph view and removes the need for messy tags!

Advanced Note Mover

Quickly and easily move notes to a predefined folder. Perfect for organizing your notes.

Homepage

Open a note, base, or workspace on startup, or set it for quick access later.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

BRAT

Easily install a beta version of a plugin for testing.

Advanced URI

Control everything with URI.

Tag Wrangler

Rename, merge, toggle, and search tags from the tag pane.

QuickAdd

Quickly add new notes or content to your vault.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Lazy Loader

Load plugins with a delay on startup, so that you can get your app startup down into the sub-second loading time.