Changed how Resources work to reflect new style

This commit is contained in:
2026-10-16 20:25:31 -04:00
parent 37aafdd913
commit 01d004566c
11 changed files with 139 additions and 287 deletions
-206
View File
@@ -131,40 +131,6 @@
"kind": "prompt" "kind": "prompt"
} }
}, },
{
"id": "9c76f6e3-d744-4c02-b417-f020795ac3a6",
"name": "Create⸬Resource⸬Report",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Report.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{ {
"id": "15c97633-3f00-4760-9171-4b9c811a69e0", "id": "15c97633-3f00-4760-9171-4b9c811a69e0",
"name": "Create⸬Definition", "name": "Create⸬Definition",
@@ -612,178 +578,6 @@
"kind": "prompt" "kind": "prompt"
} }
}, },
{
"id": "d482b88f-43e9-4b73-be57-3bf848bade39",
"name": "Create⸬Resource⸬Report-CNL",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Report-CNL-.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{
"id": "f7b7c506-512f-495b-b3fb-13986c3cc998",
"name": "Create⸬Resource⸬Report-AECL",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Report-AECL-.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{
"id": "bc49044a-9d44-4cac-a538-c7dda85ccfe4",
"name": "Create⸬Resource⸬Report-Hardware",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Hardware.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{
"id": "263d7a83-ef63-469a-8dda-32b5d82c9fc5",
"name": "Create⸬Resource⸬List",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬List.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"discoverExistingNotesBeforeCreate": false,
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"copyLinkToClipboard": false,
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{
"id": "e23397f4-549d-4e80-9420-98e40e9087fd",
"name": "Create⸬Resource⸬Report-Software",
"type": "Template",
"command": false,
"templatePath": "99 Toolkit/Templates/Project-Related/Work-Related/Resources/Resource⸬Software.md",
"fileNameFormat": {
"enabled": true,
"format": "~Resources/Resource.md"
},
"folder": {
"enabled": true,
"folders": [],
"chooseWhenCreatingNote": false,
"createInSameFolderAsActiveFile": true,
"chooseFromSubfolders": false
},
"appendLink": {
"enabled": true,
"placement": "replaceSelection",
"requireActiveFile": false,
"linkType": "link"
},
"openFile": true,
"fileOpening": {
"location": "tab",
"direction": "vertical",
"mode": "default",
"focus": true
},
"fileExistsBehavior": {
"kind": "prompt"
}
},
{ {
"id": "4afdc6ef-5c3f-4cc6-a1c7-af37991bbeea", "id": "4afdc6ef-5c3f-4cc6-a1c7-af37991bbeea",
"name": "Create⸬Component⸬Capacitor", "name": "Create⸬Component⸬Capacitor",
+2 -23
View File
@@ -171529,71 +171529,50 @@
} }
], ],
"codePoints": [ "codePoints": [
{
"firstUse": "2026-09-30T14:53:31.725Z",
"lastUse": "2026-09-30T14:53:31.725Z",
"timesUsed": 1,
"id": 10647
},
{
"firstUse": "2026-09-30T14:50:59.950Z",
"lastUse": "2026-09-30T18:18:36.151Z",
"timesUsed": 9,
"id": 8658
},
{ {
"id": 8482, "id": 8482,
"firstUse": "2026-08-02T21:47:43.792Z", "firstUse": "2026-08-02T21:47:43.792Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 1 "timesUsed": 1
}, },
{ {
"id": 179, "id": 179,
"firstUse": "2026-08-02T01:53:49.026Z", "firstUse": "2026-08-02T01:53:49.026Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 1 "timesUsed": 1
}, },
{ {
"id": 8627, "id": 8627,
"firstUse": "2026-08-01T15:40:05.851Z", "firstUse": "2026-08-01T15:40:05.851Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 8 "timesUsed": 8
}, },
{ {
"id": 181, "id": 181,
"firstUse": "2026-07-30T13:27:54.992Z", "firstUse": "2026-07-30T13:27:54.992Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 1 "timesUsed": 1
}, },
{ {
"id": 937, "id": 937,
"firstUse": "2026-07-30T13:10:53.976Z", "firstUse": "2026-07-30T13:10:53.976Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 2 "timesUsed": 2
}, },
{ {
"id": 9312, "id": 9312,
"firstUse": "2026-07-25T13:05:34.236Z", "firstUse": "2026-07-25T13:05:34.236Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 1 "timesUsed": 1
}, },
{ {
"id": 10169, "id": 10169,
"firstUse": "2026-07-24T09:44:13.731Z", "firstUse": "2026-07-24T09:44:13.731Z",
"lastUse": "1970-01-01T00:00:00.000Z",
"timesUsed": 2 "timesUsed": 2
}, },
{ {
"id": 11820, "id": 11820,
"firstUse": "2026-07-23T18:51:25.995Z", "firstUse": "2026-07-23T18:51:25.995Z",
"lastUse": "2026-09-30T14:50:42.497Z", "timesUsed": 1
"timesUsed": 2
}, },
{ {
"id": 8594, "id": 8594,
"firstUse": "2026-07-23T18:48:07.249Z", "firstUse": "2026-07-23T18:48:07.249Z",
"lastUse": "2026-09-30T18:58:44.103Z", "timesUsed": 5
"timesUsed": 73
} }
] ]
}, },
View File
@@ -7,14 +7,17 @@ let remotel = await tp.system.prompt("Remote Link");
--- ---
Type: Resource Type: Resource
Resource Type: Hardware Resource Type: Hardware
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Publisher: <% supplier %> Publisher: <% supplier %>
Title: <% title %> Title: <% title %>
Local File Link: <% locall %> Local File Link: <% locall %>
Remote File Link: <% remotel %> Remote File Link: <% remotel %>
Description: Description:
Status: Status:
Classification:
Reviewed:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %> Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
--- ---
<%* await tp.file.rename("Resource⸬Hardware-" + tp.date.now("DDMMYYYYHHMMSS")) %> <%* await tp.file.rename("Resource⸬Hardware-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %> # <% num %> - <% title %>
@@ -5,11 +5,14 @@ let description = await tp.system.prompt("Description");
--- ---
Type: Resource Type: Resource
Resource Type: List Resource Type: List
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Title: <% title %> Title: <% title %>
Description: <% description %> Description: <% description %>
Status: Status:
Classification:
Reviewed: False
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %> Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
--- ---
<%* await tp.file.rename("Resource⸬List-" + tp.date.now("DDMMYYYYHHMMSS")) %> <%* await tp.file.rename("Resource⸬List-" + tp.date.now("DDMMYYYYHHMMSS")) %>
+19
View File
@@ -0,0 +1,19 @@
<%*
let title = await tp.system.prompt("Title");
let description = await tp.system.prompt("Description");
-%>
---
Type: Resource
Resource Type: List
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Title: <% title %>
Description: <% description %>
Status:
Classification:
Reviewed: False
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Note-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% title %>
@@ -7,16 +7,28 @@ let remotel = await tp.system.prompt("Remote Link");
--- ---
Type: Resource Type: Resource
Resource Type: Report Resource Type: Report
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Publisher: Publisher:
Number: <% num %> Document Number: <% num %>
Title: <% title %> Title: <% title %>
Author: Author:
Local File Link: <% locall %> Local File Link: <% locall %>
Remote File Link: <% remotel %> Remote File Link: <% remotel %>
Description: Description:
Status: Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %> Classification:
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %> Reviewed: False
Date Created: <% tp.date.now("DD-MMM-YYYY") %>
--- ---
<%* await tp.file.rename("Resource⸬Report-" + tp.date.now("DDMMYYYYHHMMSS")) %> <%* await tp.file.rename("Resource⸬Report-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %> # <% num %> - <% title %>
>[!summary] [[`link here`|<%title%>]]
> !['embed here`]
> [!notes] [[Resource⸬Report-<% tp.date.now("DDMMYYYYHHMMSS") %>-Notes]]
> ![[Resource⸬Report-<% tp.date.now("DDMMYYYYHHMMSS") %>-Notes]]
@@ -7,6 +7,8 @@ let remotel = await tp.system.prompt("Remote Link");
--- ---
Type: Resource Type: Resource
Resource Type: Software Resource Type: Software
Project: <% tp.file.folder(true).split('/')[1] %>
Task: <% tp.file.folder(false) %>
Publisher: <% num %> Publisher: <% num %>
Title: <% title %> Title: <% title %>
Local File Link: <% locall %> Local File Link: <% locall %>
@@ -15,8 +17,9 @@ Description:
Status: Status:
EULA: false EULA: false
EULA Link: EULA Link:
Classification:
Reviewed: False
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %> Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
--- ---
<%* await tp.file.rename("Resource⸬Software-" + tp.date.now("DDMMYYYYHHMMSS")) %> <%* await tp.file.rename("Resource⸬Software-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %> # <% num %> - <% title %>
@@ -17,6 +17,8 @@ Task Lead:
Done: false Done: false
--- ---
<%* await tp.file.rename(num + " - " + title) %> <%* await tp.file.rename(num + " - " + title) %>
# <mark style="background-color: #FFF3A3A6;">`MOLLY! DO NOT FORGET TO CREATE FOLDER NOTE BEFORE INSERTING BASES!`</mark>
# Scope & Description # Scope & Description
`Fill this out` `Fill this out`
@@ -45,6 +47,95 @@ actions:
`Insert the task-deliverables base here` `Insert the task-deliverables base here`
# Resources # Resources
`BUTTON[report]` `BUTTON[list]` `BUTTON[note]` `BUTTON[hardware]` `BUTTON[software]`
`Insert the task-resources base here` `Insert the task-resources base here`
```meta-bind-button
label: List
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "list"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬List.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Report
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: "report"
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Report.md
fileName: Resource⸬Report
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Hardware
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: hardware
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Hardware.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Software
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: software
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Software.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
```meta-bind-button
label: Note
icon: ""
style: default
class: ""
cssStyle: ""
backgroundImage: ""
tooltip: ""
id: note
hidden: true
actions:
- type: templaterCreateNote
templateFile: 99 Toolkit/Resources/Resource⸬Note.md
fileName: ""
openNote: true
openIfAlreadyExists: false
```
@@ -1,30 +0,0 @@
<%-*
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");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Atomic Energy of Canada Ltd.
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-AECL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>
@@ -1,22 +0,0 @@
<%*
let title = await tp.system.prompt("Report Title");
let num = await tp.system.prompt("Report Number");
let locall = await tp.system.prompt("Local Link");
let remotel = await tp.system.prompt("Remote Link");
-%>
---
Type: Resource
Resource Type: Report
Publisher: Canadian Nuclear Laboratories
Number: <% num %>
Title: <% title %>
Author:
Local File Link: <% locall %>
Remote File Link: <% remotel %>
Description:
Status:
Date Created: <% tp.date.now("DD-MM_MMM-YYYY") %>
Date Modified: <% tp.file.last_modified_date("DD-MM_MMM-YYYY") %>
---
<%* await tp.file.rename("Resource⸬Report-CNL-" + tp.date.now("DDMMYYYYHHMMSS")) %>
# <% num %> - <% title %>