Skip to content

Plain query doesn't handle multiple conditions correctly #314

@akirak

Description

@akirak

Hello, I'm using org-ql-completing-read, but it doesn't seem to handle multiple conditions now.

Single condition seems to work:

ELISP> (org-ql--query-string-to-sexp "todo: ")
(todo)

However, if multiple conditions are specified in a plain query, all queries other than the first one become a rifle query with the first letter eliminated:

ELISP> (org-ql--query-string-to-sexp "todo: test")
(and
 (todo)
 (rifle "est"))
ELISP> (org-ql--query-string-to-sexp "todo: ts:on=today")
(and
 (todo)
 (rifle "s:on=today"))
ELISP> (org-ql--query-string-to-sexp "sample text")
(and
 (rifle "sample")
 (rifle "ext"))

It once behaved differently from this. Is this the current expected behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions