Auto template picker for Templater

What I’m trying to do

I’m trying to make it so when I click on a link to a not-yet-created note, before it opens that note it prompts me for which Templater template to use. There is a plugin that does this exact thing for the Templates core plugin, called Auto Template Prompt. Is there any way to do this within Templater? Thanks!

1 Like

It is one of the features talked about in this guide:

1 Like

@gino_m is pointing you to a fantastic resource.

If you want to replicate the “Auto Templater Prompt” functionality, the following (simple) script prompts the Templater modal from which you can select the template you want to apply:

<%_*

app.commands.executeCommandById("templater-obsidian:insert-templater")

_%>

Register this script (name the template whatever you want and save it wherever in the vault) within the Templater settings “Folder Templates” for the root (/) folder, and you are good to go.

2 Likes

This work perfectly – thank you both!!

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.