[Org] Show category instead of duration when reporting

This commit is contained in:
Daniel - 2017-12-02 21:17:07 +01:00
parent 1192dc2cb8
commit 24da327c2e
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 2 additions and 2 deletions

View File

@ -1063,14 +1063,14 @@ When not given, FILES defaults to `org-agenda-files."
(erase-buffer)
(org-mode)
(insert "|--|\n")
(insert "| Start | End | Duration | Task |\n")
(insert "| Category | Start | End | Task |\n")
(insert "|--|\n")
(dolist (entry timeline)
(cl-destructuring-bind (start end marker) entry
(insert (format "| %s | %s | %s min | %s |\n"
(org-entry-get marker "CATEGORY")
(format-time-string "%Y-%m-%d %H:%m" start)
(format-time-string "%Y-%m-%d %H:%m" end)
(floor (/ (- end start) 60))
(save-match-data
(let* ((heading (save-mark-and-excursion
(with-current-buffer (marker-buffer marker)