Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Part of my crazy daily template. It includes specific sections for some other days.

Plan

title: urgent
icon: fire
```dataview
TASK from "/" WHERE
    type = "project" AND
    ((▶️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)
AND ▶️ AND !completed)
    OR (▶️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ▶️ AND !completed) 
    OR (⏏️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed)
    OR (⏏️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed))
    AND 🏷 >= 42
	SORT completed asc, 🏷 DESC
	GROUP by file.name

<%* if (["Sat", "Sun"].includes(tp.date.now("ddd", 0, tp.config.active_file.basename, "YYYYMMDD"))) { -%>

title: top 3
icon: arrow-up
```dataview
TASK from "/" WHERE
    🏷 < 42 AND
    type = "project" AND org != "work" AND
    ((▶️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)
AND ▶️ AND !completed)
    OR (▶️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ▶️ AND !completed) 
    OR (⏏️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed)
    OR (⏏️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed))
	SORT completed asc, 🏷 DESC LIMIT 3
title: tasks
icon: list
```dataview
TASK from "/" WHERE
    type = "project"
    AND (org != "work") AND
    🏷 < 42 AND
    ((▶️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)
AND ▶️ AND !completed)
    OR (▶️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ▶️ AND !completed) 
    OR (⏏️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed)
    OR (⏏️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed))
    SORT completed asc, 🏷 DESC, prio desc, org desc
    GROUP by file.name

<%* } else { -%>

title: top 3
icon: arrow-up
```dataview
TASK from "/" WHERE
    🏷 < 42 AND
    type = "project" AND
    ((dateformat(date(now), "HH") < "17" AND org = "work") OR (org != "work")) AND
    ((▶️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)
AND ▶️ AND !completed)
    OR (▶️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ▶️ AND !completed) 
    OR (⏏️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed)
    OR (⏏️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed))
	SORT completed asc, 🏷 DESC, org DESC LIMIT 3
title: tasks
icon: list
```dataview
TASK from "/" WHERE
    type = "project" AND
    ((dateformat(date(now), "HH") < "17" AND org = "work") OR (org != "work")) AND
    🏷 < 42 AND
    ((▶️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)
AND ▶️ AND !completed)
    OR (▶️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ▶️ AND !completed) 
    OR (⏏️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed)
    OR (⏏️ < date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>) AND ⏏️ AND !completed))
    SORT completed asc, 🏷 DESC, prio desc, org desc
    GROUP by file.name

<%* } -%>

title: done
icon: checkmark
```dataview
TASK from "/" WHERE
    type = "project" AND
    ✔️ = date(<% tp.date.now("YYYY-MM-DD", 0, tp.config.active_file.basename, "YYYYMMDD") %>)

<% tp.file.include("[[Sunday-template]]") -%> <% tp.file.include("[[Saturday-template]]") -%> <% tp.file.include("[[Monday-template]]") -%> <% tp.file.include("[[Tuesday-template]]") -%> <% tp.file.include("[[Wednesday-template]]") -%> <% tp.file.include("[[Thursday-template]]") -%> <% tp.file.include("[[Specific-days-template]]") -%>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment