Using Templater, I have a standard file suggester. This works fine, but I would like to include aliases in the list in the same manner as Quick Switcher, then be able to insert the link in my created file.
Example, choose a file named Books with an alias of “Reading”… if I chose Reading from the suggester, then insert it into the file that Templater creates as [[Books|Reading]]. I’ve attempted to use tp.frontmatter with no success.
As we can see in the image both the fuzzy matching, and the aliases works. (See files “221231 - New years eve” and “New file 1 → new alias”).
And choosing the latter of those it produces the link [[tmp/new file 1.md | new alias]]. Hope this helps!
( Now I just need to figure out how to create a new file link based upon this without having to trigger another tp.system.prompt() or similar, as I then can use this template to locate or create new forum response notes. )
Well, even if I allow larger than 10 results, my aliases that worked in the original script are not offered for insertion. Simple one-string aliases, btw.
No, I meant tR += `[[${ destination.path }|${ destination.alias }]].