sg.nvim icon indicating copy to clipboard operation
sg.nvim copied to clipboard

Configurable CodyChat window width

Open audkar opened this issue 2 years ago • 3 comments

Problem:

Chat window is too small. After increasing the window size, closing the CodyChat window (:CodyToggle) and reopening it, the size is reset. This is very inconvenient.

Feature request:

Allow to configure default CodyChat window width. Or remember last used width. Or both

:bow:

audkar avatar Dec 14 '23 20:12 audkar

Problem:

Chat window is too small. After increasing the window size, closing the CodyChat window (:CodyToggle) and reopening it, the size is reset. This is very inconvenient.

Feature request:

Allow to configure default CodyChat window width. Or remember last used width. Or both

🙇

:heavy_plus_sign: 1

The plugin should at least store the previous window width, by default

E.g It would be cool if we could setup CodyHistory to fill 50% of the width of the screen and center it horizontally and vertically.

-- this API might not be the best, but just to share the idea.
require("sg").setup({
 layouts = {
   chat = { ... }
   task = { ... }
 }
})

Great work @tjdevries, big fan :muscle:

Odas0R avatar Dec 14 '23 21:12 Odas0R

Yes please-- the window really should be more configurable all around (esp to be floating). I use Neovim on a 34-inch display and the tiny non-floating window on the side that jolts all my other open windows makes the chat quite unpleasant to use.

ChatGPT.nvim can provide some inspiration here.

smackesey avatar Jan 02 '24 13:01 smackesey

-- this API might not be the best, but just to share the idea.
require("sg").setup({
 layouts = {
   chat = { ... }
   task = { ... }
 }
})

Yes, i think something along these lines would be good (and possibly more advanced floating style ones like chatgpt.nvim, which looks quite nice). I'm currently working on a larger update to the backend of the chat experience, so once we clean that up it should be alot easier to do different stuff for the various layouts (possibly providing custom layouts as well)

tjdevries avatar Jan 05 '24 19:01 tjdevries