How create :default-queries that get all blocks that has `#discuss` and mention the same date in journauls

Welcome.

  • :default-queries are shown in today’s journal page.
  • For other pages, should create separate queries
    • like this one:
      #+BEGIN_QUERY
      {
       :query [:find (pull ?b [*])
         :in $ ?current-name
         :where
           [?current-page :page/name ?current-name]
           [?discuss :page/name "discuss"]
           [?b :block/refs ?current-page]
           [?b :block/refs ?discuss]
       ]
       :inputs [:current-page]
      } 
      #+END_QUERY
      
    • but prefer using The contextual sidebar: query current page …