-
Notifications
You must be signed in to change notification settings - Fork 260
/
journal-page-advanced-queries
53 lines (53 loc) · 1.24 KB
/
journal-page-advanced-queries
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
:default-queries
{:journals
[{:title [:b " 🕗 OVERDUE (past scheduled or deadline items not done)"]
:query [:find (pull ?b [*])
:in $ ?start ?end
:where
(or
[?b :block/scheduled ?d]
[?b :block/deadline ?d]
)
(not
[?b :block/marker ?marker]
[(contains? #{"DONE" "CANCELLED"} ?marker)]
)
[(>= ?d ?start)]
[(<= ?d ?end)]
]
:inputs [:1500d-before :today]
:collapsed? false}
{:title [:b "📅 NEXT (tasks scheduled within next 7 days)"]
:query [:find (pull ?b [*])
:in $ ?start ?end
:where
(or
[?b :block/scheduled ?d]
[?b :block/deadline ?d]
)
(not
[?b :block/marker ?marker]
[(contains? #{"DONE"} ?marker)]
)
[(>= ?d ?start)]
[(<= ?d ?end)]
]
:inputs [:today :7d-after]
:collapsed? false}
{:title [:b "🔭 HORIZON (Tasks scheduled for between a week and 3 months)"]
:query [:find (pull ?b [*])
:in $ ?start ?end
:where
(or
[?b :block/scheduled ?d]
[?b :block/deadline ?d]
)
(not
[?b :block/marker ?marker]
[(contains? #{"DONE"} ?marker)]
)
[(>= ?d ?start)]
[(<= ?d ?end)]
]
:inputs [:today/+7d :today/+90d]
:collapsed? false}]}