karthink / gptel

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

how to open gptel in the current buffer? #216

Closed gruns closed 4 months ago

gruns commented 4 months ago

when one runs M-x gptel, it picks another buffer, seemingly at random, and loads gptel therein

how can i force M-x gptel to open gptel in the current buffer?

thanks! 🙌 once determined, i can add this to the readme if helpful

karthink commented 4 months ago

I added a user option (gptel-display-buffer-action) that you can customize for this.

gruns commented 4 months ago

@karthink youre a hero 👏

will wait for the next release which includes this 🙌. or would it be helpful for me to test this for you?

karthink commented 4 months ago

Cheers @gruns

LazerJesus commented 2 months ago

how do i use this?

gruns commented 2 months ago

@LazerJesus that is how does one use gptel-display-buffer-action?

LazerJesus commented 2 months ago

yes. i have the same irritation with the default behavior as you.

karthink commented 2 months ago

Try

(setq gptel-display-buffer-action '(pop-to-buffer-same-window))