This commit is contained in:
Akira Komamura 2022-12-17 23:56:18 +01:00 committed by GitHub
commit cafd1bb69e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -883,6 +883,12 @@ return an empty string."
(habit-property (org-with-point-at (org-element-property :begin element) (habit-property (org-with-point-at (org-element-property :begin element)
(when (org-is-habit-p) (when (org-is-habit-p)
(org-habit-parse-todo)))) (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) (due-string (pcase (org-element-property :relative-due-date element)
('nil "") ('nil "")
(string (format " %s " (org-add-props string nil 'face 'org-ql-view-due-date))))) (string (format " %s " (org-add-props string nil 'face 'org-ql-view-due-date)))))
@ -892,6 +898,11 @@ return an empty string."
(--> string (--> string
;; FIXME: Use proper prefix ;; FIXME: Use proper prefix
(concat " " it) (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-add-props it properties
'org-agenda-type 'search 'org-agenda-type 'search
'todo-state todo-keyword 'todo-state todo-keyword