I’ve pieced together this query (kudos to @memeplex) for my default journal queries – and it almost perfectly works the way I’d like to:
{:title "🗓 Test"
:query [:find (pull ?h [*])
:in $ ?start ?next ?today
:where
[?h :block/marker ?marker]
[(contains? #{"LATER" "TODO"} ?marker)]
(or-join [?h ?d]
(and
(or [?h :block/ref-pages ?p] [?h :block/page ?p])
[?p :block/journal? true]
[?p :block/journal-day ?d])
[?h :block/scheduled ?d]
[?h :block/deadline ?d])
[(> ?d ?start)]
[(< ?d ?next)]
(not [(= ?d ?today)])]
:inputs [:730d-before :21d-after :today]
:collapsed? false}
The one thing I’d like to improve, though: Of course is catches tasks from today’s journal page, too—and so I’m seeing those twice.
Is there a simply/sane way to exclude just today’s journal page (but not references to it!) or only exclude tasks from today’s journal page?
Thanks!