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
Search should prefer exact matches, then prefix matches #247
Comments
|
Think we need #273 first. |
|
Now that we have categorized matches, how do we want exact matches to be preferred:
|
|
Well, I think that the right way to think about it is to take Not sure if there's a perfect solution. What about having another category called “Exact matches”, listing all exact matches with actual categories in parens? And keep other search results below (other search results as implemented right now). |
|
I think we should list exact matches first. That is what most people would expect. Atm we have: |
|
I have a local patch that puts exact matches at the top of the category, followed by prefix matches, with the remaining items in alphabetical order. Everything is still broken out by category. This worth pushing? |
|
That's an improvement. Sounds like a good idea to me 👍 |
|
Yes! Especially if you can mark the matched part with bold or something. |
|
Added matched part highlight as #1409 |
Sort prefix matches next Cheat with a global variable to keep track of the last search term For #247
A search for the string "str" should show Class:Str and Routine:Str as the first choices.
A search for "bef" should sort Infix:before before the exception.
The text was updated successfully, but these errors were encountered: