Automatically sets a path: field when you create a note and keeps it up to date whenever you move or rename a file. No Templater required.
Two events, fully automatic โ no templates or manual steps needed.
The plugin writes the path: field into the frontmatter immediately. If no frontmatter exists, it creates one.
The path: value is updated to the new vault location. Only that one field is touched.
Every note always reflects its actual location. Use the field in queries, Dataview, or scripts without stale data.
File moved from 04 Projects/Weight loss/Methods.md to A06 Archiv/Weight loss/Methods.md:
---
title: Methods.md
path: 04 Projects/Weight loss/Methods.md
tags: [self-improvement]
---
---
title: Methods.md
path: 06 Archiv/Weight loss/Methods.md
tags: [self-improvement]
---
All other fields are completely untouched. A brief notification confirms the update.
Writes the path field automatically the moment a new note is created. No template setup needed.
Listens to Obsidian's rename event and rewrites the field immediately whenever a file is moved.
Use path, filepath, vault_path, or any other YAML key.
Optionally insert the field (or an entire frontmatter block) into files that don't have it on move.
Only the one configured YAML key is touched. All other fields and the note body are unchanged.
Works side by side with Templater without conflict. Use one or both โ your choice.
| Requirement | Details |
|---|---|
| Obsidian | Version 0.15.0 or higher |
| Operating system | Windows, macOS, Linux, iOS, Android |
| Templater | Not required โ the plugin handles everything on its own |
| Node.js / build tools | Not required for installation โ ships as a pre-built main.js |
Zero config. Enable the plugin and it works immediately. No templates, no field setup, no Templater.
Inside your vault, navigate to .obsidian/plugins/ and create a folder named yaml-path-sync.
Download the latest release and copy main.js and manifest.json into the folder.
Settings โ Community Plugins โ disable Restricted Mode if needed โ toggle YAML Path Sync on.
Create a new note and the path: field appears automatically. Move a note and it updates immediately.
Open Settings โ Community Plugins โ YAML Path Sync โ โ
| Setting | Description | Default |
|---|---|---|
| Field name | The YAML key to manage. Must be consistent across your vault. | path |
| Set path field on create | Writes the path field automatically when a new note is created. | On |
| Auto-create field if missing (on move) | If the field is absent when a file is moved, it is inserted. Creates frontmatter if none exists. | Off |
| Show notifications | Brief toast message after each action. | On |