journal query for "last calendar week"?
Most of the examples use `:7d` and the like, but I'm looking for a "review last week" query that works any day of this week and gets the same pages. Apparently logseq has a mix of locally interpreted syntax and feeding things to npm chrono-node but I haven't found a thorough grammar for either, or a way to test time expressions...
Posted Nov 10, 2022, 3:42 PM UTC
21
Ok, looks like
chrono.parseDateis only used indate/nld-parsewhich only gets used intemplate/resolve-dynamic-template!but that's used in a few query-related places, so that part seems plausible. (main/frontend/db/query_dsl.cljshas the explicit y/m/d/h/n parsing, plus now/today/yesterday/tomorrow, plus some(between created_atexamples I haven't seen before... ah perhaps that's because they don't work yet https://github.com/logseq/logseq/issues/3194 .) Still digging, nothing productive though.