FAQ
Why does it only act in shortest link mode by default?
Section titled âWhy does it only act in shortest link mode by default?âBecause that is the only mode where the problem exists. In Shortest path when possible mode, Obsidian rewrites your existing links the moment a duplicate name appears. In relative and absolute modes, links already carry a path and adding another same-named note does not change how they resolve, so there is nothing to protect against.
Does NameGuard change or delete my existing duplicates?
Section titled âDoes NameGuard change or delete my existing duplicates?âNo. NameGuard never modifies files and never inspects duplicates that already exist. It only evaluates the new name introduced by the operation you are performing right now. Notes that were already named the same keep working exactly as before.
It blocked my new âUntitledâ note. Why?
Section titled âIt blocked my new âUntitledâ note. Why?âIf a note named Untitled already exists in another folder, creating a second Untitled is a
duplicate name, so it is blocked. This is the strict behavior working as intended. Options:
- Give the new note a unique name.
- Keep notes that share a working name (like
Untitled) in the same folder, where Obsidianâs own auto-numbering producesUntitled 1,Untitled 2, and so on. - Temporarily disable NameGuard under Settings â Community plugins.
What about files created by Sync, an external editor, or the file system?
Section titled âWhat about files created by Sync, an external editor, or the file system?âNameGuard can only guard operations that go through Obsidianâs vault API (create, createBinary,
and rename). Files that arrive from a sync client, an external editor, or directly on disk are
picked up by Obsidianâs file watcher instead, so NameGuard does not intercept them.
Does it guard attachments and other non-markdown files?
Section titled âDoes it guard attachments and other non-markdown files?âNot by default. NameGuard guards .md notes only, because shortest-format links are about notes. Turn
off Markdown notes only to enforce unique names across every file type.
What happens when an operation is blocked?
Section titled âWhat happens when an operation is blocked?âThe create or rename is aborted (it returns a rejected promise), and a short notification names the existing note that caused the conflict. Nothing is written to disk and no links are rewritten.
Is there any performance cost?
Section titled âIs there any performance cost?âNegligible. The check runs only when you create, move, or rename a file, and it reuses Obsidianâs own link resolver for the markdown fast path. There is no background scanning and no work during normal editing.
Does NameGuard make any network requests or collect data?
Section titled âDoes NameGuard make any network requests or collect data?âNo. It runs entirely locally, makes no network requests, and collects no telemetry.
How do I turn it off temporarily?
Section titled âHow do I turn it off temporarily?âDisable NameGuard under Settings â Community plugins. Enable it again from the same screen.