vault backup: 2026-04-18 01:28:21

This commit is contained in:
2026-04-18 01:28:22 -04:00
parent cade76bc24
commit 0743e6f194
352 changed files with 1885 additions and 1251 deletions
+12 -10
View File
@@ -1,14 +1,16 @@
---
id: {{date:YYYY-MM-DD}}
id: <% tp.file.title %>
aliases: []
title: {{date:YYYY-MM-DD}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
weekly: "[[<% moment(tp.file.title, 'YYYY-MM-DD').format('gggg[w]ww') %>]]"
monthly: "[[<% moment(tp.file.title, 'YYYY-MM-DD').format('YYYY-MM') %>]]"
quarterly: "[[<% moment(tp.file.title, 'YYYY-MM-DD').format('YYYY[q]Q') %>]]"
previous: "[[<% moment(tp.file.title, 'YYYY-MM-DD').subtract(1,'days').format('YYYY-MM-DD') %>]]"
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
weekly: "[[{{date:gggg[w]ww}}]]"
monthly: "[[{{date:YYYY-MM}}]]"
quarterly: "[[{{date:YYYY[q]Q}}]]"
yearly: "[[{{date:YYYY}}]]"
---
# {{date:YYYY-MM-DD}}
# <% tp.file.title %>
<%*
// ensure monthly note
await tp.user.ensure_exists(tp, "monthly", tp.file.title.slice(0, 7), false, "periodic/monthly")
%>
+31
View File
@@ -0,0 +1,31 @@
<%*
const title = tp.file.title
if (tp.file.content !== "") {
// if file already had content, do nothing
}
else if (/^20\d\d-[01]\d-[0-3]\d$/.test(title)) {
const file = tp.file.find_tfile(tp.file.path(true));
await tp.app.vault.delete(file);
await tp.file.create_new(tp.file.find_tfile("daily"), title, true, "periodic/daily");
}
else if (/^20\d\dw[0-5]\d$/.test(title)) {
const file = tp.file.find_tfile(tp.file.path(true));
await tp.app.vault.delete(file);
await tp.file.create_new(tp.file.find_tfile("weekly"), title, true, "periodic/weekly");
}
else if (/^20\d\d-[01]\d$/.test(title)) {
const file = tp.file.find_tfile(tp.file.path(true));
await tp.app.vault.delete(file);
await tp.file.create_new(tp.file.find_tfile("monthly"), title, true, "periodic/monthly");
}
else if (/^20\d\dq[1-4]$/.test(title)) {
const file = tp.file.find_tfile(tp.file.path(true));
await tp.app.vault.delete(file);
await tp.file.create_new(tp.file.find_tfile("quarterly"), title, true, "periodic/quarterly");
}
else if (/^20\d\d$/.test(title)) {
const file = tp.file.find_tfile(tp.file.path(true));
await tp.app.vault.delete(file);
await tp.file.create_new(tp.file.find_tfile("yearly"), title, true, "periodic/yearly");
}
%>
-12
View File
@@ -1,12 +0,0 @@
---
id:
aliases: []
title: ""
tags:
- destiny/fleeting
- topic/meta
- type/task
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
dg-publish: true
---
#
+11 -7
View File
@@ -1,11 +1,15 @@
---
id: {{date:YYYY-MM}}
id:
aliases: []
title: {{date:YYYY-MM}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
yearly: "[[<% tp.file.title.slice(0, 4) %>]]"
previous: "[[<% moment(tp.file.title, 'YYYY-MM').subtract(1,'months').format('YYYY-MM') %>]]"
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
yearly: "[[{{date:YYYY}}]]"
---
# {{date:YYYY-MM}}
# <% tp.file.title %>
<%*
// ensure yearly note
// app.vault.create("periodic/yearly/" + tp.file.title.slice(0, 4) + ".md", "")
await tp.user.ensure_exists(tp, "yearly", tp.file.title.slice(0, 4), false, "periodic/yearly")
%>
-12
View File
@@ -1,12 +0,0 @@
---
id:
aliases:
- nec-???
title: ""
tags:
- authorship/other
- exclude-from-word-count
- topic/construction/electrical
- type/media/reference
dg-publish: false
---
-3
View File
@@ -1,3 +0,0 @@
---
id: <% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>
---
+6 -7
View File
@@ -1,11 +1,10 @@
---
id: "{{date:YYYY[q]Q}}"
id:
aliases: []
title: {{date:YYYY[q]Q}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
yearly: "[[<% tp.file.title.slice(0, 4) %>]]"
previous: "[[<% moment(tp.file.title, 'YYYY[q]Q').subtract(1,'quarters').format('YYYY[q]Q') %>]]"
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
yearly: "[[{{date:YYYY}}]]"
---
# {{date:YYYY[q]Q}}
# <% tp.file.title %>
-11
View File
@@ -1,11 +0,0 @@
---
id:
aliases: []
title:
tags:
- status/draft
- topic/hobbies/cooking
- type/recipe
dg-publish: true
---
#
View File
+10 -11
View File
@@ -1,15 +1,14 @@
---
id: {{date:YYYY-MM-DDTHH:mm:ssZZ}}
id: <% tp.file.title %>
aliases: []
title: {{date:YYYY-MM-DD HH:mm:ss}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
daily: "[[{{date:YYYY-MM-DD}}]]"
weekly: "[[{{date:gggg[w]ww}}]]"
monthly: "[[{{date:YYYY-MM}}]]"
quarterly: "[[{{date:YYYY[q]Q}}]]"
yearly: "[[{{date:YYYY}}]]"
daily: "[[<% tp.file.title.slice(0, 10) %>]]"
---
# {{date:YYYY-MM-DD HH:mm:ss}}
# <% tp.file.title %>
<%*
// ensure daily note
// await tp.file.create_new(tp.file.find_tfile("daily"), tp.file.title.slice(0, 10), true, "periodic/daily")
await tp.user.ensure_exists(tp, "daily", tp.file.title.slice(0, 10), false, "periodic/daily")
%>
+6 -7
View File
@@ -1,11 +1,10 @@
---
id: {{date:gggg[w]ww}}
id:
aliases: []
title: {{date:gggg[w]ww}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
yearly: "[[<% tp.file.title.slice(0, 4) %>]]"
previous: "[[<% moment(tp.file.title, 'gggg[w]ww').subtract(1,'weeks').format('gggg[w]ww') %>]]"
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
yearly: "[[{{date:YYYY}}]]"
---
# {{date:gggg[w]ww}}
# <% tp.file.title %>
+5 -6
View File
@@ -1,10 +1,9 @@
---
id: {{date:YYYY}}
id:
aliases: []
title: {{date:YYYY}}
tags:
- status/draft
title: <% tp.file.title %>
tags: []
previous: "[[<% moment(tp.file.title, 'YYYY').subtract(1,'years').format('YYYY') %>]]"
dg-publish: true
date-created: {{date:YYYY-MM-DDTHH:mm:ssZ}}
---
# {{date:YYYY}}
# <% tp.file.title %>