Initial commit
This commit is contained in:
11
Templates/Scripts/New Journal File Script.md
Normal file
11
Templates/Scripts/New Journal File Script.md
Normal file
@@ -0,0 +1,11 @@
|
||||
<%*
|
||||
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);
|
||||
%>
|
||||
Reference in New Issue
Block a user