Natural Language Date to not reevaluate, or to reevaluate based on date I pass #1035
Replies: 1 comment
-
Thank you for the suggestion. Tasks doesn't track when tasks code blocks were created, so your last option is the one that would have the best change of working:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have many queries that use the natural language for dates, but I want to keep the context of when the file was created for those queries. So if I created a note on 2022-08-16, and I have the query, "tasks (not done) AND (starts on last saturday)", when I look back on that note a week later (2022-08-23), then "last saturday" evaluates as 2022-08-13 like it did when I created the note, instead of 2022-08-20.
So instead of always using the current day as the reference day for evaluation, being able to pass in an optional parameter of a date so the natural language can evaluate based on the date I pass it. e.g. "tasks (not done) AND (starts on last saturday 2022-08-16)"
But really the query would look like "tasks (not done) AND (starts on last saturday {{date:YYYY-MM-DD}})" and the template would replace the date so nothing is hard coded.
Hopefully I have given enough context.
Beta Was this translation helpful? Give feedback.
All reactions