dalcantara7/obsidian-auto-moc

Feature Request: Link named as first Alias

naarcissus opened this issue · 4 comments

I tend to name notes so that they have some sort of order to them when I browse them in my file manager, so they aren't really named well for inclusion in a list. So I use Aliases.
I would like to have the option to have each link printed as [<file link>|<1st alias>] so that they show up as <first alias>.

I wanted to be sure I could implement this before replying. But yes I think that's a good feature. As it is implemented currently, it will check if the file that is being linked to has an alias first and if so, add the link with the first alias appended to the end st [|<1st alias>].

It will be made available in the same release as the alphabetical sort update. I will close this request once that release is made available.

The release has been published. You can update the plugin now.

Working well. Thank you for adding it this.

Just an FYI. The logic I was using to check for aliases was flawed. If you have a note with a frontmatter like the following:

---
aliases:
---

i.e. you allocate the aliases field, but don't provide any aliases,

the plugin will throw an error. I have updated the logic, but you may need to uninstall and reinstall the plugin to see the changes.