mnaoumov / obsidian-smart-rename

Obsidian Plugin that helps to rename notes keeping previous title in existing links
MIT License
23 stars 2 forks source link

Not including alias on some links #5

Open EarthToMooney opened 9 months ago

EarthToMooney commented 9 months ago

For example, I have a file named "D&D.md" in my Non-Work/Social folder. The only link to it is in Non-Work/Life & Philosophy/Parenting.md, in the line "- Tabletop games like [[D&D]] offer great social outlets also at low prices." I smart rename "D&D.md" to "Dungeons and Dragons.md" and the line becomes "- Tabletop games like [[Dungeons and Dragons]] offer great social outlets also at low prices." instead of what I expected, which would be "- Tabletop games like [[Dungeons and Dragons|D&D]] offer great social outlets also at low prices." Not sure why this is.

EarthToMooney commented 9 months ago

If I had to take a guess as to what's going wrong, I'd assume it may have something to do with the context these links appear in, not non-alphabetical characters and how the plugin handles them. Plenty of notes I've tried that have only letters and spaces work just fine, though some named that way also only work as expected when smart renaming for a fraction of all links using them.

mnaoumov commented 9 months ago

@EarthToMooney thanks for your report, however I could not reproduce the issue

I prepared a vault for you double check

vault.zip

ianlhayes commented 8 months ago

I came here because I was experiencing the same issue (only my filenames didn't have ampersands,) but the issue was resolved by relaunching Obsidian. It's unclear what was causing the issue, but given that I have other plugins, CSS snippets, etc. installed, it's likely not isolated to this plugin.