[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ellama 49e08205a6 11/16: Organize session options and e
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ellama 49e08205a6 11/16: Organize session options and ephemeral sessions in transient menus |
Date: |
Wed, 2 Apr 2025 09:59:49 -0400 (EDT) |
branch: externals/ellama
commit 49e08205a6b8409fd7209288eb7a26900b0a985a
Author: Sergey Kostyaev <sskostyaev@gmail.com>
Commit: Sergey Kostyaev <sskostyaev@gmail.com>
Organize session options and ephemeral sessions in transient menus
Reorganized the "Session Options" and "Ephemeral Sessions" sections to be
more
consistent across different transient menus. This change ensures a better
user
experience by grouping related commands together. Specifically:
- Moved "Session Options" and "Ephemeral Sessions" sections to the top of
each
menu (code, ask, main).
- Ensured that the session options are conditionally displayed based on
`ellama-session-auto-save`.
---
ellama-transient.el | 30 ++++++++++++++++++------------
1 file changed, 18 insertions(+), 12 deletions(-)
diff --git a/ellama-transient.el b/ellama-transient.el
index 36016fec50..2862ba947a 100644
--- a/ellama-transient.el
+++ b/ellama-transient.el
@@ -205,6 +205,12 @@ Otherwise, prompt the user to enter a system message."
;;;###autoload (autoload 'ellama-transient-code-menu "ellama-transient" nil t)
(transient-define-prefix ellama-transient-code-menu ()
"Code Commands."
+ ["Session Options"
+ :description (lambda () (ellama-session-line))
+ ("-n" "Create New Session" "--new-session")]
+ ["Ephemeral sessions"
+ :if (lambda () ellama-session-auto-save)
+ ("-e" "Create Ephemeral Session" "--ephemeral")]
[["Code Commands"
("c" "Complete" ellama-code-complete)
("a" "Add" ellama-code-add)
@@ -212,10 +218,6 @@ 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")
- ("-e" "Create Ephemeral Session" "--ephemeral")]
["Quit" ("q" "Quit" transient-quit-one)]])
;;;###autoload (autoload 'ellama-transient-summarize-menu "ellama-transient"
nil t)
@@ -280,14 +282,16 @@ Otherwise, prompt the user to enter a system message."
;;;###autoload (autoload 'ellama-transient-ask-menu "ellama-transient" nil t)
(transient-define-prefix ellama-transient-ask-menu ()
"Ask Commands."
+ ["Session Options"
+ :description (lambda () (ellama-session-line))
+ ("-n" "Create New Session" "--new-session")]
+ ["Ephemeral sessions"
+ :if (lambda () ellama-session-auto-save)
+ ("-e" "Create Ephemeral Session" "--ephemeral")]
[["Ask Commands"
("l" "Ask Line" ellama-transient-ask-line)
("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")
- ("-e" "Create Ephemeral Session" "--ephemeral")]
["Quit" ("q" "Quit" transient-quit-one)]])
;;;###autoload (autoload 'ellama-transient-translate-menu "ellama-transient"
nil t)
@@ -405,14 +409,16 @@ ARGS used for transient arguments."
;;;###autoload (autoload 'ellama-transient-main-menu "ellama-transient" nil t)
(transient-define-prefix ellama-transient-main-menu ()
"Main Menu."
+ ["Session Options"
+ :description (lambda () (ellama-session-line))
+ ("-n" "Create New Session" "--new-session")]
+ ["Ephemeral sessions"
+ :if (lambda () ellama-session-auto-save)
+ ("-e" "Create Ephemeral Session" "--ephemeral")]
["Main"
[("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")
- ("-e" "Create Ephemeral Session" "--ephemeral")]
[("a" "Ask Commands" ellama-transient-ask-menu)
("C" "Code Commands" ellama-transient-code-menu)]]
["Text"
- [elpa] externals/ellama 9ef4ed4c14 05/16: Add autoload for `ellama-community-prompts-ensure`, (continued)
- [elpa] externals/ellama 9ef4ed4c14 05/16: Add autoload for `ellama-community-prompts-ensure`, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 35e2b6b180 08/16: Add ephemeral session support, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 6e5372b015 10/16: Add ephemeral context functionality, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 66eba1f52a 12/16: Add interactive setup for ellama transient menu, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama f93f777efb 14/16: Add ephemeral context support to documentation, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 7c49cba7fd 07/16: Improve text insertion handling, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 1ab907ee23 06/16: Enhance chat functionality in transient, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 8fcaabc53f 09/16: Add ephemeral session option to transient commands, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama bb0bdc2f8f 16/16: Merge pull request #308 from s-kostyaev/enhance-session-management, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 50f0f02a39 15/16: Bump version, ELPA Syncer, 2025/04/02
- [elpa] externals/ellama 49e08205a6 11/16: Organize session options and ephemeral sessions in transient menus,
ELPA Syncer <=
- [elpa] externals/ellama 6cd1465e5a 13/16: Reorder and organize options in `ellama-transient.el`, ELPA Syncer, 2025/04/02