zed icon indicating copy to clipboard operation
zed copied to clipboard

Move files to system trash when deleting a file within Zed

Open JosephTLyons opened this issue 2 years ago • 4 comments

Check for existing issues

  • [X] Completed

Is your feature request related to a problem?

A user had a great suggestion of not hard deleting files when they are deleted within Zed, but instead moving them into the system trash bin. Despite us not really hearing this feedback a lot, I think it's important to reduce the chances of destroying a user's work (for example, if a file isn't tracked by Git).

It probably makes sense for us to add a setting for this, since some users do seem to like the idea of hard deleting. VS Code has a setting for this:

SCR-20221204-j5x-2

Describe the solution you'd like

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons avatar Dec 04 '22 18:12 JosephTLyons

Nova.app does the same

jbergstroem avatar Dec 04 '22 19:12 jbergstroem

Seems like Sublime Text does as well.

JosephTLyons avatar Dec 05 '22 00:12 JosephTLyons

IntelliJ-based IDEs remove files directly (I don’t like their behavior tho)

Pringlers avatar Dec 05 '22 03:12 Pringlers

Just deleted a file by mistake and lost 2 hours of work because I had not committed my changes, if the file had been send to the trash can I could have recovered my work!

cgiacomi-work avatar Apr 18 '24 08:04 cgiacomi-work