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

2.0 KiB
Executable File

date modification date tags
<% tp.file.title.match(/\d{4}-\d{2}-\d{2}/)[0] %> <% tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %>

<< 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

Tasks and Notes From This Past Week

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

table title as "Title", dateread as "Date Read"
where readstatus and dateread => this.date-dur(7)

This Week's Plan

Tasks This Next Week

Tasks Overdue

task
where 
	due <= date(this.date)
	and due
	and !completed
	and status != "-"
sort due asc
group by file.folder

Tasks Due this Week

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

task
where 
status != "-"
and status = "/"
sort due asc
group by file.folder

Tasks Scheduled

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