Alias with diferent names

Use case or problem

When I define aliases, I have only one category available. Although all aliases should be considered indirect links, I would like to be able to create other lists, with different names, all considered aliases.

Proposed solution A

---
aliases:
   - Alias1
   - Alias2
nicknames:
   - The Wolf
   - The Lost
---

So when I am referring to my character who maybe has the file named by his full name, I can refer to him also by first or last name, which may contain spaces .

Proposed solution B

Link other fields, single or list, in the alias list

aliases:
   - Alias 1
   - $name
   - $surname
   - $nicknames
name: Bob
surname: Black
nicknames:
   - The Wolf
   - The Lost
1 Like

+1: it is one of the two great lacks I feel in Obsidian!

You can just include it among aliases too, meaning even if you need the property ā€˜nickname’ on its own, it does not stop you from adding it to aliases as well. It’s not automatic, but it works right now.

I didn’t understand, sorry, I tried

aliases:
   - Alias 1
   - nicknames
   - [name]
   - [[surname]]
name: Bob
surname: Black
nicknames:
   - The Wolf
   - The Lost

but only recognizes ā€œAlias 1ā€ and ā€œnicknamesā€ precisely as a string and not as a link. The other two elements are not even shown.
Or did you mean to duplicate data, both among nicknames and aliases?

I mean if aliases includes The Wolf (as text/string), than you can link to this note by using that. It’s not automatic in the sense that you can just put ā€˜nicknames’ in any form in the aliases field and it will automatically add values from that property field. You have to add what you want to use as an alias manually. (Perhaps someone proficient with templater can make it automatic, but not me, haha)

You might also find Link with Alias plugin useful, particularly if often in need to add an alias while writing another note. Eg your writing something and reference Bob Black from above example, but you refer to him as The Wolf and it isn’t among the aliases. This plugin enables you to automatically add the Wolf as an alias. In other words, when you write [[Bob Black|The Wolf]] it will add The Wolf as an alias if it wasn’t already listed among aliases.

What are you using to query? Core search, dataview, etc… ? And what is the query?

At this point, I hope they add the function, I really miss it.

I haven’t gotten to the queries yet. It’s just a simple matter of creating links and reverse links