Robitx / gp.nvim

Gp.nvim (GPT prompt) Neovim AI plugin: ChatGPT sessions & Instructable text/code operations & Speech to text [OpenAI]
MIT License
537 stars 50 forks source link

Allow generation stop #63

Closed teocns closed 7 months ago

teocns commented 7 months ago

With issue #52 we have fixed concurrent, parallel generations on <C-g>.

This command could be potentially enabled to stop generation while running;

Robitx commented 7 months ago

Hey, there already is a plugin wide :GpStop command with recommended shortcut <C-g>s but people can choose a different one. :slightly_smiling_face:

I'd prefer not to put it on the same shortcut exactly because of #52 - people might hit <C-g> more times than they wanted by accident.

What might be beneficial is to set <C-g>sautomatically for chat buffers and mention it in the chat template so that people don't have to memorize it.

@teocns What do you think?

teocns commented 7 months ago

Yes indeed, let's add it so it's more intuitive; its absence is the main reason I opened this issue. Thank you!