Obsidian Community Plugin  ยท  v0.1.1

YAML Path Sync

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.

Version0.1.1
Obsidianโ‰ฅ 0.15.0
TemplaterNot required
LicenseMIT
PlatformsAll

How it works

Two events, fully automatic โ€” no templates or manual steps needed.

01  CREATE

Note is created

The plugin writes the path: field into the frontmatter immediately. If no frontmatter exists, it creates one.

02  MOVE / RENAME

Note is moved

The path: value is updated to the new vault location. Only that one field is touched.

03  RESULT

Always accurate

Every note always reflects its actual location. Use the field in queries, Dataview, or scripts without stale data.

Before / After

File moved from 04 Projects/Weight loss/Methods.md to A06 Archiv/Weight loss/Methods.md:

Before
---
title: Methods.md
path: 04 Projects/Weight loss/Methods.md
tags: [self-improvement]
---
After โ€” auto-updated
---
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.

Features

โœ๏ธ

Set on create

Writes the path field automatically the moment a new note is created. No template setup needed.

โšก

Sync on move

Listens to Obsidian's rename event and rewrites the field immediately whenever a file is moved.

๐Ÿท๏ธ

Configurable field name

Use path, filepath, vault_path, or any other YAML key.

โœจ

Auto-create if missing

Optionally insert the field (or an entire frontmatter block) into files that don't have it on move.

๐Ÿ›ก๏ธ

Non-destructive

Only the one configured YAML key is touched. All other fields and the note body are unchanged.

๐Ÿ”—

Templater compatible

Works side by side with Templater without conflict. Use one or both โ€” your choice.

Requirements

RequirementDetails
ObsidianVersion 0.15.0 or higher
Operating systemWindows, macOS, Linux, iOS, Android
TemplaterNot required โ€” the plugin handles everything on its own
Node.js / build toolsNot 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.

Installation

Settings

Open Settings โ†’ Community Plugins โ†’ YAML Path Sync โ†’ โš™

SettingDescriptionDefault
Field nameThe YAML key to manage. Must be consistent across your vault.path
Set path field on createWrites 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 notificationsBrief toast message after each action.On