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