Skip to content

x/pkgsite: support real-time fuzzy searching for packages #44116

@myitcv

Description

@myitcv

What is the URL of the page with the issue?

https://pkg.go.dev/

What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.40 Safari/537.36

Screenshot

Screen Shot 2021-02-05 at 06 04 32

What did you do?

Typed rogpe in the search box. I'm lazy when it comes to search and I like to do things in a fuzzy way, much like workspace symbol search in gopls.

In this case I was trying to quickly get to https://pkg.go.dev/github.com/rogpeppe/go-internal/testscript

I would like to have been able to type simply rogptes and that result be narrowed down based on a high fuzzy score.

What would you like to see?

Real-time, fuzzy search results presented below the input box, much like Google (GitHub etc)

Screen Shot 2021-02-05 at 06 05 25

What did you see instead?

There is no such feature. It's a request-response based approach at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.pkgsitepkgsite/searchIssues related to pkg.go.dev search functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions