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 Templates

imbaletimbalet73 downloads

Automatically apply templates to notes based on their paths.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Folder Templates automatically inserts template content into 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 these global settings:

  • Enable plugin turns all automatic and manual processing on or off;
  • Apply automatically applies a matching template when a Markdown file is created;
  • Apply mode selects the first matching rule or all matching rules;
  • Skip non-empty files prevents changes to notes that already contain content;
  • date and time formats configure {{date}} and {{time}} variables.

Each rule contains a name, an enabled switch, a pattern, a matching mode, and a vault-relative template path. Rules are checked from top to bottom. When Apply mode is All matching rules, matching templates are inserted in rule order.

Regex

Regex patterns use JavaScript regular expression syntax. Named and positional capture groups can be used in the template path:

Pattern: ^courses/(?<course>[^/]+)/(?<topic>[^/]+)/notes/
Mode: Regex
Template: templates/{course}/{topic}.md

For courses/linux/networking/notes/firewall.md, the resolved template path is:

templates/linux/networking.md

{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
Template: templates/project-note.md

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

Template content

Template files support these variables:

  • {{title}} — the target note's basename;
  • {{date}} — the current date;
  • {{time}} — the current time;
  • {{date:DD.MM.YYYY}} and {{time:HH:mm:ss}} — explicit formats.

For example:

---
created: { { date } }
course: { { title } }
---

# {{title}}

Non-empty files are skipped by default. If that option is disabled, rendered template content is prepended to the existing note content.

Commands and preview

The command palette provides commands to apply templates 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, resolved template paths, and the action that would be taken. The Test button on a rule accepts a vault-relative path and shows whether it matches, its captures, and the resolved template path without changing a note.

HealthExcellent
ReviewSatisfactory
About
Insert template content into notes based on vault-relative paths using ordered matching rules. Apply templates automatically on creation or run manually for a note, folder, or entire vault with glob or regex patterns (including capture groups) and template variables like {{title}} and {{date}}.
TemplatingFoldersAutomation
Details
Current version
0.1.2
Last updated
Last week
Created
2 weeks ago
Updates
3 releases
Downloads
73
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
imbaletimbalet
GitHubimbalet
  1. Community
  2. Plugins
  3. Templating
  4. Folder Templates

Related plugins

QuickAdd

Quickly add new notes or content to your vault.

Templater

Create and use dynamic templates.

Folder notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.

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!

Smart Templates

AI powered templates for generating structured content. Works with Local Models, Anthropic Claude, Gemini, OpenAI & more.

Advanced Note Mover

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

Create Note in Folder

Add commands to create a note in a specific folder.

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.