Bit of feedback when copying reponse to kill ring
* gptel-transient.el (gptel--suffix-send): Tweak
This commit is contained in:
parent
b3d028d074
commit
235134a176
1 changed files with 3 additions and 1 deletions
|
@ -420,7 +420,9 @@ will get progressively longer!"
|
||||||
(if (not resp)
|
(if (not resp)
|
||||||
(message "%s response error: %s" backend-name (plist-get info :status))
|
(message "%s response error: %s" backend-name (plist-get info :status))
|
||||||
(kill-new resp)
|
(kill-new resp)
|
||||||
(message "%s response: copied to kill-ring." backend-name)))))
|
(message "%s response: \"%s\" copied to kill-ring."
|
||||||
|
backend-name
|
||||||
|
(truncate-string-to-width resp 30))))))
|
||||||
((setq gptel-buffer-name
|
((setq gptel-buffer-name
|
||||||
(cl-some (lambda (s) (and (string-prefix-p "n" s)
|
(cl-some (lambda (s) (and (string-prefix-p "n" s)
|
||||||
(substring s 1)))
|
(substring s 1)))
|
||||||
|
|
Loading…
Add table
Reference in a new issue