branch: elpa/aidermacs
commit 7e83f6b335e7ad58ca7f6acfd917e57856df9d19
Author: Yikai Zhao <yi...@z1k.dev>
Commit: Matthew Zeng <matthew...@gmail.com>

    Show current running status in transient menu
---
 aidermacs.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/aidermacs.el b/aidermacs.el
index 210ae09dd28..995745003e6 100644
--- a/aidermacs.el
+++ b/aidermacs.el
@@ -195,7 +195,11 @@ This is the file name without path."
   "AI Pair Programming Interface."
   ["Aidermacs: AI Pair Programming"
    ["Core"
-    ("a" "Start/Open Session" aidermacs-run)
+    ("a" (lambda ()
+           (if (aidermacs--live-p (aidermacs-get-buffer-name))
+               (concat "Open Session " (propertize "(RUNNING)" 'face 'success))
+             (concat "Start Session " (propertize "(NOT RUNNING)" 'face 
'warning))))
+     aidermacs-run)
     ("." "Start in Current Dir" aidermacs-run-in-current-dir)
     (":" "Start in Chosen Dir" aidermacs-run-in-directory)
     ("l" "Clear Chat History" aidermacs-clear-chat-history)

Reply via email to