Skip to content

Your first rule

This walkthrough creates a simple folder-to-tag rule: any file under Projects/ gets a corresponding #projects/... tag.

SettingsCommunity plugins → click the gear icon next to Folder Tag Sync.

Click Add new rule. The rule editor modal opens.

Choose Folder → tag. The UI will show only the fields relevant to this direction.

Regex that matches the folder path you want to watch.

^projects/(.*)$

This matches any file directly or recursively under Projects/ (case-insensitive by default — see tag depth nuance for how depth is handled).

The prefix applied to the generated tag:

projects/

Optional pipeline applied to the captured folder segments before tagging. For a clean default:

  • Strip emoji — removes leading emoji from folder names
  • snake_case — converts "My Cool Thing" to "my_cool_thing"
  1. Click Save
  2. Drop a note into Projects/My First Project/
  3. Run command Folder Tag Sync: Sync folder to tags (current file)
  4. Check the frontmatter — you should see tags: [projects/my_first_project]