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

Hierarchy predicates not supported in non-sexp syntax #428

Open
Fuco1 opened this issue Jun 2, 2024 · 1 comment
Open

Hierarchy predicates not supported in non-sexp syntax #428

Fuco1 opened this issue Jun 2, 2024 · 1 comment
Assignees
Milestone

Comments

@Fuco1
Copy link

Fuco1 commented Jun 2, 2024

OS/platform

Linux

Emacs version and provenance

28.2, self compiled, no special distribution

Emacs command

emacs

Org version and provenance

9.6.1, straight.el

org-ql package version and provenance

latest commit straight from git

Actions taken

Trying to filter nodes with ancestors containing "hello" in the headline

(org-ql--query-string-to-sexp "ancestors:query=h:hello")
(org-ql--query-string-to-sexp "ancestors:h:hello")
(org-ql--query-string-to-sexp "ancestors:(h:hello)")

Observed results

None of the queries I constructed in analogy with the readme works.

Expected results

I want to use the "line syntax" with nested queries somehow

Backtrace

No error

Etc.

No response

@alphapapa
Copy link
Owner

Yes, this is simply not supported yet, as the non-sexp parser is too naive to handle nested queries. See #251, which would probably enable that with a bit more work. I intend to merge it eventually, but my time for big issues in my Emacs projects is limited right now.

@alphapapa alphapapa added this to the Future milestone Jun 2, 2024
@alphapapa alphapapa self-assigned this Jun 2, 2024
@alphapapa alphapapa changed the title Hierarchy filters not translated properly to sexp syntax Hierarchy predicates not supported in non-sexp syntax Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants