diff options
author | Griffin Smith <grfn@gws.fyi> | 2021-12-01T21·24-0500 |
---|---|---|
committer | Griffin Smith <grfn@gws.fyi> | 2021-12-03T17·23-0500 |
commit | 9eec83843e6d14bf724abf05430f2f5a2a564b6b (patch) | |
tree | 20afd6813ad861852f7bcb03dc57e2f6856cdb2b /users/grfn/emacs.d | |
parent | 4adab5f7b9f46f05ac0a02694be0abee85b178c5 (diff) |
fix(gs/emacs): Fix title of clocked-in task r/3139
For the i3 status bar - this API changed to return a list recently, which is super frustrating Change-Id: Ib921b6431331c766b67ea5053f2d9f3d86cf54b4
Diffstat (limited to 'users/grfn/emacs.d')
-rw-r--r-- | users/grfn/emacs.d/org-query.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/users/grfn/emacs.d/org-query.el b/users/grfn/emacs.d/org-query.el index e659e02c8b59..9dcdeeba12d7 100644 --- a/users/grfn/emacs.d/org-query.el +++ b/users/grfn/emacs.d/org-query.el @@ -86,7 +86,11 @@ (defun grfn/org-current-clocked-in-task-message () (if (org-clocking-p) (format "(%s) [%s]" - (org-element-property :title (grfn/org-element-clocked-in-task)) + (->> (grfn/org-element-clocked-in-task) + (org-element-property :title) + (car) + (substring-no-properties) + (s-trim)) (grfn/minutes->hours:minutes (org-clock-get-clocked-time))) "")) |