alphapapa / org-ql

A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.
GNU General Public License v3.0
1.35k stars 104 forks source link

"Bad timestamp" error while running org-ql-block with "planning" predicate. #343

Closed tenpast closed 1 year ago

tenpast commented 1 year ago

I have a recurring TODO which repeats every day, but only Monday through Friday. The way to achieve this was with:

SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))>

This does what I wanted. However, when adding an org-ql-block with a (not (planning)) selector, I receive the following error:

Bad timestamp '<%%(memq (calendar-day-of-week date) '(1 2 3 4 5))>'
Error was: (not an Org time string: <%%(memq (calendar-day-of-week date) '(1 2 3 4 5))>)

And the org-ql-block does not get created.

alphapapa commented 1 year ago

Hello,

Unfortunately diary sexp timestamps are not yet supported. Please see https://github.com/alphapapa/org-ql/issues/262