Dyldog / luhman-obsidian-plugin

GNU General Public License v3.0
60 stars 18 forks source link

[FEATURE] Ability to configure plugin to use aliased links #33

Open jamesx4 opened 2 years ago

jamesx4 commented 2 years ago

Requested Feature

Ability to configure plugin to use aliased links

Relates To

Even though I want to use Luhman UIDs (1a, 1a1, 1a2, etc) for my note filenames, I may not want those UIDs in my links between parent/child or sibling notes. For me this creates a cleaner, more readable note in the note body itself while still allowing me to see context via the Luhman UID in the File Explorer.

Solution

I would love to have a plugin setting like Use Aliased Links that would display just the title w/o the UID and separator in the links between parent/child or sibling notes.

For example, with setting like Use Aliased Links enabled, doing Create Child w/title "Child ABC" might create note 1a1 Child ABC.md, but the link to child would be of the form [[1a1 Child ABC|Child ABC]]. And the link placed on the new child back to the parent note would be [[1a Parent Note|Parent Note]].

Considerations

This option would not effect aliases: property in the frontmatter, as that seems to be something someone would add explicitly if needed.

Additional context

jvanz commented 2 years ago

Oh, I've just created the #34 asking for a similar thing. I think these both issue is related and they can work together.

Eforen commented 2 years ago

I agree that this is ultimatly desirable and is something I had planned to address later but I do not want to just see this as a boolean in the settings I also want an option under making the files in the firstplace that overrides the default behavior.

How I was planning to impliment it is set the default in the settings and then have a checkbox on the make new note screen or the link to note screen that defaults to whatever the default is that way you can change it whenever.

Aditionally I was likely going to make it so that there are multiple defaults one for each situation.

I would love to see a PR for this as I am focusing on bugfixes right now.

jamesx4 commented 2 years ago

One other thought...I mentioned that I wouldn't want this to do anything with the aliases property in the frontmatter, but now I'm not so sure. Been playing with that and it actually works really nice to add the title of my note to the aliases. Then when I'm linking to it from disparate notes Obsidian will automatically use the alias in linking to a note with filename consisting of . Works quite well. Perhaps, it would make sense to have an option to add title to aliases.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>