Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG?] Timestamp with interval are not included #300

Closed
Cletip opened this issue Sep 4, 2022 · 1 comment
Closed

[BUG?] Timestamp with interval are not included #300

Cletip opened this issue Sep 4, 2022 · 1 comment

Comments

@Cletip
Copy link

Cletip commented Sep 4, 2022

Hello,

Sorry, I can't think of a better title.
A better description would be: headings with an interval and not a specific date/time are not found with the "ts-a" predicate.

Step to reproduce and to better describe the problem: let these two elements (in a org agenda file)

* something 1
<2022-08-31 Wed 15:00-16:00>

* something 2
<2022-08-31 Wed 15:00>

Then, the following query: 

(org-ql-select (org-agenda-files)
    '(and
      (not (done))
      (ts-active :to today)
      )
    )

or with the org-ql-search command and the query
(and (not (done)) (ts-active :to today))

As you can see, only the heading with no interval is returned.

Thank you very much in advance for your answers

PS : don't hesitate to ask me more details, like my version of org-ql or something else

@alphapapa
Copy link
Owner

Hello,

FYI, AFAIK, in Org terms, a timestamp like <2022-08-31 Wed 15:00-16:00> includes a "range," not an "interval."

For more about this issue, please see #237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants