branch: externals/ellama commit 8c386afb5689abb68341cabf5109739e3a191c0a Author: Sergey Kostyaev <sskosty...@gmail.com> Commit: Sergey Kostyaev <sskosty...@gmail.com>
Add session options to various menus Added session options menu item to the code, ask, and chat sections of the transient commands. The menu includes an option to create a new session with a description dynamically generated by `ellama-session-line`. --- ellama-transient.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ellama-transient.el b/ellama-transient.el index 6e1e99426e..7d7a437e44 100644 --- a/ellama-transient.el +++ b/ellama-transient.el @@ -209,6 +209,9 @@ Otherwise, prompt the user to enter a system message." ("i" "Improve" ellama-code-improve) ("r" "Review" ellama-transient-code-review) ("m" "Generate Commit Message" ellama-generate-commit-message)] + ["Session Options" + :description (lambda () (ellama-session-line)) + ("-n" "Create New Session" "--new-session")] ["Quit" ("q" "Quit" transient-quit-one)]]) ;;;###autoload (autoload 'ellama-transient-summarize-menu "ellama-transient" nil t) @@ -272,6 +275,7 @@ Otherwise, prompt the user to enter a system message." ("s" "Ask Selection" ellama-transient-ask-selection) ("a" "Ask About" ellama-transient-ask-about)] ["Session Options" + :description (lambda () (ellama-session-line)) ("-n" "Create New Session" "--new-session")] ["Quit" ("q" "Quit" transient-quit-one)]]) @@ -350,6 +354,9 @@ Otherwise, prompt the user to enter a system message." [("c" "Chat" ellama-transient-chat) ("b" "Chat with blueprint" ellama-blueprint-select) ("B" "Blueprint Commands" ellama-transient-blueprint-menu)] + ["Session Options" + :description (lambda () (ellama-session-line)) + ("-n" "Create New Session" "--new-session")] [("a" "Ask Commands" ellama-transient-ask-menu) ("C" "Code Commands" ellama-transient-code-menu)]] ["Text"