xenodium / chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, Gemini) + editing integrations
https://xenodium.com
GNU General Public License v3.0
846 stars 75 forks source link

easy proofread #229

Closed vzaliva closed 1 month ago

vzaliva commented 2 months ago

I want a command similar to chatgpt-shell-proofread-region, which automatically replaces the selected region with a proofread version without a preview.

vzaliva commented 1 month ago

I've tried the following:

(defun chatgpt-shell-proofread-region ()
  "Proofread English from region using ChatGPT."
  (interactive)
  (let ((chatgpt-shell-prompt-query-response-style 'inline))
    (chatgpt-shell-send-region-with-header (cdr (assoc 'paper my-prompts)))))

It seems that inline argument does not work as expected and the answer is always shown in "compose" buffer.

vzaliva commented 1 month ago

never mind, it was name collision with existing function