Closed vhallac closed 1 year ago
Yes, this has been a TODO in the code for a while. Thanks for the reminder, I'll look into it soon.
Read only buffers are now handled by gptel. If you run into any edge cases, please let me know.
I've tried out the updated code and it works just fine. Thanks for the fast implementation.
I've added the following code in my init script to have gptel-send output the answer to the end of a buffer gptel-answer when the selected region is in a read-only buffer, or the :position points to a text that is read-only. Current beahvior is to error out, and leave the curl answer buffer available.
You might consider using this approach or something along these lines in your code.