Undo is a mess - unable to revert to previous code

Can you document your remapping here?

I would love for this to be a toggled setting. I would rather a Cmd-K box not open up during undo. The behavior I’d want is to undo whole applied changes.

1 Like

This is the configuration I use for the cursor, which works if you’re using lazyvim and vscode integration. However, if you’re not using the vscode integration, you should make this conditional so that it doesn’t interfere with the regular undo/redo functionality.

-- 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>")

+1 have been using cursor since it launched, never felt the need to undo something in the cmd+k box.

I think undo should never enable the cmd+k box. it should only undo the text in the cmd+k box if it is opened.

Same here