mnaoumov13k downloadsRename notes keeping previous title in existing links.
This is a plugin for Obsidian that adds the command Smart Rename which performs the following steps after renaming the note:
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)
You invoke current plugin providing NewName as a new title
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
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('smart-rename');
For more details, refer to the documentation.
See my other Obsidian resources.