Feature Request: Filter Search Results by File Type in Code Search #142094
-
Select Topic AreaProduct Feedback BodyHi. I’ve been using the new Code Search & Navigation tool, and it's a great improvement! One thing that could further enhance the experience is the ability to filter search results by file type. For example, if I’m debugging a large codebase, being able to filter searches to only return *.js files would be incredibly useful. Additionally, I think integrating this feature with a global search history would allow users to quickly access frequently used queries. Anyone else feel this would be useful? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
@ANcpLua this is supported. There are a couple of different ways. First, you can use the Second, you can use the For more details, please review the code search syntax documentation. |
Beta Was this translation helpful? Give feedback.
-
File Type Filtering: Global Search History: |
Beta Was this translation helpful? Give feedback.
@ANcpLua this is supported. There are a couple of different ways.
First, you can use the
language:
qualifier to restrict your search to a language. For example,repo:my/repo language:JavaScript
.Second, you can use the
path:
qualifier to restrict to file extensions. For example,repo:my/repo path:*.html.erb
. This qualifier supports globs (as shown) and regular expressions.For more details, please review the code search syntax documentation.