lang:tsx /<Button[^\\].\* color="red"/
Example:https://github.com/search?q=lang%3Atsx+%2F%3CButton%5B%5E%5C...
lang:tsx /<Button[^\\].\* color="red"/
Example:https://github.com/search?q=lang%3Atsx+%2F%3CButton%5B%5E%5C...
For more info on how we built this, you can check out our technical blog post from a few months ago https://github.blog/2023-02-06-the-technology-behind-githubs...
Actually, our search engine is so fast that syntax highlighting the search results is often slower than finding them... so if we store the language tokens directly in the index, we'll be able to directly emit syntax highlighted snippets and make it even faster.
It may also enable some interesting search capabilities in the future, like searching within comments or by code structure.
So it's possible that a document containing `aaa` might match our ngram search, but we double check after retrieving them and exclude them from the result set.
We read all the feedback on the forum here: https://github.com/orgs/community/discussions/38692, so please keep providing it. Videos and screenshots are super helpful too. Thanks for bearing with us as we continue to polish the UX!
Go ahead and criticise a product, but don't call out an employee or make out that they are failing to fulfil your personal requirements.
I'm sure this is only a first version of the new GitHub search, and more features will come. Give them the benefit of the doubt.
I don't really understand why we are seeing more and more of these style of antagonistic blog posts (or comments here on HN).
We would definitely have implemented sorting by recency if it was trivial to implement. But as I said before, our data shows that it is infrequently used, and to scale our search index, we designed it in a way that makes this kind of sorting tricky.
Sometimes to ship products like this, tradeoffs have to be made, and I continue to think we made the right one. Nevertheless, it's good for me and the team to hear feedback like this so we can continue to improve the product.