mirror of
https://github.com/mnaoumov/obsidian-smart-rename.git
synced 2026-07-22 07:40:32 +00:00
No description
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitattributes | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| main.ts | ||
| manifest.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
Smart Rename
This is a plugin for Obsidian that adds the command Smart Rename which does the following following steps after renaming the note:
- Adds the previous title as an alias to the renamed note
- Preserves the backlinks to the renamed note that were using previous title as a display text.
Detailed explanation
- 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
NewNameas a new title -
Now you have
NewName.md:
---
alises:
- 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