Move note attachments and update links automatically.
Obsidian resolves links with a clever search that only Obsidian has, so a vault can be perfectly navigable inside it and full of dead links the moment you open a note anywhere else — in another editor, published to GitHub, or exported as a folder.
This plugin makes that visible: it audits the whole vault and reports every link whose written path does not itself lead to its target, repairs names and paths that a platform you sync to would reject, and collects scattered attachments into place.
[!IMPORTANT]
Since 4.0.0 this plugin no longer handles renames and deletions. Install Advanced Rename and Delete Handler to keep attachments traveling with their note and links rewritten when you move, rename or delete one — it owns that for the whole vault now, so several plugins can no longer fight over it. This plugin offers to hand your old settings across the first time it sees it, and everything else here keeps working without it.
[!IMPORTANT]
This plugin no longer converts wikilinks to Markdown links. It was built to force a vault's migration to Markdown links; that is no longer its job, so the four
Replace all wiki…commands are gone and the consistency report no longer treats a wikilink as a defect. Better Markdown Links owns the conversion now, over a wider surface — one file, one folder or the whole vault, plus converting as you type.
[!IMPORTANT]
This plugin no longer rewrites a link's path either, so the four
Convert all … paths to relativecommands are gone with it. Rewriting a link into a style is not what this plugin is for — it reports every link whose written path does not lead to its target, and leaves how you write your links to you. Better Markdown Links owns link paths as well as link style. The report is unchanged: a path that does not resolve is still listed, whether or not anything offers to convert it.
[!WARNING]
As the plugin might change your vault layout, it is crucial that you backup your vault before making any massive changes with this plugin!
The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, with example notes to run it against.
Start reading here — it is plain markdown, so it works on GitHub with nothing installed.
A copy of the vault ships with every release. You can access it via any of the following:
consistent-attachments-and-links-demo-vault.zip from the Releases. It unzips into a single consistent-attachments-and-links-demo-vault-<version> folder.demo-vault/ in this repository.Attachment Subfolder setting Moved to 06 Recommended Obsidian settings.
Since v3.0.0 this setting is no longer managed by the plugin; it follows Obsidian's built-in Default location for new attachments. This heading stays so links already pointing at it keep resolving.
The plugin is available in the official Community Plugins repository.
To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:
Add plugin button once and wait a few seconds for the plugin to install.By default, debug messages for this plugin are hidden.
To show them, run the following command:
window.DEBUG.enable('consistent-attachments-and-links');
For more details, refer to the documentation.
All notable changes to this project will be documented in the CHANGELOG.
Contributions are welcome — see CONTRIBUTING to get set up.
See my other Obsidian resources.
© dy-sh
Maintainer: Michael Naumov