branch: elpa/gptel
commit 354c94a1fda5c5b84b4f64df8f2fc9fbccfc219f
Author: Karthik Chikmagalur <karthikchikmaga...@gmail.com>
Commit: Karthik Chikmagalur <karthikchikmaga...@gmail.com>

    gptel-transient: Adjust available keys and tooltip width
    
    * gptel-transient.el (gptel-tools): Remove M from the list of
    usable keys for dynamically generated items in the tools menu,
    because of a conflict with the MCP integration keys (#915).
    
    Also reduce the width taken up by tool descriptions, as the
    available space is lower in the new two-column menu design.
---
 gptel-transient.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gptel-transient.el b/gptel-transient.el
index e8d7065b50..3d49bff18f 100644
--- a/gptel-transient.el
+++ b/gptel-transient.el
@@ -993,7 +993,7 @@ only (\"oneshot\")."
         for (category . tools-alist) in gptel--known-tools
         with unused-keys = (nconc (delete ?q (number-sequence ?a ?z))
                                   (number-sequence ?0 ?9)
-                                  (number-sequence ?A ?Z))
+                                  (delete ?M (number-sequence ?A ?Z))) ;M used 
by MCP integration
         for category-key = (seq-find (lambda (k) (member k unused-keys))
                                      (string-remove-prefix "mcp-" category)
                                      (seq-first unused-keys))
@@ -1025,7 +1025,7 @@ only (\"oneshot\")."
                 (concat (make-string (max (- 20 (length name)) 0) ? )
                         (propertize
                          (concat "(" (gptel--describe-directive
-                                      (gptel-tool-description tool) (- 
(window-width) 40))
+                                      (gptel-tool-description tool) (- 
(window-width) 60))
                                  ")")
                          'face 'shadow))
                 (gptel-tool-name tool)

Reply via email to