Skip to content

Add type-to-filter in project panel - #48181

Closed
Rani367 wants to merge 1 commit into
zed-industries:mainfrom
Rani367:project-panel-filter
Closed

Add type-to-filter in project panel#48181
Rani367 wants to merge 1 commit into
zed-industries:mainfrom
Rani367:project-panel-filter

Conversation

@Rani367

@Rani367 Rani367 commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Add type-to-filter functionality to the project panel, allowing users to quickly find files by typing.

Closes #17547

Features

  • Filter input at top of project panel
  • Case-insensitive substring matching on file/folder names
  • Clear button (X) when filter is active
  • Escape key clears filter and returns focus to file list
  • Parent directories of matched files remain visible for context
  • Auto-focus: focusing the panel puts cursor in filter input

Test plan

  • Unit tests for filtering logic (test_filter_entries)
  • Unit tests for parent directory preservation (test_filter_preserves_parent_directories)
  • Build passes (cargo build -p project_panel)
  • Clippy passes (cargo clippy -p project_panel --lib)

Add a filter input at the top of the project panel that allows users
to quickly find files by typing. Features include:

- Case-insensitive substring matching on file/folder names
- Clear button (X) when filter is active
- Escape key clears filter and returns focus to file list
- Parent directories of matched files remain visible for context
- Auto-focus: focusing the panel puts cursor in filter input

Closes zed-industries#17547
@cla-bot cla-bot Bot added the cla-signed The user has signed the Contributor License Agreement label Feb 2, 2026
@SomeoneToIgnore

Copy link
Copy Markdown
Contributor

Sorry for spotting this now only: we have been trying to land something similar and reverted it, latest revert was in #49619

We seem to be somewhat close, but need to work on more usability bugs and nuances, hence want to do this ourselves.

@wagerfield

Copy link
Copy Markdown

@SomeoneToIgnore is there somewhere I can track the progress of this feature? I would really like to be able to filter the files and folders in the Project Panel in the same way as you can do in the Outline Panel (which I imagine is what this PR from @Rani367 delivered). Really missing this feature from neovim, VSCode et al 🙏

@SomeoneToIgnore

Copy link
Copy Markdown
Contributor

Oof, I've just realized that I've closed this one incorrectly, as have been thinking of "project search", not "project panel"...
As a slight excuse, this is a visual change and the PR did not provide any screenshots or videos.

Either way, no work is planned on this area, but the PR seems to be good on a brief look — the only large concern I have is the designers' approval of all this.

@Rani367
Rani367 deleted the project-panel-filter branch July 3, 2026 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

type to search in project panel

3 participants