Bit of feedback when copying reponse to kill ring

* gptel-transient.el (gptel--suffix-send): Tweak
This commit is contained in:
João Távora 2024-01-18 02:37:46 +00:00 committed by Karthik Chikmagalur
parent b3d028d074
commit 235134a176

View file

@ -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)))