Do not include TEMPLATE in inserted checklists

References to item at point contained in templates are usually not meant to be
considered manually, but just to automatically insert backreferences.
This commit is contained in:
Daniel Borchmann 2022-10-09 11:36:43 +02:00
parent 754e22dc77
commit 0c84493abc
No known key found for this signature in database
GPG Key ID: 784AA8DF0CCDF625

View File

@ -876,8 +876,10 @@ barf otherwise."
(unless template-pom (unless template-pom
(user-error "Cannot find template via TEMPLATE_ID property or top-most sibling")) (user-error "Cannot find template via TEMPLATE_ID property or top-most sibling"))
(insert "\nBacklinks (not DONE, all parents, no archives):\n\n") (insert "\nBacklinks (not DONE, no TEMPLATE, all parents, no archives):\n\n")
(org-dblock-write:db/org-backlinks '(:org-ql-match (not (done)) (org-dblock-write:db/org-backlinks '(:org-ql-match (and
(not (done))
(not (ltags "TEMPLATE")))
:parent-depth nil :parent-depth nil
:archive nil)) :archive nil))
(insert "\n\nTemplate:\n") (insert "\n\nTemplate:\n")