No description
Find a file
2023-03-19 18:24:58 -06:00
.editorconfig Initial commit 2023-03-20 01:27:08 +02:00
.eslintignore Initial commit 2023-03-20 01:27:08 +02:00
.eslintrc Initial commit 2023-03-20 01:27:08 +02:00
.gitattributes Force LF line ending 2023-03-19 18:24:58 -06:00
.gitignore Ignore locks 2023-03-19 17:58:46 -06:00
.npmrc Initial commit 2023-03-20 01:27:08 +02:00
esbuild.config.mjs Initial commit 2023-03-20 01:27:08 +02:00
main.ts Initial commit 2023-03-20 01:27:08 +02:00
manifest.json Update manifests 2023-03-19 17:59:23 -06:00
package.json Update manifests 2023-03-19 17:59:23 -06:00
README.md Update README 2023-03-19 18:20:07 -06:00
styles.css Initial commit 2023-03-20 01:27:08 +02:00
tsconfig.json Initial commit 2023-03-20 01:27:08 +02:00
version-bump.mjs Initial commit 2023-03-20 01:27:08 +02:00
versions.json Update manifests 2023-03-19 17:59:23 -06:00

Smart Rename

This is a plugin for Obsidian that adds the command Smart Rename which does the following 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.

Detailed explanation

  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)
  1. You invoke current plugin providing NewName as a new title

  2. 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