org-ql/examples.org
2018-07-10 08:38:17 -05:00

693 B

Examples

Showing TO-READ entries containing the word "lisp"

This query would be difficult to write in a standard Org Agenda search, because it matches against a to-do keyword and a plain-text search. As described in the advanced searching tutorial, it would require using org-search-view with a query with specific regular expression syntax, like this:

  +lisp +{^\*+\s-+TO-READ\s-}

But with org-ql or org-agenda-ng, you would write:

  (org-agenda-ng
    (and (regexp "lisp")
         (todo "TO-READ")))