Skip to content

Commit 354c94a

Browse files
committed
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.
1 parent 0ff882c commit 354c94a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gptel-transient.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ only (\"oneshot\")."
993993
for (category . tools-alist) in gptel--known-tools
994994
with unused-keys = (nconc (delete ?q (number-sequence ?a ?z))
995995
(number-sequence ?0 ?9)
996-
(number-sequence ?A ?Z))
996+
(delete ?M (number-sequence ?A ?Z))) ;M used by MCP integration
997997
for category-key = (seq-find (lambda (k) (member k unused-keys))
998998
(string-remove-prefix "mcp-" category)
999999
(seq-first unused-keys))
@@ -1025,7 +1025,7 @@ only (\"oneshot\")."
10251025
(concat (make-string (max (- 20 (length name)) 0) ? )
10261026
(propertize
10271027
(concat "(" (gptel--describe-directive
1028-
(gptel-tool-description tool) (- (window-width) 40))
1028+
(gptel-tool-description tool) (- (window-width) 60))
10291029
")")
10301030
'face 'shadow))
10311031
(gptel-tool-name tool)

0 commit comments

Comments
 (0)