Bryley / neoai.nvim

Neovim plugin for intracting with GPT models from OpenAI
MIT License
558 stars 51 forks source link

How can I get the last prompt for edition and send again? #21

Open fjchen7 opened 1 year ago

fjchen7 commented 1 year ago

Sometime I'm unsatisfied with the answer and want to edit the last prompt and send again for a better one. Is there a good way to do this? Now I have to focus on answer window by mouse (I don't know why I can't move to it by command) and yank the prompt. That is far from a smooth experience.

Bryley commented 1 year ago

Hey thanks for the feedback, at the moment there is no built-in way to achieve that.

However it shouldn't be too difficult to add a lua function in a future update that can retrieve the last prompt. Then all you would have to do is have a keybind that calls it. I'll add it to the todo list