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

Copy button for commands on click #14006

Closed
mishrasur7 opened this issue Dec 17, 2022 · 7 comments
Closed

Copy button for commands on click #14006

mishrasur7 opened this issue Dec 17, 2022 · 7 comments
Labels
area:website Issues about the website (https://prettier.io), excluding the playground help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Comments

@mishrasur7
Copy link

Hey, is it possible to implement a copy button to copy prettier commands? it provides good user experience.

Environments:

  • Prettier Version: 2.8.1
  • Running Prettier via:
  • Runtime:
  • Operating System:
  • Prettier plugins (if any):

Steps to reproduce:

Expected behavior:

Actual behavior:

@kachkaev
Copy link
Member

Hi @mishrasur7! Could you please elaborate? Not sure I understand what you mean.

@kachkaev kachkaev added the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Dec 17, 2022
@mishrasur7
Copy link
Author

Hi @kachkaev!
I mean to say, can we implement a functionality to copy commands into clipboard so its easy for users to just click and it gets copied to clipboard and can be pasted in command line?

@github-actions github-actions bot removed the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Dec 17, 2022
@mishrasur7
Copy link
Author

For example; we can copy this command to install redux toolkit easily from their docs.

Screenshot 2022-12-17 at 19 33 17

@kachkaev
Copy link
Member

Do you mean Prettier docs, e.g. https://prettier.io/docs/en/install.html? I.e. copy buttons here:

Screenshot 2022-12-17 at 19 28 28

@kachkaev kachkaev added the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Dec 17, 2022
@mishrasur7
Copy link
Author

Exactly!

@github-actions github-actions bot removed the status:awaiting response Issues that require answers to questions from maintainers before action can be taken label Dec 17, 2022
@kachkaev kachkaev added help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! area:website Issues about the website (https://prettier.io), excluding the playground labels Dec 19, 2022
@kachkaev
Copy link
Member

Got you, thanks! Feel free to create a PR if you want!

@thorn0
Copy link
Member

thorn0 commented Jan 12, 2023

Fixed by #14153

@thorn0 thorn0 closed this as completed Jan 12, 2023
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 27, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area:website Issues about the website (https://prettier.io), excluding the playground help wanted We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue! locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.
Projects
None yet
Development

No branches or pull requests

3 participants