Add type-to-filter in project panel - #48181
Conversation
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
|
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. |
|
@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 🙏 |
|
Oof, I've just realized that I've closed this one incorrectly, as have been thinking of "project search", not "project panel"... 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. |
Summary
Add type-to-filter functionality to the project panel, allowing users to quickly find files by typing.
Closes #17547
Features
Test plan
test_filter_entries)test_filter_preserves_parent_directories)cargo build -p project_panel)cargo clippy -p project_panel --lib)