11 lines
344 B
Markdown
11 lines
344 B
Markdown
<%*
|
|
const title = tp.date.now("YYYY-MM-DD HHmmss");
|
|
const folder = "Notes";
|
|
const template = tp.file.find_tfile("Journal Template");
|
|
|
|
// Create the file
|
|
const newFile = await tp.file.create_new(template, title, false, folder);
|
|
|
|
// Open it in a new tab so you don't lose your current note
|
|
await app.workspace.getLeaf('tab').openFile(newFile);
|
|
%> |