Skip to content

Commit 7810f86

Browse files
committed
fix header line
1 parent e76e70e commit 7810f86

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

chatgpt.el

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ The data is consist of ROLE and CONTENT."
354354

355355
(defun chatgpt-input-header-line ()
356356
"The display for input header line."
357-
(format "Session: %s" (cdr chatgpt-input-instance)))
357+
(format " Session: %s" (cdr chatgpt-input-instance)))
358358

359359
(defvar chatgpt-input-mode-map
360360
(let ((map (make-sparse-keymap)))
@@ -423,9 +423,10 @@ The data is consist of ROLE and CONTENT."
423423

424424
(defun chatgpt-header-line ()
425425
"The display for header line."
426-
;; TODO: ..
427-
""
428-
)
426+
(format " Session: %s, History: %s, User: %s (M-x chatgpt-info)"
427+
(cdr chatgpt-instance)
428+
(length chatgpt-chat-history)
429+
(chatgpt-user)))
429430

430431
(defvar chatgpt-mode-map
431432
(let ((map (make-sparse-keymap)))

0 commit comments

Comments
 (0)