fix: use ast blocks for simple queries conversions

Fixes cases where {{query nested in BEGIN_* blocks were incorrectly
being converted to queries. Also made ast block handling faster
by only doing one prewalk and cleaned up handling of queries
This commit is contained in:
Gabriel Horner
2025-06-20 17:19:43 -04:00
committed by Tienson Qin
parent cc05518ea5
commit 58d3abbafb
2 changed files with 155 additions and 143 deletions

View File

@@ -51,4 +51,9 @@
[?p :block/name "project"]
[?b :block/refs ?p]]}
#+END_QUERY
#+END_SRC
#+END_SRC
- Find the blocks containing `tag2` but not `tag1`
#+BEGIN_EXAMPLE
{{query (and [[tag2]] (not [[tag1]]))}}
#+END_EXAMPLE