I’ve got a driver template that parses out my templates, gives me a menu, and then each one of those opens the new template with the right data and it USED to drop me into the note itself for immediate editing
What I’m trying to do
Have Templater via the Templater: Create Template/.md open a new note with the data from the chosen template and open the created note for editing. It’s currently making the note, and then dropping me into an Untitled Note.
Here’s the code I have in the template. the dailydriver list thing just gives me a full list of things in the template folder, and then as you see makes the note. I am using tp.file.move() in each of the templates.
<%*
let template_list = await tp.user.dailydriver(tp)
let template_choice = await tp.system.suggester(template_list[1], template_list[0])
let folders = ""
let tFile;
switch(template_choice) {
case "Person Manager Template":
new Notice("This template should be bound to a hotkey", 3000);
break;
default:
console.log("Inside Daily:" + template_choice)
folders = await tp.user.dataconfig(tp,template_choice);
tFile = tp.file.find_tfile("/Templates/" + template_choice);
await tp.file.create_new(
template = tFile,
filename = template_choice,
open_new = true
);
break;
}
-%>
Things I have tried
I’ve tried the insert as well and it’s not getting me the behavior I need.