|
|
|
@ -529,6 +529,12 @@ float"
|
|
|
|
'face 'tacc-graph-void)
|
|
|
|
'face 'tacc-graph-void)
|
|
|
|
" \n")))
|
|
|
|
" \n")))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defun tacc-tag-render (tag)
|
|
|
|
|
|
|
|
(concat " Tag: "
|
|
|
|
|
|
|
|
(propertize (if (string= tag "") "<None>" .tag)
|
|
|
|
|
|
|
|
'face 'tacc-tag)
|
|
|
|
|
|
|
|
"\n"))
|
|
|
|
|
|
|
|
|
|
|
|
(defun tacc-timer-buffer-update (state start-ts est-ts countdown now)
|
|
|
|
(defun tacc-timer-buffer-update (state start-ts est-ts countdown now)
|
|
|
|
"Update the timer buffer rendering"
|
|
|
|
"Update the timer buffer rendering"
|
|
|
|
(tacc-render-with-buffer
|
|
|
|
(tacc-render-with-buffer
|
|
|
|
@ -540,9 +546,7 @@ float"
|
|
|
|
.graph-start .graph-end
|
|
|
|
.graph-start .graph-end
|
|
|
|
(let-alist tacc-info
|
|
|
|
(let-alist tacc-info
|
|
|
|
(concat
|
|
|
|
(concat
|
|
|
|
" Tag: " (propertize (if (string= .tag "") "<None>" .tag)
|
|
|
|
(tacc-tag-render .tag)
|
|
|
|
'face 'tacc-tag)
|
|
|
|
|
|
|
|
"\n"
|
|
|
|
|
|
|
|
(let* ((end (if (> now est-ts) now est-ts))
|
|
|
|
(let* ((end (if (> now est-ts) now est-ts))
|
|
|
|
(total (- end .work-ts))
|
|
|
|
(total (- end .work-ts))
|
|
|
|
(work-prop (/ (- (if .break-ts .break-ts now) .work-ts) total))
|
|
|
|
(work-prop (/ (- (if .break-ts .break-ts now) .work-ts) total))
|
|
|
|
@ -555,7 +559,7 @@ float"
|
|
|
|
(save-restriction
|
|
|
|
(save-restriction
|
|
|
|
(narrow-to-region .graph-start .graph-start)
|
|
|
|
(narrow-to-region .graph-start .graph-start)
|
|
|
|
(goto-char (point-min))
|
|
|
|
(goto-char (point-min))
|
|
|
|
(insert (tacc-current-tag-render)
|
|
|
|
(insert (tacc-tag-render .tag)
|
|
|
|
(tacc-graph-bar-render width 0 0 1)
|
|
|
|
(tacc-graph-bar-render width 0 0 1)
|
|
|
|
"\n")
|
|
|
|
"\n")
|
|
|
|
(set-marker .graph-start (point-min))
|
|
|
|
(set-marker .graph-start (point-min))
|
|
|
|
|