x/pkgsite: "jump to" search improvement #42489
Labels
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/gin-gonic/gin
What is your user agent?
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36
What did you do?
I really like the "jump to" feature ('f' keyboard shortcut).
I press 'f', then 'H' in the search box. gin has a type named
H
which I was hoping to find easily.What did you expect to see?
I'd expect the
H
type at the top, or close to it.What did you see instead?
A whole bunch of test results before the
H
type is shown:This search should be more than just subset match. It should prioritize whole matches (e.g. if I search
foo
, match a whole function namedfoo
beforebarfoo
and beforefoobar
), early matches (e.g. search forfoo
showsfoobar
beforebarfoo
), and so on.As of now, this search is less useful than it could be due to this (and it could be very useful indeed!!)
The text was updated successfully, but these errors were encountered: