Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

difficulty with closing ChatGPTEditWithInstructions window. #54

Closed
RichestHumanAlive opened this issue Jan 10, 2023 · 6 comments
Closed

Comments

@RichestHumanAlive
Copy link

RichestHumanAlive commented Jan 10, 2023

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 RichestHumanAlive changed the title difficulty with closing ChatGPTEditWithInstructions windows. difficulty with closing ChatGPTEditWithInstructions window. Jan 10, 2023
@TheJoeSchr
Copy link

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

@TheJoeSchr
Copy link

Also my custom keybind to close buffer works for this:

nnoremap <silent> Q     :bd <CR>

@dk-salesforce
Copy link

I got the same issue

@Aaronik
Copy link
Contributor

Aaronik commented Mar 25, 2023

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

@comiluv
Copy link
Contributor

comiluv commented Mar 31, 2023

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

@00sapo
Copy link
Contributor

00sapo commented Apr 8, 2023

PR #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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants