From 5fa64908641d45972cdc8058785e3d25e512ea60 Mon Sep 17 00:00:00 2001 From: Robin Sving Date: Thu, 16 May 2024 23:15:17 +0200 Subject: [PATCH] Quartz sync: May 16, 2024, 11:15 PM --- content/5. Sessioner/2024/Untitled.md | 6 ++++++ content/Breachhill.md | 0 content/__Meta/Templates/SESSION.md | 15 +++++++++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100755 content/5. Sessioner/2024/Untitled.md delete mode 100755 content/Breachhill.md diff --git a/content/5. Sessioner/2024/Untitled.md b/content/5. Sessioner/2024/Untitled.md new file mode 100755 index 000000000..2beb2c119 --- /dev/null +++ b/content/5. Sessioner/2024/Untitled.md @@ -0,0 +1,6 @@ +--- + +title: 2024-05-16 +--- + + diff --git a/content/Breachhill.md b/content/Breachhill.md deleted file mode 100755 index e69de29bb..000000000 diff --git a/content/__Meta/Templates/SESSION.md b/content/__Meta/Templates/SESSION.md index fcd71903f..5913617e4 100755 --- a/content/__Meta/Templates/SESSION.md +++ b/content/__Meta/Templates/SESSION.md @@ -1,5 +1,16 @@ --- <%* -title: session + const date = await tp.system.prompt("Date",tp.date.now('YYYY-MM-DD'), true) + const year = date.substring(0, 4); + await tp.file.rename(date) + + /* Move file to correct folder (year) */ + await tp.file.move("/Worlds/1. Red Eclipse/5. Sessioner/" + year + "/" + tp.file.title) + + const locations = await app.vault.getFolderByPath("Worlds/1. Red Eclipse/3. Platser").children.filter(item => item.children).map(item => item.name); + const location = await tp.system.suggester(locations, locations) +%> +title: +type: session +location: <% location %> --- -const text = await tp.system.prompt("What's Good?") \ No newline at end of file