Skip to content

Commit

Permalink
Merge pull request #8 from mathisgauthey/recurring-tasks-issue
Browse files Browse the repository at this point in the history
Recurring tasks issue
  • Loading branch information
mathisgauthey authored Jan 9, 2024
2 parents 626edd2 + 4dbafd9 commit 16ce268
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 39 deletions.
19 changes: 12 additions & 7 deletions 5-Templates/Daily-Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
title: <% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>
date: <% moment(tp.file.creation_date()).format("YYYY-MM-DD HH:mm:ss") %>
lastmod: <% moment(tp.file.creation_date()).format("YYYY-MM-DD HH:mm:ss") %>
categories:
categories:
tags: daily-notes
aliases:
share: false
aliases:
share: false
---

# <% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>
Expand Down Expand Up @@ -44,17 +44,18 @@ tR += rightAngle;
> not done
> (happens on or before <% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>) OR (status.type is IN_PROGRESS)
> (heading does not include Focus) AND (heading does not include Goals)
> group by function (task.description.includes("[[")) ? '%%1%% Projects' : result = !task.isRecurring ? '%%2%% Tasks' : '%%3%% Recurring Tasks'
> group by function (task.isRecurring) ? '%%3%% Recurring Tasks' : result = task.description.includes("[[") ? '%%1%% Projects' : '%%2%% Tasks'
> ```
> [!IMPORTANT]+ Short Next Actions 🏃
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #next
> short mode
> group by function task.tags.filter( (tag) => tag.includes("#next") )
> short mode
> ```
## Notes 📝
Expand Down Expand Up @@ -114,6 +115,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #next
> group by function task.tags.filter( (tag) => ! tag.includes("#next") )
Expand All @@ -123,6 +125,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -135,6 +138,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #waiting
> group by filename
Expand All @@ -144,6 +148,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #delegated
> group by filename
Expand All @@ -153,6 +158,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> (path includes -Daily-Notes) OR (path includes -Periodic-Notes)
> (heading includes Focus) AND (heading includes Goals)
> group by function '%%' + (task.heading.includes("Yearly Focus 🔥 & Goals 🎯") ? "1" : task.heading.includes("Quarterly Focus 🔥 & Goals 🎯") ? "2" : task.heading.includes("Monthly Focus 🔥 & Goals 🎯") ? "3" : task.heading.includes("Weekly Focus 🔥 & Goals 🎯") ? "4" : task.heading.includes("Daily Focus 🔥 & Goals 🎯") ? "5" : "6") + '%%' + task.heading + " > " + task.file.filenameWithoutExtension + " > " + task.tags
Expand All @@ -164,6 +170,7 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> filename includes Passions Backlog 🎮
> heading includes Doing
> group by heading
Expand All @@ -175,7 +182,6 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> created on <% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>
> group by filename
Expand All @@ -185,7 +191,6 @@ filter: "#Inbox"
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> created on <% moment(tp.file.title, "YYYY-MM-DD").format("YYYY-MM-DD") %>
> group by filename
Expand Down
17 changes: 9 additions & 8 deletions 5-Templates/Monthly-Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #next
> group by function task.tags.filter( (tag) => ! tag.includes("#next") )
Expand All @@ -96,6 +97,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -108,6 +110,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #waiting
> group by filename
Expand All @@ -117,6 +120,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #delegated
> group by filename
Expand All @@ -126,6 +130,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> (path includes -Daily-Notes) OR (path includes -Periodic-Notes)
> (heading includes Focus) AND (heading includes Goals)
> group by function '%%' + (task.heading.includes("Yearly Focus 🔥 & Goals 🎯") ? "1" : task.heading.includes("Quarterly Focus 🔥 & Goals 🎯") ? "2" : task.heading.includes("Monthly Focus 🔥 & Goals 🎯") ? "3" : task.heading.includes("Weekly Focus 🔥 & Goals 🎯") ? "4" : task.heading.includes("Daily Focus 🔥 & Goals 🎯") ? "5" : "6") + '%%' + task.heading + " > " + task.file.filenameWithoutExtension + " > " + task.tags
Expand All @@ -137,6 +142,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -147,6 +153,7 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -156,16 +163,16 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
> [!INFO]+ Projects On Hold 🎯
>
> ```tasks
> description includes ]]
> status.type is NON_TASK
> description includes ]]
> group by filename
> ```
> [!INFO]+ Tasks On Hold ✅
>
> ```tasks
> description does not include ]]
> status.type is NON_TASK
> description does not include ]]
> group by filename
> ```
Expand All @@ -185,7 +192,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> path includes -Daily-Notes
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -198,7 +204,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> (path does not include -Daily-Notes) AND (path does not include -Periodic-Notes)
> filename does not include Passions Backlog 🎮
Expand All @@ -213,7 +218,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> created on <% moment(tp.file.title, "YYYY-MM").format("YYYY-MM") %>
> group by created
Expand All @@ -223,7 +227,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> created on <% moment(tp.file.title, "YYYY-MM").format("YYYY-MM") %>
> group by created
Expand All @@ -233,7 +236,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> description includes ]]
> is not recurring
> done in <% moment(tp.file.title, "YYYY-MM").format("YYYY-MM") %>
> group by done
> ```
Expand All @@ -242,7 +244,6 @@ await dv.view("_Scripts", {pages: "dv.pages().file.where(f => f.folder != '_Sour
>
> ```tasks
> description does not include ]]
> is not recurring
> done in <% moment(tp.file.title, "YYYY-MM").format("YYYY-MM") %>
> group by done
> ```
Expand Down
17 changes: 9 additions & 8 deletions 5-Templates/Quarterly-Notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #next
> group by function task.tags.filter( (tag) => ! tag.includes("#next") )
Expand All @@ -88,6 +89,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -100,6 +102,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #waiting
> group by filename
Expand All @@ -109,6 +112,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> tags include #delegated
> group by filename
Expand All @@ -118,6 +122,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> (path includes -Daily-Notes) OR (path includes -Periodic-Notes)
> (heading includes Focus) AND (heading includes Goals)
> group by function '%%' + (task.heading.includes("Yearly Focus 🔥 & Goals 🎯") ? "1" : task.heading.includes("Quarterly Focus 🔥 & Goals 🎯") ? "2" : task.heading.includes("Monthly Focus 🔥 & Goals 🎯") ? "3" : task.heading.includes("Weekly Focus 🔥 & Goals 🎯") ? "4" : task.heading.includes("Daily Focus 🔥 & Goals 🎯") ? "5" : "6") + '%%' + task.heading + " > " + task.file.filenameWithoutExtension + " > " + task.tags
Expand All @@ -129,6 +134,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -139,6 +145,7 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> filename does not include Passions Backlog 🎮
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -148,16 +155,16 @@ tR += rightAngle;
> [!INFO]+ Projects On Hold 🎯
>
> ```tasks
> description includes ]]
> status.type is NON_TASK
> description includes ]]
> group by filename
> ```
> [!INFO]+ Tasks On Hold ✅
>
> ```tasks
> description does not include ]]
> status.type is NON_TASK
> description does not include ]]
> group by filename
> ```
Expand All @@ -177,7 +184,6 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> path includes -Daily-Notes
> (heading does not include Focus) AND (heading does not include Goals)
Expand All @@ -190,7 +196,6 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> (path does not include -Daily-Notes) AND (path does not include -Periodic-Notes)
> filename does not include Passions Backlog 🎮
Expand All @@ -205,7 +210,6 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description includes ]]
> created on <% moment(tp.file.title, "YYYY-[Q]Q").format("YYYY-[Q]Q") %>
> group by created
Expand All @@ -215,7 +219,6 @@ tR += rightAngle;
>
> ```tasks
> not done
> is not recurring
> description does not include ]]
> created on <% moment(tp.file.title, "YYYY-[Q]Q").format("YYYY-[Q]Q") %>
> group by created
Expand All @@ -225,7 +228,6 @@ tR += rightAngle;
>
> ```tasks
> description includes ]]
> is not recurring
> done in <% moment(tp.file.title, "YYYY-[Q]Q").format("YYYY-[Q]Q") %>
> group by done
> ```
Expand All @@ -234,7 +236,6 @@ tR += rightAngle;
>
> ```tasks
> description does not include ]]
> is not recurring
> done in <% moment(tp.file.title, "YYYY-[Q]Q").format("YYYY-[Q]Q") %>
> group by done
> ```
Expand Down
Loading

0 comments on commit 16ce268

Please sign in to comment.