Skip to content

Commit

Permalink
Change: Dim blocked tasks in org-ql-view
Browse files Browse the repository at this point in the history
  • Loading branch information
akirak committed Jul 28, 2021
1 parent 8342656 commit 7ba309b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions org-ql-view.el
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,12 @@ return an empty string."
(habit-property (org-with-point-at (org-element-property :begin element)
(when (org-is-habit-p)
(org-habit-parse-todo))))
(blocked (when-let ((marker (or (org-element-property :org-hd-marker element)
(org-element-property :org-marker element))))
(when org-agenda-dim-blocked-tasks
(org-with-point-at marker
(when (org-entry-blocked-p)
org-agenda-dim-blocked-tasks)))))
(due-string (pcase (org-element-property :relative-due-date element)
('nil "")
(string (format " %s " (org-add-props string nil 'face 'org-ql-view-due-date)))))
Expand All @@ -890,6 +896,11 @@ return an empty string."
(--> string
;; FIXME: Use proper prefix
(concat " " it)
(if blocked
(org-add-props it nil
'org-filter-type 'todo-blocked
'org-todo-blocked blocked)
it)
(org-add-props it properties
'org-agenda-type 'search
'todo-state todo-keyword
Expand Down

0 comments on commit 7ba309b

Please sign in to comment.