-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Optioin to prepend/appened custom string to link display text #26
Comments
Hi @greetclammy
Is this behavior still existing? I cannot reproduce that. The link How to do you reproduce it? What are exact steps? May be I rename note by different way than you? |
Weird! Here: Screen.Recording.2025-01-06.at.18.55.45.mov
|
Thanks, I see the difference now. When link is created by this plugin then it always creates an alias property
In such case the links like So you just need to create aliases for all your links and then obsidian will not rename them. So I would say that this Feature request is no more relevant. May be you need another feature request like: Note: if you have world like "collagen" and doesn't have target note yet for it and when you select collagen and run command |
I solved the problem with Alt+Enter in brand new link (see #23) and release 1.0.9. |
Thank you for the detailed response and a swift update to the plugin! Curious. It's almost like the plugin was made as a workaround for the issue that was introduced in Obsidian ver. 1.2.1. While the workaround you outlined is a good one, it doesn't cover my use case because:
I'm now prepending I attempted to create a Templater script that would achieve this but, unfortunately, it cannot be run in cards in Canvas, which is a major downside... (Made a FR for this). Which is why I'd like to keep this issue open. If you're not sold, perhaps we should wait and see if there's any more interest in this request. |
This plugin is mainly for adding aliases. I was thinking about plugin extension which would automatically add alias for every new document made from the unresolved link. That would be solution too.
So this is no solution for you. If your use case is different and aliases are not the think you need, then you need a completely new plugin. So actually I don't want to introduce this feature request. And I would probably even not accept pull request for that. |
Understood. I solved this issue with Linter. I explained it here, if anyone bumps into this issue in the future: https://forum.obsidian.md/t/add-option-to-always-preserve-original-link-text-as-display-text-alias-when-the-target-note-is-renamed-dont-change-original-text-when-updating-links/6521/32 |
Edit: see discussion below for an update to this request.
Is your feature request related to a problem? Please describe.
When creating a link with an alias in Obsidian that matches the link target (e.g.
[[target|target]]
), if the target note gets renamed, the alias also gets renamed automatically since version 1.2.1. This breaks the original text flow where the link appears, as the displayed text changes unexpectedly. This is a long-standing issue, as discussed in this feature request.Describe the solution you'd like
Add an option to plugin settings to automatically insert an invisible whitespace character in the link alias text when creating a link with identical target and alias via one of the plugin's commands. This would make them technically non-identical while appearing visually identical, preventing the link alias from being renamed when the target note is renamed.
Describe alternatives you've considered
~
) to differentiate the alias.Additional context
The text was updated successfully, but these errors were encountered: