Advertisement
Guest User

Untitled

a guest
Feb 21st, 2025
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1.  
  2. :default-queries {:journals [
  3. ;; Daily Tasks Query (Recurring Tasks)
  4. {
  5. :title "Daily Tasks"
  6. :query [:find (pull ?b [*])
  7. :where
  8. [?b :block/marker ?marker]
  9. [(contains? #{"TODO" "DOING"} ?marker)]
  10. [?b :block/tags ?tag]
  11. [(contains? ?tag "Daily")]]
  12. }
  13.  
  14. ;; Today's Tasks Query
  15. {
  16. :title "Today's Tasks"
  17. :query [:find (pull ?b [*])
  18. :where
  19. [?b :block/marker ?marker]
  20. [(contains? #{"TODO" "DOING"} ?marker)]
  21. [?b :block/tags ?tag]
  22. [(contains? ?tag "Today")]]
  23. }
  24.  
  25. ;; Overdue Tasks Query
  26. {
  27. :title "Overdue Tasks"
  28. :query [:find (pull ?b [*])
  29. :where
  30. [?b :block/marker ?marker]
  31. [(contains? #{"TODO" "DOING"} ?marker)]
  32. [?b :block/deadline ?d]
  33. [(< ?d (today))]]
  34. :collapsed? true
  35. }
  36. ]}
  37.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement