Quartz sync: May 16, 2024, 11:15 PM

This commit is contained in:
Robin Sving 2024-05-16 23:15:17 +02:00
parent 46045733be
commit 5fa6490864
3 changed files with 19 additions and 2 deletions

View file

@ -0,0 +1,6 @@
---
title: 2024-05-16
---

View file

View file

@ -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?")