From c4c861de2e8190bcfc44bd78896b96083b8451e4 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Mon, 19 Aug 2019 03:22:18 -0500 Subject: [PATCH] Docs: Update example --- README.org | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.org b/README.org index 3492280..dfc2f16 100644 --- a/README.org +++ b/README.org @@ -75,12 +75,13 @@ More examples are available in [[examples.org]]. (priority "A"))) (agenda))))) - ;; Show a "stuck projects" view: tasks that are not done and have only - ;; non-task children. + ;; Show a GTD-style "stuck projects" view: PROJECT tasks that have no + ;; 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) - '(and (todo) - (children) - (not (children (todo)))) + '(and (todo "PROJECT") + (not (descendants (todo "NEXT")))) :title "Stuck Projects") #+END_SRC