New search autocomplete yields no results in this particular case
Created by: beyang
Repro:
- On a Sourcegraph instance, add the github.com/sourcegraph/sourcegraph main repo
- After it's added, search for something like
router.go
- Observe the autocomplete dropdown shows you a menu of options, including file matches:
- On selection, it expands this to the full file path:
- When I hit enter, it searches for that query, yielding "No results":
I like the new search bar as a whole, but this experience seems broken. If what I want to do is jump to a file, my natural inclination is to type the name of that file. The old quicksearch would take me directly to the file. The new one just populates the search bar (which is already less good than the old experience, because there's an extra step) and then when I hit enter, it shows me no results.