Show tasks in daily journal

There are default queries in config.edn that look like they show tasks flagged with NOW and LATER. However, it appears that they only show tasks that are entered on the current day. I would like to have queries that show all tasks flagged with NOW or the current date on any page in my vault to show up in this query on my daily journal page. Could someone help me with the syntax for a query to do this to replace the default one.

Thanks

try

{:title "🔨 NOW"
    :query [:find (pull ?h [*])
            :in $ ?start ?today
            :where
            [?h :block/marker ?marker]
            [?h :block/page ?p]
            [?p :page/journal? true]
            [?p :page/journal-day ?d]
            [(>= ?d ?start)]
            [(< ?d ?today)]
            [(contains? #{"NOW" "DOING"} ?marker)]]
    :inputs [:300d :today]
    :result-transform (fn [result]
                        (sort-by (fn [h]
                                   (get h :block/priority "Z")) result))
    :collapsed? false}

{{query (todo now)}}

1 Like