Docs: Update example

This commit is contained in:
Adam Porter 2019-08-19 03:22:18 -05:00
parent 876f20a340
commit c4c861de2e

View file

@ -75,12 +75,13 @@ More examples are available in [[examples.org]].
(priority "A"))) (priority "A")))
(agenda))))) (agenda)))))
;; Show a "stuck projects" view: tasks that are not done and have only ;; Show a GTD-style "stuck projects" view: PROJECT tasks that have no
;; non-task children. ;; descendants with the NEXT keyword. If you use a "project" tag
;; instead of the to-do keyword, you could replace (todo "PROJECT")
;; with (tags "project").
(org-ql-search (org-agenda-files) (org-ql-search (org-agenda-files)
'(and (todo) '(and (todo "PROJECT")
(children) (not (descendants (todo "NEXT"))))
(not (children (todo))))
:title "Stuck Projects") :title "Stuck Projects")
#+END_SRC #+END_SRC