org.el/org-scan-tags: Fix effort in tags agenda views
* lisp/org.el (org-scan-tags): Manually add effort and effort-minutes properties to be used by agenda.
This commit is contained in:
parent
801be9dcd0
commit
f2b52f411c
10
lisp/org.el
10
lisp/org.el
|
@ -11592,16 +11592,22 @@ headlines matching this string."
|
|||
(match-beginning 1) (match-end 1)))
|
||||
(org-show-context 'tags-tree))
|
||||
((eq action 'agenda)
|
||||
(let* ((effort (org-entry-get (point) org-effort-property))
|
||||
(effort-minutes (when effort (save-match-data (org-duration-to-minutes effort)))))
|
||||
(setq txt (org-agenda-format-item
|
||||
""
|
||||
(concat
|
||||
(if (eq org-tags-match-list-sublevels 'indented)
|
||||
(make-string (1- level) ?.) "")
|
||||
(org-get-heading))
|
||||
(org-add-props
|
||||
(org-get-heading)
|
||||
nil
|
||||
'effort effort
|
||||
'effort-minutes effort-minutes))
|
||||
(make-string level ?\s)
|
||||
category
|
||||
tags-list)
|
||||
priority (org-get-priority txt))
|
||||
priority (org-get-priority txt)))
|
||||
(goto-char (org-element-property :begin el))
|
||||
(setq marker (org-agenda-new-marker))
|
||||
(org-add-props txt props
|
||||
|
|
Loading…
Reference in New Issue