Function: eca-chat--task-format-task
eca-chat--task-format-task is a natively compiled function defined in
eca-chat.el.
Signature
(eca-chat--task-format-task TASK)
Documentation
Format a single TASK as a checkbox line string.
Source Code
;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat.el
(defun eca-chat--task-format-task (task)
"Format a single TASK as a checkbox line string."
(let* ((status (plist-get task :status))
(subject (plist-get task :subject))
(done (string= status "done"))
(in-progress (string= status "in-progress")))
(cond
(done
(propertize (format "- [x] %s" subject)
'font-lock-face 'eca-chat-task-done-face
'eca-chat-task task))
(in-progress
(propertize (format "- [ ] %s" subject)
'font-lock-face 'eca-chat-task-in-progress-face
'eca-chat-task task))
(t
(propertize (format "- [ ] %s" subject)
'eca-chat-task task)))))