cursor icon indicating copy to clipboard operation
cursor copied to clipboard

undo `cmd+z` is weird

Open 2nthony opened this issue 1 year ago • 4 comments

using cursor latest version

vscode:

  1. select lines of code, and type asdf
  2. press cmd+z once, it will revert to origin code

cursor:

  1. select lines of code, and type asdf
  2. press cmd+z once, it will become asd, NOT revert to origin code

it drive me nuts writing code.


confirmed filetypes: js, md, ts, tsx

2nthony avatar Aug 31 '24 07:08 2nthony

it fixed in v40

2nthony avatar Sep 01 '24 05:09 2nthony

Still happening on the latest version. This is very annoying!

hybridherbst avatar Sep 12 '24 19:09 hybridherbst

For us it seems to happen when Cursor Tab is activated -- the guess is that is seems to save after each keystroke which breaks the undo

YYYasin19 avatar Sep 30 '24 16:09 YYYasin19

I came here to post this exact issue. Please fix this! It makes cmd + z so annoying to use!

todd-grilliot avatar Oct 02 '24 20:10 todd-grilliot

+1

lokeshrana9999 avatar Oct 11 '24 14:10 lokeshrana9999

+1 would love to see this fixed. This is my nr.1 quality of live problem when using cursor.

jonrosner avatar Nov 10 '24 12:11 jonrosner

This is happening to me as well, and makes work very frustrating sometimes. It's one of those things that makes your flow come to a complete stop as you reset your brain to what is going on.

I don't think it's related to a specific file type. I've seen this in every file I've had to undo in. This does seem to be related to Cursor Tab. Turning that off resolves the issue.

Smef avatar Nov 12 '24 03:11 Smef

+1 this is really jarring coming from vs code

willbonney avatar Nov 21 '24 22:11 willbonney

+1 ... if this isn't fixed soon, I WILL tell Lex Fridman Just kidding. Will disable Cursor Tab for the time being.

irgipaulius avatar Nov 25 '24 16:11 irgipaulius

To undo changes you have already accepted in Cursor, you have a couple of options:

Use checkpoints: Every time you generate code using Composer, Cursor creates a checkpoint. You can return to any previous version by clicking on "checkout" near that checkpoint. This is useful if you don't like the current changes and want to revert to an earlier state.

For Composer changes: If you're working in Composer, you can review changes in the diff view and use the provided buttons to accept or reject changes. If you've already accepted changes but want to undo them, you can use the checkpoints feature mentioned above.

For Tab completion: If you've accepted suggestions using Tab completion, you can use standard text editor undo functionality (usually Ctrl+Z or Cmd+Z) to revert the changes.

(source Docs AI on cursor.com)

SvenMeyer avatar Dec 22 '24 09:12 SvenMeyer