2023-03-20 00:20:07 +00:00
# Smart Rename
2023-03-19 23:27:08 +00:00
2026-03-06 22:56:18 +00:00
[](https://www.buymeacoffee.com/mnaoumov)
[](https://github.com/mnaoumov/obsidian-smart-rename/releases)
[](https://github.com/mnaoumov/obsidian-smart-rename/releases)
2026-06-09 12:41:09 +00:00
[](https://github.com/mnaoumov/obsidian-smart-rename)
2026-03-06 22:56:18 +00:00
2023-03-20 05:05:33 +00:00
This is a plugin for [Obsidian ](https://obsidian.md/ ) that adds the command `Smart Rename` which performs the following steps after renaming the note:
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
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.
2023-03-19 23:27:08 +00:00
2026-07-20 08:08:56 +00:00
## 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 ](https://github.com/mnaoumov/obsidian-smart-rename/releases ).
3. Browsing its source in [`demo-vault/` ](./demo-vault/README.md ) in this repository.
2023-03-20 00:20:07 +00:00
## Detailed explanation
2023-03-19 23:27:08 +00:00
2025-10-06 02:08:11 +00:00
### Step 1
You have
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
`OldName.md` :
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
```markdown
This is a note `OldName.md` that is going to be renamed to `NewName.md` .
```
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
`OtherNote.md` :
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
```markdown
This note references
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
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 )
```
2023-03-19 23:27:08 +00:00
2025-10-06 02:08:11 +00:00
### Step 2
You invoke current plugin providing `NewName` as a new title
### Step 3
2023-03-19 23:27:08 +00:00
2025-10-06 02:08:11 +00:00
Now you have
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
`NewName.md` :
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
```markdown
---
2023-05-01 22:32:54 +00:00
aliases:
2023-03-20 00:20:07 +00:00
- OldName
---
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
This is a note `OldName.md` that is going to be renamed to `NewName.md` .
2023-03-19 23:27:08 +00:00
```
2023-03-20 00:20:07 +00:00
`OtherNote.md` :
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
```markdown
This note references
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
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 )
```
2023-03-19 23:27:08 +00:00
2023-03-20 00:20:07 +00:00
Current plugin's aim is to preserve `OldName` display text in links 1, 2, 4
2023-03-20 02:48:19 +00:00
## Installation
2026-06-09 12:41:09 +00:00
The plugin is available in [the official Community Plugins repository ](https://community.obsidian.md/plugins/smart-rename ).
2025-03-30 17:02:18 +00:00
### Beta versions
2026-06-09 12:41:09 +00:00
To install the latest beta release of this plugin (regardless if it is available in [the official Community Plugins repository ](https://community.obsidian.md ) or not), follow these steps:
2025-03-30 17:02:18 +00:00
2026-06-09 12:41:09 +00:00
1. Ensure you have the [BRAT plugin ](https://community.obsidian.md/plugins/obsidian42-brat ) installed and enabled.
2025-03-30 17:02:18 +00:00
2. Click [Install via BRAT ](https://intradeus.github.io/http-protocol-redirector?r=obsidian://brat?plugin=https://github.com/mnaoumov/obsidian-smart-rename ).
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.
2024-01-18 21:42:25 +00:00
2025-01-21 03:03:06 +00:00
## Debugging
By default, debug messages for this plugin are hidden.
To show them, run the following command:
```js
window.DEBUG.enable('smart-rename');
```
2026-07-16 16:01:02 +00:00
For more details, refer to the [documentation ](https://mnaoumov.dev/obsidian-dev-utils/guides/debugging/ ).
2025-01-21 03:03:06 +00:00
2024-09-12 14:02:30 +00:00
## Support
2025-10-06 02:08:11 +00:00
<!-- markdownlint - disable MD033 -->
2026-03-06 22:56:18 +00:00
2025-10-06 02:08:11 +00:00
< a href = "https://www.buymeacoffee.com/mnaoumov" target = "_blank" > < img src = "https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt = "Buy Me A Coffee" height = "60" width = "217" > < / a >
2026-03-06 22:56:18 +00:00
2025-10-06 02:08:11 +00:00
<!-- markdownlint - enable MD033 -->
2024-09-12 14:02:30 +00:00
2026-03-06 22:56:18 +00:00
## My other Obsidian resources
[See my other Obsidian resources ](https://github.com/mnaoumov/obsidian-resources ).
2024-01-18 21:42:25 +00:00
## License
2024-11-04 05:51:12 +00:00
© [Michael Naumov ](https://github.com/mnaoumov/ )