Initial commit

This commit is contained in:
2026-03-02 17:06:32 +00:00
commit 430dd71917
1190 changed files with 622790 additions and 0 deletions

48
.trash/2026-01-08 1619.md Normal file
View File

@@ -0,0 +1,48 @@
<%*
const fm = tp.frontmatter;
const created = fm.created || tp.file.creation_date("YYYY-MM-DD[T]HH:mm:ss");
let date = fm.date;
let scheduled = fm.scheduled;
let title = fm.title;
let time = time = String(created).substring(11,16);
if (!title){
title = await tp.system.prompt("Enter meeting title", time)
}
else{
title = fm.title
}
// If 'scheduled' is empty, trigger the prompt
if (!scheduled) {
if (date) {
// If we have a date but no scheduled time, suggest the date
date = await tp.system.prompt("Enter Scheduled Date", date);
time = await tp.system.prompt("Enter Scheduled Time", "00:00") + ":00";
scheduled = date + "T" + time
}
else {
// Otherwise suggest the full creation timestamp
date = String(created).substring(0,10);
date = await tp.system.prompt("Enter Scheduled Date", date);
time = await tp.system.prompt("Enter Scheduled Time", time) + ":00";
scheduled = date + "T" + time;
}
}
// Rename the file using the extracted date + current title
let HHmm = time.replace(/:/g, "").substring(0, 4);
await tp.file.rename(`${date} {HHmm} ${title}`);
-%>
---
date: <% date %>
created: <% created %>
scheduled: <% scheduled %>
up:
- "[[Meetings]]"
title:
org:
loc:
people:
topics:
---