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

I'm lazy and a newb, can I have a copy-and-paste instruction to install a package? #27

Open
evaryont opened this Issue Feb 28, 2015 · 10 comments

Comments

Projects
None yet
8 participants
@evaryont

evaryont commented Feb 28, 2015

A line along the following:

To install this package, execute the following in your project directory:
elm-make install elm-lang/core

Of course, language and terms should be clarified but it gets the point across. Thoughts?

@Apanatshka

This comment has been minimized.

Show comment
Hide comment
@Apanatshka

Apanatshka May 3, 2015

I think it's elm package install elm-lang/core as of 0.15. Where would you expect this information to be? That is, where is it missing?

Apanatshka commented May 3, 2015

I think it's elm package install elm-lang/core as of 0.15. Where would you expect this information to be? That is, where is it missing?

@evaryont

This comment has been minimized.

Show comment
Hide comment
@evaryont

evaryont May 5, 2015

Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on elm-lang/core's page, there would be a code block for easy copy & paste to a user's shell to install the package, like Rubygems has (see the sidebar).

It had taken me a bit to realize what the exact command I was supposed to use to install packages is.

evaryont commented May 5, 2015

Ah, sorry, should've been more descriptive. It would be useful on each package's page. For instance, on elm-lang/core's page, there would be a code block for easy copy & paste to a user's shell to install the package, like Rubygems has (see the sidebar).

It had taken me a bit to realize what the exact command I was supposed to use to install packages is.

@Apanatshka

This comment has been minimized.

Show comment
Hide comment
@Apanatshka

Apanatshka May 5, 2015

That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :)

Apanatshka commented May 5, 2015

That's a good idea. Like most version control hosting websites have a clone box. Sounds like a simple addition to the page. Maybe something you can try to add yourself and submit as a PR? It's a nice small thing to start contributing with :)

@Zinggi

This comment has been minimized.

Show comment
Hide comment
@Zinggi

Zinggi Nov 23, 2015

So I started implementing this, as I also found it lacking.
It currently looks like this:
screenshot from 2015-11-23 11-58-00

There is a small hack there because I don't think this is currently possible in elm-html.
I used:

attribute "onClick" "this.select()"

Is this hack acceptable?
Would be cool if I could do this in elm-html with something like

selected model.selected

instead.

If you're ok with the design and if this hack is acceptable, I'm gonna send a pull request.
Let me know.

Zinggi commented Nov 23, 2015

So I started implementing this, as I also found it lacking.
It currently looks like this:
screenshot from 2015-11-23 11-58-00

There is a small hack there because I don't think this is currently possible in elm-html.
I used:

attribute "onClick" "this.select()"

Is this hack acceptable?
Would be cool if I could do this in elm-html with something like

selected model.selected

instead.

If you're ok with the design and if this hack is acceptable, I'm gonna send a pull request.
Let me know.

@megapctr

This comment has been minimized.

Show comment
Hide comment
@megapctr

megapctr Oct 11, 2016

Is anyone working on this? I could try to prepare a PR.

IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc)

megapctr commented Oct 11, 2016

Is anyone working on this? I could try to prepare a PR.

IMO there doesn't even have to be a copy-to-clipboard button, all I would care about is having the full package name in a valid format (author + name, without spaces around the slash, etc)

@pete-a

This comment has been minimized.

Show comment
Hide comment
@pete-a

pete-a Feb 19, 2017

IMO, NPM's solution is simple and effective:
npm install helper

E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use elm package

pete-a commented Feb 19, 2017

IMO, NPM's solution is simple and effective:
npm install helper

E.g just like @Zinggi 's solution though no need for auto copy functionality, plus a simple link to show beginners how to use elm package

@drathier

This comment has been minimized.

Show comment
Hide comment
@drathier

drathier Mar 9, 2017

@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version.

drathier commented Mar 9, 2017

@megapctr it doesn't seem like anyone is working on this, no. And the header is very hard to copy, since trying to select the words just grabs the link instead, and it's very easy to select the version.

@megapctr

This comment has been minimized.

Show comment
Hide comment
@megapctr

megapctr Mar 9, 2017

@drathier there's a MR fixing the header, but for some reason it seems it's being ignored? #209

megapctr commented Mar 9, 2017

@drathier there's a MR fixing the header, but for some reason it seems it's being ignored? #209

@drathier

This comment has been minimized.

Show comment
Hide comment
@drathier

drathier Mar 9, 2017

@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time.

drathier commented Mar 9, 2017

@megapctr ah. I would still like a copy/pastable command in a textbox, like git clone here on github. It's not that simple to figure out you can copy/paste the text in the header, and it does take a few extra seconds each time.

@evancz evancz added request and removed enhancement labels Jul 11, 2017

@mandrolic

This comment has been minimized.

Show comment
Hide comment
@mandrolic

mandrolic Jul 11, 2017

At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?"

mandrolic commented Jul 11, 2017

At the risk of adding a 'Me Too' reply here - I just noticed this - it seems conspicuous by it's absence. NPM, Nuget, Docker, etc all have this snippet, it's kinda expected now. There is a little bit of a risk that a user will currently reach an Elm package page and end up thinking "That's nice.... now what?"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment