When I’m writing my notes, I can add a link to a non-existing note to create it later clicking on a link. I often add links with aliases, like this:
[[file-name|Some alias]]. Using Templater, I can retrieve a file title (actually file name) to my new note content with this command:
<% tp.file.title %>, but is there any way to do the same with the alias?
In other words, when you click on a link
[[file-name|Some alias]] to create a new note from a template with
<% tp.file.title %> in it, you will get
file-name. But I can’t figure out, how can I get
Some Alias in a new file using Templater commands?
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.