Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Base Path Updater

EricEric48 downloads

Automatically update paths in Bases when folders are renamed or moved, with reviewable undo history.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Automatically update path references in Obsidian Bases after folders are moved or renamed.

For example, when Work/Research is moved to Archive/Research, a Base that filters by that folder automatically uses the new path instead of requiring manual edits.

English · 简体中文

Features

  • Automatic path updates: Responds to folder renames and moves, including references to their subfolders and files.
  • Multiple view levels: Checks global Base filters, view-specific filters, and formulas.
  • Reviewable undo history: Shows before-and-after paths for each affected Base and can undo one complete folder operation.
  • Lightweight daily use: Does not scan on a timer or react to ordinary note edits; it only checks Bases after folder path changes.

Installation

Requires Obsidian 1.9.0 or later and the built-in Bases plugin. The plugin can currently be installed manually and is not yet listed in the Community Plugins directory.

  1. Copy the dist/base-path-updater folder generated by this project to .obsidian/plugins/ in your vault.
  2. Confirm that the plugin folder contains main.js, manifest.json, and styles.css.
  3. Reload Obsidian and enable Base Path Updater under Settings → Community plugins.

If you downloaded the source code, follow the development notes to generate the installation files first.

Usage and undo

Once enabled, move or rename a folder in Obsidian. The plugin updates matching Base paths and shows a notice when updates or errors occur.

You can open the history in three ways:

  • Click the folder-sync ribbon icon and select View update history / undo.
  • Search for Base Path Updater in the command palette.
  • Open the plugin settings and select View history / undo.

Expand an entry to see how each Base path changed, then select Undo Base changes to restore it. History persists across restarts and keeps up to 30 operations, with a snapshot budget of approximately 5 MiB. When the budget is reached, the oldest entries are removed first. If one operation is too large, files that would exceed the budget are skipped and reported.

Undo restores Base content only; it does not move folders back. To keep a filter valid, move the folder back to its original location. When undoing multiple operations, start with the newest entry. If a file was manually edited, changed by a later operation, or deleted, the plugin skips it instead of overwriting newer content; other files from the same operation can still be undone.

Supported path forms

Form Example
Folder filter file.inFolder("Work/Research")
Full file path filter file.path == "Work/Research/Notes.md"
Path prefix filter file.path.startsWith("Work/Research/")

Single and double quotes are supported, as is placing the path on the left side of an equality comparison. Matching is case-sensitive. Only the original folder and paths below it are updated: moving Work/Research does not modify Work/Researcher.

When using startsWith for a folder, keep the trailing / as shown in the example to avoid matching similarly named folders.

Scope and limitations

  • Only standalone .base files are processed. Base code blocks embedded in Markdown are not processed.
  • Only folder moves and renames trigger path updates. Renaming an individual note does not trigger a scan.
  • The plugin supports explicit fixed paths. Concatenated paths, variables, regular expressions, and other unsupported forms are not rewritten. YAML anchors, aliases, and custom tags are not expanded or modified.
  • View names, property display names, and ordinary text are not modified. Matching filters or formulas may be rewritten using YAML double-quoted strings while preserving their meaning.
  • Folder moves made while the plugin is disabled are not backfilled. Moves made in an external file manager also depend on whether Obsidian reports them as folder rename events.
  • History is stored only in the plugin data directory for the current vault. The plugin makes no network requests, and history is not a complete vault backup.

See the implementation notes for design decisions, references, and acceptance checks. 中文说明请见 README.zh-CN.md。

HealthExcellent
ReviewPassed
About
Update Base filters automatically when folders are moved or renamed, fixing references to subfolders, files, global and view filters, and formulas. Provide a persistent before-and-after history to review changes and undo entire folder operations; run only after path changes to avoid background scans.
BasesFoldersFiles
Details
Current version
0.2.1
Last updated
Last week
Created
2 weeks ago
Updates
3 releases
Downloads
48
Compatible with
Obsidian 1.9.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
EricEricxeric7
GitHubxeric7
  1. Community
  2. Plugins
  3. Bases
  4. Base Path Updater

Related plugins

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.

GridExplorer

Browse and organize note files visually in a flexible grid layout.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.

Advanced Note Mover

Quickly and easily move notes to a predefined folder. Perfect for organizing your notes.

Create Note in Folder

Add commands to create a note in a specific folder.

File Cleaner Redux

Help you to clean empty files and unused attachments in the vault.