Obsidian/1000s Templates/This Past Week Template.md

29 lines
1.1 KiB
Markdown
Executable File

---
date: <% tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0] %>
modification date: <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>
tags: []
---
<< [[Weekly Note <% tp.date.now("YYYY-MM-DD", -7) %>]] | [[Weekly Note <% tp.date.now("YYYY-MM-DD", 7) %>]] >>
# This Week's Daily Notes
[[<% tp.date.now("YYYY-MM-DD", -7, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]]
[[<% tp.date.now("YYYY-MM-DD", -6, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]]
[[<% tp.date.now("YYYY-MM-DD", -5, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]]
[[<% tp.date.now("YYYY-MM-DD", -2, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]]
[[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]]
# Last Week's Plan
# Accomplishments
## Tasks and Notes From This Past Week
```dataview
TASK
where completed and completion >= this.date - dur(7 days)
group by file.link
sort file.date asc
```
## Papers read this past week
```dataview
table title as "Title", dateread as "Date Read"
where readstatus and dateread => this.date-dur(7)
```
# This Week's Plan