Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it easier for me to copy-paste the package name + version for use in pubspec.yaml #3336

Closed
bean5 opened this issue Feb 17, 2020 · 9 comments
Milestone

Comments

@bean5
Copy link

bean5 commented Feb 17, 2020

Expected
When copying the package name and the version, a visible/hidden : comes with it.

after

Actual
No helpful :, which means I paste it into pubspec.yaml and have to edit it.

before

@isoos
Copy link
Collaborator

isoos commented Feb 17, 2020

Maybe we could add ^ too, e.g. uuid: ^2.0.4?

@bean5
Copy link
Author

bean5 commented Feb 17, 2020

Well, I don't think we want the page to include that by default, which means we'd want a dropdown with various options for easy copy-paste. Something like Github:

dropdown options with copy to clipboard

Perhaps something like this, but less ugly:
example

Aside: I think it is a bit overkill. I just wanted to be a little lazier. Not maximum lazy.

@jonasfj
Copy link
Member

jonasfj commented Feb 19, 2020

I was secretly hoping we would one day find time to do a pub add <package> command, and insert a thing like: $ pub add uuid in the top right corner...

@craigomac
Copy link

As requested by @bean5, I enclose the suggestion I made for this in #3564:
image

@lukas-h
Copy link

lukas-h commented Aug 5, 2020

Screenshot 2020-08-03 at 00 38 02

reuploading image from #3902

@pedromassango
Copy link

Better to implement the suggestion on #3336 (comment) it is less confusing.

@orestesgaolin
Copy link

Seems like it's already available
image

@isoos
Copy link
Collaborator

isoos commented Nov 12, 2020

Yes, closing this issue. Feel free to open new issues for improvements (some are already in the pipeline).

@pedromassangocode
Copy link

Just filled #4244 for some improvements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants