gptel icon indicating copy to clipboard operation
gptel copied to clipboard

gptel: Improve handling of read only buffers

Open pabl0 opened this issue 8 months ago • 6 comments

  • gptel.el (gptel-read-only-response-buffer, gptel--handle-pre-insert): Introduce a new defcustom and don't hard code "LLM response".

  • gptel-transient.el (gptel--describe-suffix-send): Inform the user when the source buffer is read-only and clarify that output will be directed to the buffer specified in gptel-read-only-response-buffer. Additionally, remove misleading claims about killing content from a read-only source buffer in "respond in place" mode.


Not sure if the defcustom is too much, but perhaps it is in the spirit of Emacs to maximal customizability? Also I think "read-only" might be more correct than "read only" but then again English is not my first language?

pabl0 avatar Feb 15 '25 11:02 pabl0