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

difficulty with closing `ChatGPTEditWithInstructions` window.

Open RichestHumanAlive opened this issue 3 years ago • 6 comments

Seems like there is some difficulty with closing ChatGPTEditWithInstructions window.

instead of closing floating windows, hitting mapped keys triggers the normal mode on the prompt.

For now use :q to exit this windows (just for this window. For the other windows there is no issue)

Here are my mappings :

keymaps = {
    close = { "jk", "kj", "<Esc>" },
    yank_last = "<C-y>",
    scroll_up = "<C-u>",
    scroll_down = "<C-d>",
    toggle_settings = "<C-o>",
    new_session = "<C-n>",
    cycle_windows = "<Tab>",
  },

RichestHumanAlive avatar Jan 10 '23 12:01 RichestHumanAlive

It seems you must be in insert mode first, then you can <C-c>. Esc doesn't work for me

TheJoeSchr avatar Jan 12 '23 18:01 TheJoeSchr

Also my custom keybind to close buffer works for this:

nnoremap <silent> Q     :bd <CR>

TheJoeSchr avatar Jan 12 '23 18:01 TheJoeSchr

I got the same issue

dk-salesforce avatar Mar 10 '23 18:03 dk-salesforce

I can't even press <C-c> to close it from insert (or normal) mode, I have to use :bd.

aaronik avatar Mar 25 '23 02:03 aaronik

I would also like to press <C-c> to close ChatGPTEditWithInstructions window instead of :q or :bd

comiluv avatar Mar 31 '23 14:03 comiluv

PR https://github.com/jackMort/ChatGPT.nvim/pull/141 partially solve this issue mapping both insert and normal mode. I would like to give the user the ability to add its own key maps though. As soon as @jackMort accept this PR, I'll work on that

00sapo avatar Apr 08 '23 09:04 00sapo