Getting ready to overhaul this vault
This commit is contained in:
@@ -31,7 +31,6 @@ Nextcloud Link:
|
||||
|
||||
# Resources
|
||||
`Insert the resources base here.`
|
||||
|
||||
# Personal Notes
|
||||
|
||||
# Links
|
||||
@@ -40,4 +39,22 @@ Nextcloud Link:
|
||||
## Tasks
|
||||
`Add 1st level tasks here.`
|
||||
## Resources
|
||||
`Add resource linsk here`
|
||||
`Add resource linsk here`
|
||||
```meta-bind-button
|
||||
label: Add AECL Report
|
||||
icon: ""
|
||||
style: default
|
||||
class: ""
|
||||
cssStyle: ""
|
||||
backgroundImage: ""
|
||||
tooltip: ""
|
||||
id: ""
|
||||
hidden: false
|
||||
actions:
|
||||
- type: templaterCreateNote
|
||||
templateFile: 99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Report-AECL-.md
|
||||
fileName: ""
|
||||
openNote: true
|
||||
openIfAlreadyExists: false
|
||||
|
||||
```
|
||||
@@ -6,12 +6,13 @@ Date Due:
|
||||
Description:
|
||||
Priority:
|
||||
Status:
|
||||
- In-Process
|
||||
- Not Started
|
||||
Task Lead:
|
||||
tags:
|
||||
Notes:
|
||||
Charge Code:
|
||||
Type: Task
|
||||
Done: false
|
||||
---
|
||||
# Description
|
||||
|
||||
|
||||
+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