Skip to content

x/pkgsite: provide multiple "copy to clipboard" options #38514

Open
@quentinmit

Description

@quentinmit

What is the URL of the page with the issue?

Any package page (e.g. https://pkg.go.dev/github.com/sirupsen/logrus?tab=doc)

What is your user agent?

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

Screenshot

Screen Shot 2020-04-18 at 3 24 01 AM

What did you do?

Click the "Copy path to clipboard" button

What did you expect to see?

github.com/sirupsen/logrus on my clipboard

What did you see instead?

import "github.com/sirupsen/logrus" on my clipboard

I almost never want an import statement; I want something I can copy into a go get command in my terminal. Plus all the UI indicates it's a path, not an import statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.UXIssues that involve UXD/UXR inputpkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions