jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.56k stars 307 forks source link

ChatGPTActAs initiates telescope window with cursor not at prompt #435

Closed mokanfar closed 2 months ago

mokanfar commented 2 months ago

Thanks for this project. I have an issue thats bugging me where I use ChatGPTActAs a lot, is there any way by default to open telescope with the cursor initially placed at the prompt instead of in the instructions pane?

mokanfar commented 2 months ago

Nevermind found the code thanks

function Chat:open_system_panel()
  self.system_role_open = true
  self:redraw()
  -- changed this
  -- self:set_active_panel(self.system_role_panel)
  -- to this
  self:set_active_panel(self.chat_input)
end