Skip to content

Commit dc2dbdd

Browse files
committed
Fix eca-chat-rename from transient
1 parent fc09bb8 commit dc2dbdd

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

eca-chat.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,12 +2536,13 @@ if ARG is current prefix, ask for file, otherwise drop current file."
25362536
(eca-chat-new))))))
25372537

25382538
;;;###autoload
2539-
(defun eca-chat-rename (new-name)
2539+
(defun eca-chat-rename ()
25402540
"Rename last visited chat to a custom NEW-NAME."
2541-
(interactive "sInform the new chat title: ")
2542-
(eca-assert-session-running (eca-session))
2543-
(with-current-buffer (eca-chat--get-last-buffer (eca-session))
2544-
(setq eca-chat--custom-title new-name)))
2541+
(interactive)
2542+
(let ((new-name (read-string "Inform the new chat title: ")))
2543+
(eca-assert-session-running (eca-session))
2544+
(with-current-buffer (eca-chat--get-last-buffer (eca-session))
2545+
(setq eca-chat--custom-title new-name))))
25452546

25462547
;;;###autoload
25472548
(defun eca-chat-new ()

eca-util.el

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -219,23 +219,21 @@ Inheirits BASE-MAP."
219219
("b" "Change behavior" eca-chat-select-behavior)
220220
("o" "Open/close chat window" eca-chat-toggle-window)
221221
("a" "Accept all pending tool calls" eca-chat-tool-call-accept-all)
222-
("s" "Accept all pending tool calls and remember" eca-chat-tool-call-accept-all-and-remember)
222+
("!" "Accept all pending tool calls and remember" eca-chat-tool-call-accept-all-and-remember)
223+
("s" "Add to system prompt" eca-chat-add-context-to-system-prompt)
224+
("u" "Add to user prompt" eca-chat-add-context-to-user-prompt)
225+
("d" "Drop from system prompt" eca-chat-drop-context-from-system-prompt)
223226
("A" "Accept next pending tool call" eca-chat-tool-call-accept-next)]
224227

225228
["Navigation"
226-
("h" "Message history" eca-chat-timeline)
227-
("c" "Chat" eca)
228-
("M" "MCP details" eca-mcp-details)
229-
("E" "Show stderr (logs)" eca-show-stderr)]
230-
231-
["Context"
232-
("s" "Add to system prompt" eca-chat-add-context-to-system-prompt)
233-
("u" "Add to user prompt" eca-chat-add-context-to-user-prompt)
234-
("d" "Drop from system prompt" eca-chat-drop-context-from-system-prompt)]
229+
("N h" "Message history" eca-chat-timeline)
230+
("N c" "Chat" eca)
231+
("N m" "MCP details" eca-mcp-details)
232+
("N e" "Show stderr (logs)" eca-show-stderr)]
235233

236234
["Server"
237-
("R" "Restart" eca-restart)
238-
("S" "Stop" eca-stop)]])
235+
("S r" "Restart" eca-restart)
236+
("S s" "Stop" eca-stop)]])
239237

240238
(provide 'eca-util)
241239
;;; eca-util.el ends here

0 commit comments

Comments
 (0)