karthink / gptel

A simple LLM client for Emacs
GNU General Public License v3.0
1.04k stars 113 forks source link

request : define output buffer #192

Closed rileyrg closed 3 months ago

rileyrg commented 5 months ago

Is there a way, or could there be, to define where the output of gptel-send is sent? Ideally If I have a Chat GPT buffer open then if I select and gptel-send from, say, my code buffer then the reply doesnt get inserted in my code, rather into Chat GPT.

karthink commented 5 months ago

C-u M-x gptel-send, or C-u C-c RET:

image

Is this what you're looking for?

rileyrg commented 5 months ago

That only works once from what I can see.

Ideally i set it to use "existing session" and then all queries go into that session. Unless I'm doing something wrong, I need to C-u gptel-send "e" every time.

-- https://github.com/rileyrg?tab=repositories

On Sun, 21 Jan 2024, 23:12 karthink, @.***> wrote:

C-u M-x gptel-send, or C-u C-c RET:

image.png (view on web) https://github.com/karthink/gptel/assets/8607532/86ac4d3f-5d75-4ead-9390-ea706cf88cb6

Is this what you're looking for?

— Reply to this email directly, view it on GitHub https://github.com/karthink/gptel/issues/192#issuecomment-1902783103, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACYTC64BZRQZGPRD7FLYYDYPWHDTAVCNFSM6AAAAABCEIV2XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSG44DGMJQGM . You are receiving this because you authored the thread.Message ID: @.***>

karthink commented 5 months ago

That only works once from what I can see.

You can press C-x C-s in the transient menu to save the options. All subsequent queries from the transient menu will respect this option.

If you don't want to open the transient menu each time, you can use a keyboard macro (see #189) or define a custom send command (see #94).

rileyrg commented 5 months ago

Many thanks.

Unfortunately, it doesnt seem to stick.

I open an org file. I highlight text. I C-u C-c q (my binding for gptel). I see the transient. I hit e for existing session I hit enter for send It goes to ChatGPT Transient closes My next C-q (gptel-send) goes into the current buffer and not ChatGPT

On Sun, 21 Jan 2024 at 23:54, karthink @.***> wrote:

That only works once from what I can see.

You can press C-x C-s in the transient menu to save the options. All subsequent queries from the transient menu will respect this option.

If you don't want to open the transient menu each time, you can use a keyboard macro (see #189 https://github.com/karthink/gptel/discussions/189) or define a custom send command (see #94 https://github.com/karthink/gptel/issues/94).

— Reply to this email directly, view it on GitHub https://github.com/karthink/gptel/issues/192#issuecomment-1902793442, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACYTCYWG7BOWS3GXWTVVMDYPWMBLAVCNFSM6AAAAABCEIV2XGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSG44TGNBUGI . You are receiving this because you authored the thread.Message ID: @.***>

karthink commented 5 months ago

You can press C-x C-s in the transient menu to save the options. All subsequent queries from the transient menu will respect this option.

Emphasis on from the transient menu.

If you don't want to open the transient menu each time, you can use a keyboard macro (see https://github.com/karthink/gptel/discussions/189) or define a custom send command (see https://github.com/karthink/gptel/issues/94).

Please see.

karthink commented 5 months ago

Also added a note on this question to the FAQ.