Skip to content

Conversation

jasalt
Copy link

@jasalt jasalt commented Aug 5, 2025

I was looking for this behavior for a while and did not find it very well documented.

Thinking of the placement, could also be part of e.g. https://github.com/karthink/gptel/wiki/Tweaking-the-UI but first suggestion would be to add this README.md section.

@karthink
Copy link
Owner

karthink commented Aug 6, 2025

Thanks for the PR!

This is incorrect, a new window is not created -- by default, gptel will open a new buffer according to your display-buffer-alist settings.

I also think it makes sense to add this to the FAQ (further below) instead of this section. I want the user's experience of reading the "Usage" section to be as fast as possible. They can come back and search for the option they need after they have gptel working.

It is also better to specify an action function that ensures that it stays selected, for example:

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

display-buffer-same-window might move the focus depending on other hooks and display-buffer-alist settings.

Could you add this to the FAQ instead?

@karthink karthink added the waiting Waiting for a response from another party. label Aug 6, 2025
@karthink
Copy link
Owner

@jasalt Are you still interested in this PR?

@jasalt
Copy link
Author

jasalt commented Sep 13, 2025

@karthink Excuse me for the delay. I added the suggested changes, thank you for the corrections. Further suggestions for improvement are welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting for a response from another party.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants