From 9eec83843e6d14bf724abf05430f2f5a2a564b6b Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 1 Dec 2021 16:24:55 -0500 Subject: fix(gs/emacs): Fix title of clocked-in task For the i3 status bar - this API changed to return a list recently, which is super frustrating Change-Id: Ib921b6431331c766b67ea5053f2d9f3d86cf54b4 --- users/grfn/emacs.d/org-query.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'users') 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))) "")) -- cgit 1.4.1