When using either ctrl+k or ctrl+l with apply for code creation, undo a total mess.
It’s super hard to revert to a previous state!
When using ctrl+k, the undo initially goes to the text input box. I think it’s fair to assume the user doesn’t want to edit their prompt, but undo the code.
Same with ctrl+l with apply, it leaves a mess of legacy prompts that can’t be cleared.
Really disastrous logic for undo though Cursor AI is so good itself. I assume it can be specified where to undo by cursor position or differentiated shortcuts.
Please improve on this.
As a vim user, I undo with u in normal mode and agree that undoing a little bit messy. When I want to undo to a previous state, as soon as the undo focuses to the text input box, I end up typing bunch of uuuus.
I don’t think that an undo should trigger the command+k box. I think when the cmd+k box is disabled,undoing should just focus to the editor. This enhancement would improve my work flow significantly.
there is a video recording of my annoyance on this comment
For me the biggest issue with Undo is that around the quarter of the time it’ll actually permanently delete code and end up with a garbled mess. I’ve lost code over this. I suspect it has to do with vscode vim.
Sadly vscode without vim is pretty unusable for me. I’d pay 3x for an official cursor neovim plugin. They probably wouldn’t make money on it though
I know you removed your comment. I did add start forwarding the undo/redo to vscode and a very interesting side effect here is that it also keeps the cmd K prompt in the undo stack. I suppose that’s how it works w/o vscode-nvim I just never experienced it since I immediately installed the ext.
So far it does work better this way even though I’d prefer to just undo the output rather than the cmd inputs as well. Thanks.
Hey, is our checkpointing feature not working here for you?
That should reset your whole codebase and chat to the point before the AI had made any changes!
I’ve noticed that the Checkpoint restore seems to get confused if you’ve done some work in Composer and applied some code in Chat.
At last I think that might be related since I’ve done some work in both, and restoring doesn’t bring things back to that state and I have to do manual cleanup or cherry pick…
THIS IS a VERY conspicuous theme and long ongoing issue my friend experienced. Literally trashed her project and the system crashed when she tried to recover her work…
Not only had Cursor over wrote script without authority… It did so as she was testing out what she thought were suggestions… Made worse by the so so-called solutions not only misaligning from the script - Functionality was removed
Since then she has tried to make sense of what happened while having (through oversight) not made a back up of her work to that point - So a major step backwards
From correspondence, to say little to no support has left her deeply upset
I have the same issue. The only advice I can give is to always commit your changes after getting something working the way you want it. That way you can just “git checkout .” to clear and go back to it if things get messy and the ai starts chasing its tail.