No description
Find a file
Michael Naumov 1dd12d65e4 chore(demo-vault): drop committed Invocables placeholder
The Demo Vault Helper (obsidian-dev-utils `bootstrapDemoVault`) now creates the
CodeScript Toolkit invocable-scripts folder at runtime, so the vault no longer
commits an otherwise-empty `Invocables/.gitkeep` placeholder.
2026-07-20 14:44:46 -06:00
.github chore: update template 2026-06-09 06:41:09 -06:00
.husky chore: update template 2026-04-08 08:01:26 -06:00
demo-vault chore(demo-vault): drop committed Invocables placeholder 2026-07-20 14:44:46 -06:00
scripts test: wire integration-testing vitest-setup into integration projects 2026-06-30 17:51:22 -06:00
src docs: number demo vault example notes 2026-07-20 09:04:54 -06:00
.editorconfig Switch to new template 2024-01-16 17:49:02 -06:00
.gitattributes Force LF line ending 2023-03-19 18:24:58 -06:00
.gitignore chore: update template 2026-06-09 06:41:09 -06:00
.markdownlint-cli2.mjs chore: update template 2026-04-08 08:01:26 -06:00
.nano-staged.mjs chore: update template 2026-04-08 08:01:26 -06:00
.npmrc Refactor 2024-01-18 15:41:51 -06:00
AGENTS.md docs: update 2026-07-16 10:01:02 -06:00
CHANGELOG.md chore: release 2.2.6 2026-07-20 12:00:42 -06:00
commitlint.config.ts chore: update template 2026-04-08 08:01:26 -06:00
CONTRIBUTING.md chore: update template 2026-06-09 06:41:09 -06:00
cspell.json test: drive real obsidian-dev-utils bases in unit tests 2026-06-21 11:20:19 -06:00
dprint.json feat: add demo vault 2026-07-20 02:08:56 -06:00
eslint.config.mts chore: update template 2026-04-08 08:01:26 -06:00
LICENSE Switch to new template 2024-01-16 17:49:02 -06:00
manifest.json chore: release 2.2.6 2026-07-20 12:00:42 -06:00
package-lock.json chore: release 2.2.6 2026-07-20 12:00:42 -06:00
package.json chore: release 2.2.6 2026-07-20 12:00:42 -06:00
README.md feat: add demo vault 2026-07-20 02:08:56 -06:00
tsconfig.json chore: sort tsconfig types 2026-06-27 21:15:32 -06:00
versions.json chore: release 2.2.6 2026-07-20 12:00:42 -06:00
vitest.config.ts chore: update template 2026-06-09 06:41:09 -06:00

Smart Rename

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

This is a plugin for Obsidian that adds the command Smart Rename which performs the following steps after renaming the note:

  1. Adds the previous title as an alias to the renamed note
  2. Preserves the backlinks to the renamed note that were using previous title as a display text.

Demo vault

A demo vault with usage examples ships with every release. You can access it via any of the following:

  1. Running the Smart Rename: Open demo vault command.
  2. Downloading smart-rename.demo-vault.zip from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

Detailed explanation

Step 1

You have

OldName.md:

This is a note `OldName.md` that is going to be renamed to `NewName.md`.

OtherNote.md:

This note references

1. Wikilink [[OldName]]
2. Wikilink with the same display text [[OldName|OldName]]
3. Wikilink with a custom display text [[OldName|Custom display text]]
4. Markdown link [OldName](OldName.md)
5. Markdown link with a custom display text [Custom display text](OldName.md)

Step 2

You invoke current plugin providing NewName as a new title

Step 3

Now you have

NewName.md:

---
aliases:
  - OldName
---

This is a note `OldName.md` that is going to be renamed to `NewName.md`.

OtherNote.md:

This note references

1. Wikilink [[NewName|OldName]]
2. Wikilink with the same display text [[NewName|OldName]]
3. Wikilink with a custom display text [[NewName|Custom display text]]
4. Markdown link [OldName](NewName.md)
5. Markdown link with a custom display text [Custom display text](NewName.md)

Current plugin's aim is to preserve OldName display text in links 1, 2, 4

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 are hidden.

To show them, run the following command:

window.DEBUG.enable('smart-rename');

For more details, refer to the documentation.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov