Internal link hotkey
Published with Share Note 🔸 Part of Obsidian guides
Firstly, Obsidian is case-insensitive for internal links, so you can actually just use [[alias]]
directly without any issues.
That being said, I like to have tidy notes with the correct note links, so I do it with the [[Alias|alias]]
style like you have there.
Here’s my Templater template which I have assigned to a hotkey. It works like this:
No text selected:
If you have no text selected before hitting the hotkey, it will insert [[]]
and put the cursor in the middle so you can immediately start typing an internal link.
Alias text selected:
If you have some text selected, it will:
- Look for a note title matching the same text, regardless of case. If found, it will insert a link in the format
[[Alias|alias]]
. This means it will happily find a note titled “ALiaS” and create[[ALiaS|alias]]
. Equally the case of your alias text doesn’t matter - it will still find the note.
Of course if the title matches, it won’t use an alias:
- If there are multiple matching notes (that is, you have multiple notes with that same exact title), it will give you a list so that you can pick the one you want, then it will add the note in the format
[[path/to/Alias|alias]]
.
- If there are no notes found, it will add a link in the format
[[|alias]]
, and put the cursor before the pipe so you can start typing the name of the note you want to link to.
The template - just put it your templates folder and assign it to a hotkey with Templater:
Works on mobile too, just assign it to a button on your mobile toolbar.