Obsidian/Templates/Daily Note Template.md

50 lines
1.4 KiB
Markdown
Executable File

---
date: <% tp.file.title %>
tags:
---
# Yesterday | Tomorrow
<< [[1 Daily Notes/2024/11 November/<%*if (tp.date.weekday("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") == tp.file.title) { tR += tp.date.now("YYYY-MM-DD", -3, tp.file.title, "YYYY-MM-DD"); } else { tR += tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD");} %>]] | [[1 Daily Notes/2024/11 November/<%*if (tp.date.weekday("YYYY-MM-DD", 5, tp.file.title, "YYYY-MM-DD") == tp.file.title) { tR += tp.date.now("YYYY-MM-DD", +3, tp.file.title, "YYYY-MM-DD"); } else { tR += tp.date.now("YYYY-MM-DD", +1, tp.file.title, "YYYY-MM-DD");} %> ]] >>
# This Week's Weekly Note
[[ Weekly Note <%*if (tp.date.weekday("YYYY-MM-DD", 3, tp.file.title, "YYYY-MM-DD") >= tp.file.title) {tR += tp.date.weekday("YYYY-MM-DD", -4, tp.file.title, "YYYY-MM-DD"); } else {tR += tp.date.weekday("YYYY-MM-DD", 3, tp.file.title, "YYYY-MM-DD"); } %>]]
# Tasks for today
## Due
```dataview
task
where
due <= date(this.date)
and due
and !completed
and status != "-"
sort due asc
group by file.folder
```
## Scheduled
```dataview
task
where
scheduled
and scheduled <= date(this.date)
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
```
## Completed
```dataview
task
where
completed
and completion = date(this.date)
sort due asc
group by file.folder
```
# Calendar Tasks