From 75b54128bd29101262dc3d9c05f25f8643152059 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 25 Aug 2024 09:07:46 +0200 Subject: [PATCH] Ignore SOMEWHEN items in checklist backlinks Since these are deferred items, they don't have to show up in checklists. --- site-lisp/db-org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/site-lisp/db-org.el b/site-lisp/db-org.el index 9895a18..1fbff47 100644 --- a/site-lisp/db-org.el +++ b/site-lisp/db-org.el @@ -1249,8 +1249,8 @@ Relevant backlinks are Org items and are determined as follows: `db/org-backlinks' dynamic block); - 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); + with TEMPLATE and must not be tagged with HOLD nor + SOMEWHEN (neither locally nor inherited); - the backlink item must not be scheduled in the future; @@ -1361,6 +1361,7 @@ inserting the checklist." (not (done)) (not (ltags "TEMPLATE")) (not (tags "HOLD")) + (not (tags "SOMEWHEN")) (not (scheduled :from 1)) (not (property "CHECKLIST_NO_BACKLINK" "t" :inherit nil))) :parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)