Getting ready to overhaul this vault
This commit is contained in:
+10
-2
@@ -1,5 +1,13 @@
|
||||
<%*
|
||||
let title = await tp.system.prompt("Report Title");
|
||||
<%-*
|
||||
const subfolderName = "~Deliverables";
|
||||
const currentDir = app.vault.getAbstractFileByPath(tp.file.path(true)).parent.path;
|
||||
const targetDir = currentDir + "/" + subfolderName;
|
||||
// Ensure the subfolder exists
|
||||
if (!app.vault.getAbstractFileByPath(targetDir)) {
|
||||
await app.vault.createFolder(targetDir);
|
||||
}
|
||||
const title = await tp.system.prompt("Note Title");
|
||||
await tp.file.create_new("", targetDir + "/" + title, false);
|
||||
let num = await tp.system.prompt("Report Number");
|
||||
let locall = await tp.system.prompt("Local Link");
|
||||
let remotel = await tp.system.prompt("Remote Link");
|
||||
|
||||
Reference in New Issue
Block a user