zed icon indicating copy to clipboard operation
zed copied to clipboard

Cannot undo actions in the project panel

Open JosephTLyons opened this issue 2 years ago • 33 comments

Summary

Can't undo renames, can't undo moved files or files that have been copied and pasted, deletes, etc.

Environment

Zed: 0.70.0 (preview) OS: macOS 13.1.0 Memory: 64 GiB Architecture: aarch64

JosephTLyons avatar Jan 18 '23 23:01 JosephTLyons

Also, there is an issue with editing a file, closing it, and trying to undo changes. You just cannot do that

KidPudel avatar Aug 13 '24 16:08 KidPudel

Also, there is an issue with editing a file, closing it, and trying to undo changes. You just cannot do that

KidPudel This issue is about undo of project panel operations (rename, copy, move, duplicate, etc). Please file a distinct issue with an enhancement request for persisting undo state across tab closure / reopening.

notpeter avatar Aug 13 '24 19:08 notpeter

and still no change?

andreeich avatar Aug 28 '24 06:08 andreeich

redo renaming and transferring files is possible even when working with finder + terminal, but not in ZED IDE?

andreeich avatar Aug 28 '24 06:08 andreeich

redo renaming and transferring files is possible even when working with finder + terminal, but not in ZED IDE?

Yeah, this is really annoying, I don't understand how people use Zed when it only has 15 upvotes, there is literally no attention to this issue. Instead of this, one of the top requests is for minimap and more AI bindings, which is hilariously insane. I do want to love and use this product, it gives me a NeoVim feel, but without the constant need for customization. However, these kinds of problems aren't getting enough focus :(

KidPudel avatar Aug 29 '24 11:08 KidPudel

+1

devinfl avatar Nov 25 '24 14:11 devinfl

Strong +1 from me as well.

If the maintainers have any direction for where to start on this, I'd be happy to try to lend a hand to contribute.

I also checked my zed log to see if there was any relevant info. Here's what I have:

2024-11-25T20:31:29.981696-08:00 [INFO] ========== starting zed ==========
2024-11-25T20:31:30.025616-08:00 [INFO] Opening main db
2024-11-25T20:31:30.028006-08:00 [INFO] Opening main db
2024-11-25T20:31:30.040496-08:00 [INFO] Using git binary path: Some("/Applications/Zed.app/Contents$
2024-11-25T20:31:30.252267-08:00 [INFO] No prompt template overrides directory found at /Users/max/$
2024-11-25T20:31:30.253506-08:00 [INFO] extensions updated. loading 5, reloading 0, unloading 0
2024-11-25T20:31:30.292098-08:00 [INFO] Opening main db
2024-11-25T20:31:30.343682-08:00 [INFO] Opening main db
2024-11-25T20:31:30.346418-08:00 [INFO] set status on client 0: Authenticating
2024-11-25T20:31:30.348109-08:00 [INFO] Opening main db

maxtheman avatar Nov 29 '24 00:11 maxtheman

Still no fix on this issue flagged from over a year ago. Have stopped using Zed because of this. :cry:

andsnw avatar Nov 29 '24 02:11 andsnw

Please

arch-fan avatar Dec 07 '24 21:12 arch-fan

Any news on this? I just lost an entire file of code because I right-clicked on another file name. For some reason the editor selects 2 files (the one I was editing and the one I selected), and this behavior doesn't make any sense, if I wanted to select 2 files, I would have simply pressed shift or cmd and then clicked on the files. I ended up losing an empty file that I wanted and what I was editing. I'm sorry, but this should be a basic function of an IDE.

Env: M1 Pro Zed 0.165.4

viniciusnevescosta avatar Dec 16 '24 14:12 viniciusnevescosta

@viniciusnevescosta I believe the issue you bumped into is this:

  • https://github.com/zed-industries/zed/issues/21605

Which has already been fixed in Zed Preview and will be available in Zed Stable on Wednesday 2024-12-18.

Otherwise, no news to report about Undo support, sorry.

notpeter avatar Dec 16 '24 21:12 notpeter

WE NEED THIS RIGHT NOW! I just deleted a bunch of work by accident.

I guess I'm switching back to VS Code because you can't just not have this in your code editor.

SomeRandomCpu avatar Dec 17 '24 19:12 SomeRandomCpu

Any news on this? I just lost an entire file of code because I right-clicked on another file name. For some reason the editor selects 2 files (the one I was editing and the one I selected), and this behavior doesn't make any sense, if I wanted to select 2 files, I would have simply pressed shift or cmd and then clicked on the files. I ended up losing an empty file that I wanted and what I was editing. I'm sorry, but this should be a basic function of an IDE.

Env: M1 Pro Zed 0.165.4

Same thing happened to me

SomeRandomCpu avatar Dec 17 '24 19:12 SomeRandomCpu

Why this is still not added? Its basic operation on file tree. I see there is remove to trash right now but how to revert it? Restore? or undo any other action like mystically moved files or dirs to wrong dir? Please add it finally

robert-mend-io avatar Mar 19 '25 19:03 robert-mend-io

Trash moves it to your trash, simply go into the File-Manager of your choice and restore in from trash. Still, pressing undo in Zed should definitely also do that, which it does not so far.

DNACFRA avatar Apr 18 '25 14:04 DNACFRA

Hi, thanks for the great editor the zed team is building

I was using Zed as my main editor, but today I had to return to my old editor/ide. I was deleting the node_modules directory and for some reason (lag, bugs, etc) it deleted the entire project I was working on, I lost 1 day of work with that.

It even display the dialog if I wanted to trash or cancel, I click cancel (expecting the action was going to be rollback), no luck, 1 day of work lost :(

Hope you can prioritize this. For me, this was a killer

Regards,

JazielGuerrero avatar May 27 '25 13:05 JazielGuerrero

Hi, thanks for the great editor the zed team is building

I was using Zed as my main editor, but today I had to return to my old editor/ide. I was deleting the node_modules directory and for some reason (lag, bugs, etc) it deleted the entire project I was working on, I lost 1 day of work with that.

It even display the dialog if I wanted to trash or cancel, I click cancel (expecting the action was going to be rollback), no luck, 1 day of work lost :(

Hope you can prioritize this. For me, this was a killer

Regards,

Well, use git...

arch-fan avatar May 27 '25 14:05 arch-fan

Hi, thanks for the great editor the zed team is building I was using Zed as my main editor, but today I had to return to my old editor/ide. I was deleting the node_modules directory and for some reason (lag, bugs, etc) it deleted the entire project I was working on, I lost 1 day of work with that. It even display the dialog if I wanted to trash or cancel, I click cancel (expecting the action was going to be rollback), no luck, 1 day of work lost :( Hope you can prioritize this. For me, this was a killer Regards,

Well, use git...

An IDE that requires me to git commit before every file operation to avoid risking losing my changes clearly fails in my eyes.

DNACFRA avatar May 27 '25 15:05 DNACFRA

Hi, thanks for the great editor the zed team is building I was using Zed as my main editor, but today I had to return to my old editor/ide. I was deleting the node_modules directory and for some reason (lag, bugs, etc) it deleted the entire project I was working on, I lost 1 day of work with that. It even display the dialog if I wanted to trash or cancel, I click cancel (expecting the action was going to be rollback), no luck, 1 day of work lost :( Hope you can prioritize this. For me, this was a killer Regards,

Well, use git...

An IDE that requires me to git commit before every file operation to avoid risking losing my changes clearly fails in my eyes.

Well, every file... at list make an initial commit 😥

arch-fan avatar May 27 '25 16:05 arch-fan

hey is it possible for a rust beginner to pick this up?

somtooo avatar Jun 23 '25 18:06 somtooo

Would love this...accidentally deleted my sqlite database while in ssh mode! That's on me for not having a backup—but still! Would be nice to be able to ctrl + z.

JosiahParry avatar Jul 08 '25 21:07 JosiahParry

Accidentally just deleted my whole project. I'll remember to push more often from now on!

aspectrr avatar Jul 15 '25 13:07 aspectrr

Lmao do we need a bounty for this. It’s legit scary

somtooo avatar Jul 15 '25 13:07 somtooo

Ran into the same issue but was luckily able to recover the files from trash. As a workaround, I set skip_prompt to false so that I at least get a prompt before deletion:

{
    "context": "ProjectPanel",
    "use_key_equivalents": true,
    "bindings": {
      "cmd-backspace": ["project_panel::Trash", { "skip_prompt": false }]
    }
}

llan0 avatar Aug 20 '25 16:08 llan0

@llan0 - this would be a nice feature to add as a flag

apowis avatar Aug 27 '25 14:08 apowis

Hello 👋🏻 Has there been any movement on this? I have Tourette's and so randomly move files all the time, so this is a complete blocker to me using Zed.

smoothml avatar Sep 19 '25 14:09 smoothml

@smoothml unfortunately, no movements on this

andreeich avatar Sep 19 '25 16:09 andreeich

??? how is this not even looked at? I have been using zed for 1 year and obv never had a cmd-delete moment ... until now...

Waterfountain10 avatar Oct 08 '25 17:10 Waterfountain10

@Waterfountain10 welcome to the party! Delete something important? 😆

JosiahParry avatar Oct 08 '25 18:10 JosiahParry

is this even real? ahahahahaha why would you even use this garbage editor

EmpathyZeroed avatar Oct 16 '25 06:10 EmpathyZeroed