Robitx / gp.nvim

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

new filetype for chatgpt window : feature request #137

Open danielreis1 opened 4 months ago

danielreis1 commented 4 months ago

with a new filetype for the popup window I can have shortcuts specific for that filetype, in this case specific for when using the popup window for chatgpt otherwise I have to add markdown filetype specific shortcuts, which feels wierd.

when I write :set ft in the gpt window I get: markdown not sure if I can add shortcuts that work only when using the popup window for example, if you guys know any, let me know

just to explain with a couple very simple examples: I want when using the popup window only to use the key: to toggle the window, in this case toggling would mean it would disappear, this is easily done by adding the hotkey in a file with the correct filetype under ftplugin/ I also want to use enter to send the message to chatgpt, and not a new hotkey.

Not sure if I am seeing something wrong and this can already be done in a better way, let me know.

using neovim thanks.

strayer commented 1 month ago

I have linters running on markdown files that are complaining a lot about the chat window. Having a different filetype would help here as well.

Robitx commented 1 month ago

This and lots of other fixes/improvements is slowly being cooked in GpDo branch

image

https://github.com/Robitx/gp.nvim/compare/main...GpDo