If a link has matching name and alias, do not change alias if the note is renamed

If a link has matching name and alias, do not change alias if the note is renamed.

Assume there is a link [[note_a|note_a]] to note_a. If note_a is renamed to note_b, the link should become [[note_b|note_a]].

This may be beneficial for users who want to make sure that alias (display text) remains the same, even if the note is renamed.

Related FR

7 Likes

Made an account just to come second this feature request after running into this issue myself.

This is definitely something I really hope to see added. Currently, I sidestep this problem by changing how it’s used in the context of the note.

An interesting note, it does seem like Obsidian retains the alias if it is explicitly defined in the aliases: key-value before the note is renamed. If it is renamed beforehand updating this property however, the alias changes alongside with the note name. I don’t think this is friendly to the Templater users who auto-rename notes though (Myself included).
example

1 Like