Skip to content

Commit b7fc664

Browse files
committed
Change: Dim blocked tasks in org-ql-view
1 parent 8342656 commit b7fc664

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

org-ql-view.el

+11
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,12 @@ return an empty string."
881881
(habit-property (org-with-point-at (org-element-property :begin element)
882882
(when (org-is-habit-p)
883883
(org-habit-parse-todo))))
884+
(blocked (when-let ((marker (or (org-element-property :org-hd-marker element)
885+
(org-element-property :org-marker element))))
886+
(when org-agenda-dim-blocked-tasks
887+
(org-with-point-at marker
888+
(when (org-entry-blocked-p)
889+
org-agenda-dim-blocked-tasks)))))
884890
(due-string (pcase (org-element-property :relative-due-date element)
885891
('nil "")
886892
(string (format " %s " (org-add-props string nil 'face 'org-ql-view-due-date)))))
@@ -890,6 +896,11 @@ return an empty string."
890896
(--> string
891897
;; FIXME: Use proper prefix
892898
(concat " " it)
899+
(if blocked
900+
(org-add-props it nil
901+
'org-filter-type 'todo-blocked
902+
'org-todo-blocked blocked)
903+
it)
893904
(org-add-props it properties
894905
'org-agenda-type 'search
895906
'todo-state todo-keyword

0 commit comments

Comments
 (0)