Add a variant of pane::DeploySearch
that automatically filters for only files matching the current file extension
#22330
Labels
admin read
Pending admin review
enhancement
[core label]
triage
Maintainer needs to classify the issue
Check for existing issues
Describe the feature
Currently, project search just searches through all files, and allows you to manually add a filter for specific files / filetypes.
My proposal would be to add an action that checks the filetype of the currently opened window before opening the search pane, and adds a
*.rs
(or whatever the filetype is) filter automatically.In most cases, when I'm searching through my project, I want to search for a specific doc comment, or a mention of something in my markdown documentation. Most of the time, when I want to do that, I'm already in a file with the same filetype. Thus, having an action that would look at the filetype and search through only files matching that would massively improve the convenience of project search, especially for projects that have, for example, mdbook documentation in the same repo as the main codebase.
Zed Version and System Specs
Zed: v0.167.1 (Zed Preview)
OS: Linux Wayland fedora 40
Memory: 31.3 GiB
Architecture: x86_64
GPU: AMD Radeon RX 580 Series (RADV POLARIS10) || radv || Mesa 24.1.7
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: