Quartz sync: May 16, 2024, 11:15 PM
This commit is contained in:
parent
46045733be
commit
5fa6490864
3 changed files with 19 additions and 2 deletions
6
content/5. Sessioner/2024/Untitled.md
Executable file
6
content/5. Sessioner/2024/Untitled.md
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
|
||||
title: 2024-05-16
|
||||
---
|
||||
|
||||
|
||||
|
|
@ -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?")
|
||||
Loading…
Reference in a new issue