From 63eeefcb8e23e21636834b2d5033414737a76078 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Mon, 25 Mar 2024 17:48:50 +0100 Subject: [PATCH] Ignore backlink items tagged HOLD in default checklist Items tagged with HOLD should be ignored in normal processes and should thus not appear as backlinks. Items tagged WAIT are supposed to appear, though, and are not excluded from the list of relevant backlinks. --- site-lisp/db-org.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 067742c..4a1f613 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1135,8 +1135,9 @@ Relevant backlinks are Org items and are determined as follows: via an Org link using the id: link type (also see the `db/org-backlinks' dynamic block); -- the backlink item must not be done and must not be tagged with - TEMPLATE; +- the backlink item must not be done, must not be tagged locally + with TEMPLATE and must not be tagged with HOLD (neither locally + nor inherited); - the backlink item must not be scheduled in the future; @@ -1232,6 +1233,7 @@ inserting the checklist." :org-ql-match '(and (not (done)) (not (ltags "TEMPLATE")) + (not (tags "HOLD")) (not (scheduled :from 1)) (not (property "CHECKLIST_NO_BACKLINK" "t" :inherit nil))) :parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)