You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a useful feature to many users, but supporting special features like that makes the code complicated, which is one of the reasons I started this project, to avoid such complexity and special cases.
Probably the more "idiomatic" way to do such a thing in this package would be to use the from/to arguments to the ts predicate appropriately. That is, generate the timestamps for the range you want, including any extension past midnight, and make a query sexp using them. You could write a function that returns such a sexp and use its value as an argument to org-ql functions, or in another query sexp.
I've changed my mind about this. I still want to limit the number of such options added to org-ql, but this one in particular is very useful. If it were implemented, it would mean a query like (scheduled :to today) would work as intended with the value of org-extend-today-until, rather than the user having to change the query after midnight.
I'm not sure of the best way to support this feature yet, but I do want to (selfishly, because I find myself using the option now sometimes).
alphapapa
changed the title
extended "today"
Support for org-extend-today-until in time-based predicates
Apr 12, 2024
alphapapa
changed the title
Support for org-extend-today-until in time-based predicates
Support for org-extend-today-until in time-based and planning predicates
Apr 12, 2024
Currently,
today
is time from 00:00 to 23:59, but I consider "today" to be finished when I go to sleep which happens at 1-2:00AM.It'd be great to make
today
make use oforg-extend-today-until
or add it as another predicate.Is there a workaround I can use until there is a solution in org-ql itself?
The text was updated successfully, but these errors were encountered: