Consistent Attachments and Links

approved

by dy-sh

Move note attachments and update links automatically.

★ 395 stars↓ 164,007 downloadsUpdated 10d agoMIT

Consistent Attachments and Links

Buy Me a Coffee GitHub release Obsidian downloads Minimum Obsidian version Coverage: 100%

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 reports every link whose written path does not lead to its target, repairs a broken link's path when you pick the file it meant, and repairs names a platform you sync to would reject. It never rewrites a link into a style, moves an attachment or cleans up folders: where those matter, it reports and leaves the change to you.

[!IMPORTANT]

This plugin requires Advanced Rename and Delete Handler, which handles renames and deletions for the whole vault since 4.0.0. This plugin installs it in one click, which changes nothing on its own, and offers to hand your old settings across.

[!WARNING]

Fix incompatible paths renames files and folders across the whole vault, so it is crucial that you back up your vault before running it!

A name your other devices reject

More screenshots
Repaired, with the original name kept What is broken or misplaced, changing nothing A name your other devices reject Repaired, with the original name kept What is broken or misplaced, changing nothing

Demo vault

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:

  1. Running the Consistent Attachments and Links: Open demo vault command.
  2. Downloading consistent-attachments-and-links-demo-vault.zip from the Releases. It unzips into a single consistent-attachments-and-links-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • Check vault consistency reports, changing nothing, bad links, embeds and frontmatter links, HTML tags Obsidian does not know or sanitizes away (with Advanced Metadata Cache's HTML module on), attachments outside their note's attachment folder, and names a platform you sync to would reject. Each section lists its first 1,000 entries and counts the rest, so the report stays small enough to open. 03 Check vault consistency
  • Fix broken links offers, with its evidence, the file each broken link most likely meant, and repairs the link's path on your click. 09 Fix broken links
  • Fix incompatible paths repairs the names and paths that Windows, Android, Linux, macOS or iOS would reject, keeping the original name and every link. 08 Keep paths valid on every platform
  • Undo a bulk operation reverts one run of either fix command, when the vault is in a git repository and Commit bulk operations to git is on: each run is committed on its own as OP<n>, so one git revert undoes it. 05 Settings
  • Every command, and where the ones that left went. 07 Commands
  • Settings, including which platforms the path repair enforces. 05 Settings
  • Obsidian's own settings matter too — link format, attachment location — and the vault explains which ones to change and why. 06 Recommended Obsidian settings

Want the problems live instead of in a report? Vault Problems checks every category of the consistency report as you edit, through the same shared code, and lists the problems in one view with quick fixes. With it enabled, Check vault consistency still writes the report, opens it with a pointer to that view, and shows a notice whose Open Problems button opens it. Only the check for names stored in decomposed Unicode (NFD) stays here alone.

Where the old features went

Link conversion, link-path rewriting, attachment collecting, rename and delete handling, Delete empty folders, Reorganize vault and the Attachment Subfolder setting moved to other plugins or were retired: Where the old features went maps each one to the plugin that owns it now.

See also

My other Obsidian resources

PluginFeaturesHow Consistent Attachments and Links differs
Attachment AuditUnused, duplicate, oversized, misnamed and misplaced attachment cleanupNarrower attachment audit: reports placement against configured folders; also link/name checks
Broken LinksBroken target, heading and block browser; folder/file/link viewsBroader checks: file names and path validity; link repair
File name length limitLive naming warnings; report includes case collisions; no renamingBroader audit and repair: renames invalid files; checks links
Find orphaned files and broken linksReports orphaned/empty files, folders and uncreated notes; delete/archiveComplementary audit: validates written paths against their targets
Link DoctorBroken-link dashboard; Obsidian name matching; empty notes; no editsBroader path checks: reports non-resolving written paths; repairs links
Safe Filename LinterInvalid/troublesome filename character lintBroader checks: per-platform name/path lengths and links
Sync-safe file namesAutomatic cross-device character replacement on create/renameBroader repair: on command; lengths, reserved names, Unicode form; original names retained
Vault Link CheckTypo/alias suggestions; separates planned notes from broken linksAlternative repair evidence: git history, renamed folders and aliases; click to apply

Last searched for similar plugins on 2026-10-26.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

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:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin (id: consistent-attachments-and-links) are hidden.

If you need to enable them refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Buy Me A Coffee

Filing an issue (for AI agents and humans)

Open issues through the issue forms, not as blank issues.

To report a bug from inside Obsidian, run the Consistent Attachments and Links: Report a bug command. It opens the bug form with the plugin version, the Obsidian version and your operating system already filled in.

Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form's order, and fill in each one. Always state the plugin version, the Obsidian version and your operating system.

License

© dy-sh

Maintainer: Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.