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

80 lines
2.0 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: []
---
<< [[2 Cole Group Meeting Notes/Weekly Note <% tp.date.now("YYYY-MM-DD", -7, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]] | [[2 Cole Group Meeting Notes/Weekly Note <% tp.date.now("YYYY-MM-DD", 7, tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0], "YYYY-MM-DD") %>]] >>
# 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
## Remarks
## Tasks and Notes From This Past Week
```dataview
TASK
where completed
and completion >= this.date - dur(7 days)
and completion <= this.date
group by file.folder
sort completion 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
## Remarks
## Tasks This Next Week
### Tasks Overdue
```dataview
task
where
due <= date(this.date)
and due
and !completed
and status != "-"
sort due asc
group by file.folder
```
### Tasks Due this Week
```dataview
task
where
due >= this.date
and due <= this.date + dur(7 days)
and due
and !completed
and status != "-"
sort due asc
group by file.folder
```
### Tasks in Progress
```dataview
task
where
status != "-"
and status = "/"
sort due asc
group by file.folder
```
### Tasks Scheduled
```dataview
task
where
scheduled
and scheduled >= this.date
and scheduled <= this.date + dur(7 days)
and due > this.date +dur(7 days)
and !completed
and status != "-"
sort due asc
group by file.folder
```