From 06ae1cf95aaee0c820dd25743ac3440ee790a9d7 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Tue, 28 Jun 2022 21:10:17 +0200 Subject: [PATCH] Add consistency block to search for TOPICs nested in non-TOPICs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TOPICs are “upward-inherited”, so a TOPIC can always only be part of a TOPIC itself. --- init.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 0bd25a1..7fa501e 100644 --- a/init.el +++ b/init.el @@ -1156,7 +1156,11 @@ respectively." ("C" "Checks" ((tags "TODO=\"\"-HOLD-SOMEWHEN-DATE-PERIODIC-NOTE-NOP-TOPIC-TEMPLATE-GOAL" - ((org-agenda-overriding-header "Goals (i.e., complex tasks) not marked with GOAL"))))) + ((org-agenda-overriding-header "Goals (i.e., complex tasks) not marked with GOAL"))) + (org-ql-block '(and (not (tags "TOPIC")) + (descendants (tags "TOPIC"))) + ((org-ql-block-header "Non-TOPIC items containing TOPICs") + (org-agenda-sorting-strategy nil))))) ("U" "Unsupervised (Waiting, Missed Appointments, Hold)" ((tags-todo "WAIT-HOLD-SOMEWHEN"