Rename note command doesn't update wikilinks to the renamed note if they are inside the renamed note
Please select the area your Bug applys to. (Multiple selections are Possible)
- [ ] Onboard. Initial vault setup and import/export pods
- [ ] Create. Note creation, lookup, snippets and templates
- [x] Retrieve. Backlinks, references, graph view
- [x] Structure. Refactoring, multi-vault and schemas
- [ ] Publish. Sharing your repo with the world
- [ ] Misc (Choose this if your not sure)
Describe the bug
The rename note command does not update references to a note if those notes are inside the note being renamed. (This is an odd edge case!)
Let's say I have note1 and note2, and both notes contain the wikilink [[note1]]. When I use the rename note command to change note1's file name to note01, the wikilink updates to [[note01]] inside note2. But it does not update inside note1, which is now named note01.
To Reproduce
Steps to reproduce the behavior:
- Open VS Code Command Palette.
- Use
rename notecommand to rename note that references itself with a wikilink. - Look at the wikilink in that renamed note.
- See that wikilink still refers to old note name.
Expected behavior
Wikilinks should be updated, even if they are inside the renamed note.
Screenshots
Wikilink [[note1]] does not update when using rename note command to rename note1 to note01:

Wikilink successfully updates in note2:

Desktop (please complete the following information)
- OS: Mac
- Editor: VS Code
- Dendron Version: 0.56.0
Additional context
Add any other context about the problem here.
Dendron Log file
Please attach the output of >Dev:Dendron: Open Logs here
Thank you for the report! I can reproduce this. We'll track this item and let you know once it's fixed 🙂
glad to see this issue has been tracked... awesome!
This issue is featured in this week's round of CROP.
The community has selected this issue as this week's CROP winner. 🎉