|
|
@ -81,7 +81,7 @@
|
|
|
|
;; the 'scheduled tasks and deadlines' query.
|
|
|
|
;; the 'scheduled tasks and deadlines' query.
|
|
|
|
;; Example usage:
|
|
|
|
;; Example usage:
|
|
|
|
;; Display all scheduled and deadline blocks for the next 14 days:
|
|
|
|
;; Display all scheduled and deadline blocks for the next 14 days:
|
|
|
|
;; :scheduled/future-days 14
|
|
|
|
:scheduled/future-days 14
|
|
|
|
;; Default value: 7
|
|
|
|
;; Default value: 7
|
|
|
|
;; :scheduled/future-days 7
|
|
|
|
;; :scheduled/future-days 7
|
|
|
|
|
|
|
|
|
|
|
@ -208,12 +208,12 @@
|
|
|
|
;; The "NEXT" query returns tasks with "NOW", "LATER", or "TODO" status.
|
|
|
|
;; The "NEXT" query returns tasks with "NOW", "LATER", or "TODO" status.
|
|
|
|
:default-queries
|
|
|
|
:default-queries
|
|
|
|
{:journals
|
|
|
|
{:journals
|
|
|
|
[{:title "🔨 NOW"
|
|
|
|
[{:title "🔨 COMMING UP"
|
|
|
|
:query [:find (pull ?h [*])
|
|
|
|
:query [:find (pull ?h [*])
|
|
|
|
:in $ ?start ?today
|
|
|
|
:in $ ?start ?today
|
|
|
|
:where
|
|
|
|
:where
|
|
|
|
[?h :block/marker ?marker]
|
|
|
|
[?h :block/marker ?marker]
|
|
|
|
[(contains? #{"NOW" "DOING"} ?marker)]
|
|
|
|
[(contains? #{"TODO" "DOING"} ?marker)]
|
|
|
|
[?h :block/page ?p]
|
|
|
|
[?h :block/page ?p]
|
|
|
|
[?p :block/journal? true]
|
|
|
|
[?p :block/journal? true]
|
|
|
|
[?p :block/journal-day ?d]
|
|
|
|
[?p :block/journal-day ?d]
|
|
|
@ -223,8 +223,25 @@
|
|
|
|
:result-transform (fn [result]
|
|
|
|
:result-transform (fn [result]
|
|
|
|
(sort-by (fn [h]
|
|
|
|
(sort-by (fn [h]
|
|
|
|
(get h :block/priority "Z")) result))
|
|
|
|
(get h :block/priority "Z")) result))
|
|
|
|
:group-by-page? false
|
|
|
|
:group-by-page? true
|
|
|
|
:collapsed? false}
|
|
|
|
:collapsed? false}
|
|
|
|
|
|
|
|
{:title "🗄️ Forgotten"
|
|
|
|
|
|
|
|
:query [:find (pull ?h [*])
|
|
|
|
|
|
|
|
:in $ ?start ?next
|
|
|
|
|
|
|
|
:where
|
|
|
|
|
|
|
|
[?h :block/marker ?marker]
|
|
|
|
|
|
|
|
[?h :block/page ?p]
|
|
|
|
|
|
|
|
[?p :page/journal? true]
|
|
|
|
|
|
|
|
[?p :page/journal-day ?d]
|
|
|
|
|
|
|
|
[(> ?d ?start)]
|
|
|
|
|
|
|
|
[(< ?d ?next)]
|
|
|
|
|
|
|
|
[(contains? #{"NOW" "DOING" "LATER" "TODO"} ?marker)]]
|
|
|
|
|
|
|
|
:inputs [:365d :14d]
|
|
|
|
|
|
|
|
:result-transform (fn [result]
|
|
|
|
|
|
|
|
(sort-by (fn [h]
|
|
|
|
|
|
|
|
(get h :block/priority "Z")) result))
|
|
|
|
|
|
|
|
:collapsed? true}
|
|
|
|
|
|
|
|
|
|
|
|
{:title "📅 NEXT"
|
|
|
|
{:title "📅 NEXT"
|
|
|
|
:query [:find (pull ?h [*])
|
|
|
|
:query [:find (pull ?h [*])
|
|
|
|
:in $ ?start ?next
|
|
|
|
:in $ ?start ?next
|
|
|
@ -238,7 +255,7 @@
|
|
|
|
[(< ?d ?next)]]
|
|
|
|
[(< ?d ?next)]]
|
|
|
|
:inputs [:today :7d-after]
|
|
|
|
:inputs [:today :7d-after]
|
|
|
|
:group-by-page? false
|
|
|
|
:group-by-page? false
|
|
|
|
:collapsed? false}]}
|
|
|
|
:collapsed? true}]}
|
|
|
|
|
|
|
|
|
|
|
|
;; Add custom commands to the command palette
|
|
|
|
;; Add custom commands to the command palette
|
|
|
|
;; Example usage:
|
|
|
|
;; Example usage:
|