Hi all!
I noticed that after opening and closing the cmd + k box, it is not possible to undo with u
(using the neovim extension) to the point before the cmd + k box is opened. This does not happen if you undo with the built-in Cmd+z
.
For reference, here is my normal mode u mapping on neovim extension.
-- Undo/Redo Correction for VSCode
vim.keymap.set("n", "u", "<Cmd>call VSCodeNotify('undo')<CR>")
vim.keymap.set("n", "<C-r>", "<Cmd>call VSCodeNotify('redo')<CR>")
After an undo, the focus is on the opened box hence pressing u, is interpreted as normal text and I end up putting bunch of uuuus to the command k box.
I think undoing after the box is closed should not re-open the cmd+k box unless cmd+k is pressed again. Or maybe if this is intentional, an option to toggle this would be appreciated. Am I missing anything? Can you think of a workaround?
Thanks!