Queries relative to the current journal page

Feature: query data on journal page relative to the date of the journal page

Current query: {{query (and (between -1w today) (task done) )}}.
This query however would always return today’s date. If the query is run on yesterday’s journal page it is still calculated relative to today instead of yesterday.

Example use cases:

  • weekly review / task tracking: query all done tasks of last 7 days
  • learning: extract all blocks of the last 7 days tagged “today-i-learned”
  • reflection

There is already some great content referencing something similar, but I haven’t seen this in the feature requests yet, so I’ve made this official with this post.