Can't search for ##1 #206889
🏷️ Discussion TypeBug 💬 Feature/Topic AreaIssues BodyWhen I search for I tried escaping with bakslash and quotes. How can I do it? This as a search bug — since # is meaningful syntax in several languages (SystemVerilog timing delays, C preprocessor directives, etc.), it'd be great if GitHub's search supported some way to escape it for literal matching. Guidelines |
Replies: 2 comments 1 reply
|
💬 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. ⭐ |
|
This is a known limitation of GitHub's search, not something you're doing wrong. The search indexer tokenizes on A couple of workarounds until/if this gets addressed: 1. Pull issues via the API/CLI and grep locally — this is the most reliable option for exact matching: (Search for a broader term like 2. Try an external site-restricted search, e.g. on Google: This sometimes preserves substrings that GitHub's own index discards, though it's not fully reliable either since it depends on how the page was crawled/indexed. 3. Vote for/track this as a search bug — since Hope that helps in the meantime! |
This is a known limitation of GitHub's search, not something you're doing wrong. The search indexer tokenizes on
#(since#123normally means "reference issue/PR 123"), so it effectively treats#as noise rather than a literal searchable character. That's why quoting ("##1") and backslash-escaping don't work as expected — GitHub's search isn't a literal substring/grep search, so there's currently no supported syntax to force an exact match on symbol sequences like##1.A couple of workarounds until/if this gets addressed:
1. Pull issues via the API/CLI and grep locally — this is the most reliable option for exact matching:
bash gh issue list -R verilator/verilator --search "1" --state al…