Skip to content

Zed still includes project directory in file search results after hiding root #45135

@janko

Description

@janko

Reproduction steps

Hit cmd-p to trigger file search, and look at search results.

Current vs. Expected behavior

Prior to project_panel.hide_root setting being added, the directories of file results didn't include the project directory. Disabling that setting removed the root directory in the project panel, but it still remains in the search results.

In the screenshot below, my project root directory is called "core", so I would be great if core/* was excluded from the directory names.

Image

Zed version and system specs

Zed: v0.217.1+stable.98.56049ac3b58f2da9e171c3fee318f7d4944b0159 (Zed)
OS: macOS 26.2
Memory: 8 GiB
Architecture: aarch64

Metadata

Metadata

Assignees

No one assigned

    Labels

    .contrib/good first issueIssue suitable for first-time contributorsarea:searchbuffer search, project search, etcarea:settings/uiFeedback for Zed's settings UIfrequency:alwaysBug that happens for everyone on every platform no matter how they use Zedpriority:P3Papercuts, minor issues with a clear workaround, cosmetic bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions