Feature: Note Aliases

I would love to see the ability to assign additional note aliases to notes for the purpose of more natural linking.

Say I have a note called Turkey which contains information about the country.

I can link to this note by writing: “Ankara is the capital of [[Turkey]]”

If, however, I wanted to make reference to turkish food I would want to say: “Last night I went to a [[turkish]] restaurant.” Where [[turkish]] is an alias for my Turkey note.

1 Like

The way it was solved in some other apps was with this notation: [[alias|actual note name]]

1 Like

Love this implementation! Very elegant, very flexible.

The only problem the developers may have is the backwards compatibility with notes written in Bear 1.x where people used the pipe in their note title.

Perhaps a double pipe; e.g. [[alias||Actual Note Name]] is less likely to collide with as many current notes?

1 Like

I can think of at least 20 notes on top of my head which have a pipe used in the title.

Double pipe is better.

Out of curiosity: what contexts to do use a pipe in? I don’t think I ever used this symbol in my life outside of code.

1 Like

I use it as a separator.

Like Brands | Taglines which lists all my small brands and their taglines.
Articles | Published has links to all the notes containing articles that have been published.
And so on…

Makes sense. Thanks.

Haha, it does look nice. It’s an extra button push on phone keyboard and for that reason alone not part of my lexicon; would just use a dash

I’d suggest using the normal liking along with the note’s link and make use of the link title as an alias. Something like this

Last night I went to a [turkish](bear://x-callback-url/open-note?id=70A7D96B...) restaurant.

But maybe I’m missing something here

I think you’re missing the usability aspect. To link via [[this]] I don’t need to search for the note if I remember its title. But I’m never going to remember the note ID so your solution requires multiple steps:

  • find the note I want to link to
  • copy the URL
  • go back to the note where I want to paste the link
  • type out the link

EDIT: and while in English it may seem like a niche use case, it is way more useful in languages with noun declensions. Otherwise you end up with a lot of ungrammatical sentences. (Think case endings in Latin).

1 Like

+1 to everything @gnome.irdan said in his comment.

I would also stress the immense helpfulness of the suggestion drop-down when using the [[link]] syntax, a feature that cannot be used in the x-call-back workaround.

1 Like