Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recalling previous response #16

Open
eliasericsson opened this issue Dec 7, 2023 · 1 comment
Open

Recalling previous response #16

eliasericsson opened this issue Dec 7, 2023 · 1 comment

Comments

@eliasericsson
Copy link

Hi, and thanks for a cool plug-in!

It would be useful to be able to recall the response from OpenAI as the window might be closed prematurely, or perhaps more likely because I forgot what it said. If it was possible to recall the response that worry be alleviated. It would also save some OpenAI-credits, which would be nice!

Extra: If it was possible to store markers in the gutter to mark where the plug-in was called upon and from there open the given response, that might be useful too.

@piersolenski
Copy link
Owner

Thanks for your kind words!

I think you, as many, are using the plugin as a floating window. I set this as the default behaviour, because it works well for the demo, and is the least obstructive to people's existing workflow in that it will sit on top of any current splits.

A much better way to use it, is to have it open in a split, so you can cross reference the answer with the source code.

I might reconsider the default setting on this matter.

However, you're right, a way to recall past answers would be cool, and fairly easily achievable via a Telescope integration.

In regards to the markers, that would be a nice extra - the question would be when they initially appear and disappear though. https://github.com/jackMort/ChatGPT.nvim does something similar where it only shows markers whilst awaiting a response, but then are then hidden as soon as the popup appears. Given that this plugin can also appear in splits, that you might keep open for some time, I'm not sure leaving the markers in place until you close the window might be to everyones taste. Even briefly showing it could be a nice way to show a loading state though, especially for those who have not added it to their status line.

Often the results mention the lines queried, I could also make this more explicit in the prompt.

Let me know what you think, I've already started on the Telescope integration 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants