Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a variant of pane::DeploySearch that automatically filters for only files matching the current file extension #22330

Open
1 task done
elkowar opened this issue Dec 21, 2024 · 0 comments
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue

Comments

@elkowar
Copy link
Contributor

elkowar commented Dec 21, 2024

Check for existing issues

  • Completed

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

@elkowar elkowar added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue
Projects
None yet
Development

No branches or pull requests

1 participant