x/pkgsite: add a 'y' keyboard shortcut to canonicalise URL with version #36807
Labels
FeatureRequest
FrozenDueToAge
help wanted
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Suggested
Issues that may be good for new contributors looking for work to do.
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/govim/govim/cmd/govim/config?tab=doc
What is your user agent?
Screenshot
What did you do?
Navigated to said page.
What did you expect to see?
On GitHub, the
y
keyboard shortcut allows the viewer to canonicalise the URL for the version of a file you are viewing:For example, at the time of writing, hitting
y
whilst on:https://github.com/govim/govim/blob/master/cmd/govim/config/config.go
updates the address bar URL to be:
https://github.com/govim/govim/blob/013f992e25f23cbc4a778d1eb472e719d276de32/cmd/govim/config/config.go
I think a similar option should be offered on pkg.go.dev. For example, at the time of writing, hitting
y
whilst on:https://pkg.go.dev/github.com/govim/govim/cmd/govim/config?tab=doc
would update the address bar URL to be:
https://pkg.go.dev/github.com/govim/govim@v0.0.27/cmd/govim/config?tab=doc
What did you see instead?
No option to do this.
The text was updated successfully, but these errors were encountered: