branch: externals/ellama
commit 7aed3de0bb22dc0e3fdddbb135bfb7d8249486b5
Author: Sergey Kostyaev <sskosty...@gmail.com>
Commit: Sergey Kostyaev <sskosty...@gmail.com>

    Add session line template customization
    
    Added `ellama-session-line-template` custom variable to allow users to 
customize
    the format of the current session line. Updated `ellama-session-line` 
function
    to use this template.
---
 README.org | 1 +
 ellama.el  | 7 ++++++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/README.org b/README.org
index 9c9fe8a4fe..8286e10d99 100644
--- a/README.org
+++ b/README.org
@@ -482,6 +482,7 @@ argument generated text string.
   within your ~user-emacs-directory~.
 - ~ellama-show-reasoning~: Show reasoning in separate buffer if enabled. 
Enabled by default.
 - ~ellama-reasoning-display-action-function~: Display action function for 
reasoning.
+- ~ellama-session-line-template~: Template for formatting the current session 
line.
 
 ** Minor modes
 
diff --git a/ellama.el b/ellama.el
index ae2e597bcf..eb442de36c 100644
--- a/ellama.el
+++ b/ellama.el
@@ -716,9 +716,14 @@ This filter contains only subset of markdown syntax to be 
good enough."
 
 (defvar ellama--current-session-id nil)
 
+(defcustom ellama-session-line-template " ellama session: %s"
+  "Template for formatting the current session line."
+  :type 'string
+  :group 'ellama)
+
 (defun ellama-session-line ()
   "Return current session id line."
-  (propertize (format " ellama session: %s"
+  (propertize (format ellama-session-line-template
                      (if ellama--current-session
                          (ellama-session-id ellama--current-session)
                        ellama--current-session-id))

Reply via email to