Bases Rename Guard · Obsidian plugin documentation

Bases Rename Guard documentation

Bases Rename Guard Obsidian plugin preview

Bases Rename Guard scans .base files across your vault for stale folder, file, and tag filter references, and opens an interactive Broken Base Filters audit report. In the free tier, you can audit file.inFolder, file.path, file.folder, and file.hasTag filters across top-level and per-view blocks, open affected Bases, or edit raw .base YAML at the broken line. Upgrade to Pro for automatic real-time filter rewriting on rename or move, batch tag-rename propagation with dry-run diff preview, and 1-click rollback audit history.

Payment is required for full access. Pro costs $15 one time or $5 a month: Sponsor or $15 one-time offer.

Version 1.0.0. Requires Obsidian 1.13.4 or later. Works on desktop and mobile.

1 Installation

  1. Open "Settings -> Community plugins", select "Browse", and search for "Bases Rename Guard".
  2. Select "Install" and "Enable". Make sure the core "Bases" plugin is enabled so .base files are supported in your vault.

For manual installation, copy main.js, manifest.json, and styles.css into <vault>/.obsidian/plugins/bases-rename-guard/ and enable the plugin in Settings. Obsidian 1.13.4 or later is required.

2 Getting started

Run "Scan for broken Base filters" from the command palette or select the shield icon in the left ribbon. Bases Rename Guard checks every .base file against your vault folders, files, and tags, listing broken references with "Edit YAML" and "Open Base" actions.

  1. Select the shield icon in the left ribbon or run "Scan for broken Base filters" from the command palette to audit all .base files in your vault.
  2. Filter results by All, Folders, Files, or Tags, then select "Edit YAML" to fix any broken line in place or "Open Base" to jump to that Base file in Obsidian.
  3. Add comma-separated folder paths in Settings under "Excluded folders" (for example Templates, Archive) if you want template or archive .base files skipped during scans and rewrites.
  4. With Pro active, rename or move any folder or note in Obsidian and Bases Rename Guard updates matching .base filters automatically.
  5. Run "Batch rename tag in Base filters (Pro)" to preview and apply tag renames across all .base files, and run "Open filter rollback history (Pro)" whenever you want to review or undo a rewrite batch.

3 Features

Interactive Broken Base Filters audit report (Free)

Obsidian updates wikilinks when you rename a note or move a folder, yet .base filters such as file.inFolder("Projects/Alpha"), file.path == "Projects/Alpha/Spec.md", and file.hasTag("#project/alpha") stay pinned to the old path or tag.

Bases Rename Guard scans top-level filters: and view-scoped views[].filters: blocks across your vault, skipping YAML comments and non-filter strings. The Broken Base Filters modal shows scanned files, checked references, and broken counts with All, Folders, Files, and Tags tabs. Select "Edit YAML" to open the raw .base YAML editor directly at the broken line and save fixes atomically, select "Open Base" to jump to the Base file or view in Obsidian, or select "Rescan vault" after fixing filters.

Automatic real-time filter rewriting on rename (Pro)

When Pro is active and "Auto-update filters on rename" is enabled, Bases Rename Guard listens to vault.on('rename') and rewrites affected .base files atomically with vault.process. Folder renames update exact folder filters (file.inFolder, file.folder ==), descendant folder filters, and file path filters pointing inside that folder (file.path ==, file.path.startsWith). Note renames update matching file.path == and file.path != filters. Quote style, indentation, comments, and unrelated YAML stay intact.

Batch tag-rename propagation with dry-run diff preview (Pro)

When you reorganize your tag taxonomy, run "Batch rename tag in Base filters (Pro)" to update file.hasTag(...) filters across every .base file in one pass. Enter the current tag and replacement tag, and choose whether to include nested subtags such as #project/alpha/urgent. The modal calculates a live dry-run diff preview showing every affected .base file and every - / + line change before writing. Original # prefix formatting and multi-argument file.hasTag("a", "b") calls are preserved.

1-click rollback audit history (Pro)

Every automatic rename rewrite and batch tag rename is logged in local rollback audit history with its timestamp, trigger type, summary, and affected .base files. Run "Open filter rollback history (Pro)" to inspect past updates and select "Rollback" to restore the previous .base contents atomically via vault.process. If a .base file was edited manually after the rewrite, rollback skips that file and reports a conflict instead of overwriting your newer edits.

4 Commands

