Skip to content

Trashing a symlink to a folder trashes the target folder, not the symlink #54900

@niieani

Description

@niieani

Reproduction steps

  1. create a symlink to a folder somewhere outside of your workdir
  2. right click from files -> Trash
  3. the whole target directory gets trashed, and the symlink remains where it was

I haven't tested with Delete, but it's likely this behavior would be the same, resulting in potential data loss!

Current vs. Expected behavior

  • only the symlink gets trashed

Zed version and system specs

Zed 0.233.10
Commit: 350f338
Version: 0.233.10+stable.250.350f33871e84d5ed83a403523e9490b9bf014a94
OS: macOS 26.4 (25E246)

Attach Zed log file

Zed.log
2026-04-25T16:35:11-07:00 ERROR [worktree] error reading file "/Volumes/Projects/Software/vendor/repos" on event: canonicalizing "/Volumes/Projects/Software/vendor/repos": No such file or directory (os error 2)

Relevant Zed settings

No response

Relevant Keymap

No response

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:project panelFeedback for files tree viewfrequency:uncommonBugs that happen for a small subset of users, special configurations, rare circumstances, etcmeta:regressionthis used to work and now doesn'tpriority:P2Average run-of-the-mill bugs

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions