Ignore SOMEWHEN items in checklist backlinks

Since these are deferred items, they don't have to show up in checklists.
This commit is contained in:
Daniel Borchmann 2024-08-25 09:07:46 +02:00
parent d01b3bdc09
commit 75b54128bd
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -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)