Open the command palette and type the plugin name to see these commands. You can give each one a hotkey in Settings, Hotkeys.

Command Command id
Scan for broken Base filters bases-rename-guard:scan-broken-filters
Batch rename tag in Base filters (Pro) bases-rename-guard:batch-rename-tag
Open filter rollback history (Pro) bases-rename-guard:open-rollback-history
Upgrade to Pro bases-rename-guard:upgrade-to-pro

5 Settings

After a minor or major update, this plugin opens one What's new tab in the background. The tab and settings card suggest other NoteMods plugins and Zovo Chat and link to notemods.com for feedback (privacy). The tab sends no data. Turn the tab off in Settings.

Setting Default What it does
Excluded folders Empty Comma-separated vault folder prefixes skipped when scanning or rewriting .base files.
Show rename notices On Shows a notice whenever .base filters are updated or rolled back.
Auto-update filters on rename On (Pro) Automatically rewrites matching folder and file filters across .base files on rename or move.
Include nested subtags by default On (Pro) Includes nested subtags (for example #project/alpha/sub) by default in batch tag rename.
Maximum rollback history entries 50 entries (Pro) Maximum number of recent rewrite batches kept in local rollback audit history (20, 50, or 100).

6 Pro

The command "What Pro adds" shows each Pro feature with an interactive demo on sample Base files.

Sponsor $5 a month, or $15 once. When you have paid $15 in total, Pro stays on.

To activate Pro:

  1. Sponsor through GitHub Sponsors. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply.
  2. In Obsidian, open the settings of Bases Rename Guard and select "Sign in with GitHub".
  3. Paste the copied code at github.com/login/device and approve.

7 Privacy, payment and network

The core features are free. Pro features need a GitHub Sponsors sponsorship of theluckystrike: $5 a month or more, or $15 once. A total payment of $15 meets the payment requirement for Pro without further payment. Sign-in and the checks below still apply. Your notes stay readable and editable with or without Pro.

One payment turns on Pro in every NoteMods plugin.

GitHub handles the payment. Sponsor at https://github.com/sponsors/theluckystrike/sponsorships?tier_id=666162&frequency=one-time&metadata_source=bases-rename-guard. You need no account for the free features. Pro needs the GitHub account that sponsors.

Until you select "Sign in with GitHub" in the settings, Bases Rename Guard makes no network requests. Sign in uses the GitHub device flow. Bases Rename Guard sends its public client ID and the scope read:user to https://github.com/login/device/code and shows you a code. While you enter the code at https://github.com/login/device, it asks https://github.com/login/oauth/access_token every few seconds to check the sign-in status. The scope permits profile reads only. GitHub needs this access to show the sponsorship tier. It grants no repository scope and no write access.

After sign in, Bases Rename Guard sends one query to https://api.github.com/graphql. It checks if the signed-in account sponsors theluckystrike. It asks for the tier and the total payment to theluckystrike. The plugin reuses a successful check for 7 days. Failed checks can retry after 6 hours. Select Refresh to request an earlier check. It sends no note content, file names or other vault data, and it has no telemetry.

After a successful check, Pro can work offline for up to 14 days. Sign out or a negative sponsorship answer turns Pro off. The plugin stores the GitHub token through the secret storage API of Obsidian. It does not put the token in its saved settings or its local sponsorship data. The local storage of this device keeps your GitHub login, the tier and the time of the last check. Sign out clears the token. You can also revoke the access in your GitHub settings, under Applications.

8 Questions and answers

Does the free audit scanner modify any files in my vault?

No. The free audit scan is strictly read-only. It reads .base files and vault metadata in memory and displays broken references in the report modal without writing to disk.

Which Bases filter expressions are scanned and rewritten?

Bases Rename Guard supports file.inFolder("..."), file.folder == "...", file.folder != "...", file.path == "...", file.path != "...", file.path.startsWith("..."), and file.hasTag("...") (including single-quoted strings, multi-argument file.hasTag("a", "b"), and both top-level filters: and per-view views[].filters: blocks).

What happens if I edit a .base file manually before clicking Rollback?

Before restoring a file, Bases Rename Guard compares its current text against the exact post-rewrite snapshot. If the file changed since the rewrite, rollback skips that file and reports a conflict so your newer manual edits are never overwritten.

9 Support

Report bugs or request improvements on GitHub Issues.

Bases Rename Guard · Obsidian plugin documentation