Do not backlinks in checklists when scheduled in the future
Items scheduled in the future are generally ignored, so let's do this in checklists as well.
This commit is contained in:
parent
6f32e362a9
commit
d8c8e2b272
|
@ -888,14 +888,15 @@ otherwise."
|
||||||
(let ((parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)
|
(let ((parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)
|
||||||
(string-to-number it))))
|
(string-to-number it))))
|
||||||
|
|
||||||
(insert (format "\nBacklinks (not DONE, no TEMPLATE, %s, no archives):\n\n"
|
(insert (format "\nBacklinks (not DONE, no TEMPLATE, %s, no archives, not scheduled in the future):\n\n"
|
||||||
(if parent-depth
|
(if parent-depth
|
||||||
(format "parent-depth %d" parent-depth)
|
(format "parent-depth %d" parent-depth)
|
||||||
"all parents")))
|
"all parents")))
|
||||||
(org-dblock-write:db/org-backlinks (list
|
(org-dblock-write:db/org-backlinks (list
|
||||||
:org-ql-match '(and
|
:org-ql-match '(and
|
||||||
(not (done))
|
(not (done))
|
||||||
(not (ltags "TEMPLATE")))
|
(not (ltags "TEMPLATE"))
|
||||||
|
(not (scheduled :from 1)))
|
||||||
:parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)
|
:parent-depth (--when-let (org-entry-get (point) "CHECKLIST_BACKLINK_DEPTH" nil)
|
||||||
(string-to-number it))
|
(string-to-number it))
|
||||||
:archive nil)))
|
:archive nil)))
|
||||||
|
|
Loading…
Reference in New Issue