about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-01T21·24-0500
committerGriffin Smith <grfn@gws.fyi>2021-12-03T17·23-0500
commit9eec83843e6d14bf724abf05430f2f5a2a564b6b (patch)
tree20afd6813ad861852f7bcb03dc57e2f6856cdb2b
parent4adab5f7b9f46f05ac0a02694be0abee85b178c5 (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
-rw-r--r--users/grfn/emacs.d/org-query.el6
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 e659e02c8b..9dcdeeba12 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)))
     ""))