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

Add copy button to code snippets #1003

Open
happyRip opened this issue Nov 29, 2022 · 0 comments
Open

Add copy button to code snippets #1003

happyRip opened this issue Nov 29, 2022 · 0 comments
Assignees

Comments

@happyRip
Copy link
Member

Summary

A copy button for commands in code snippets.

Why do we need this ?

Users could press the button to copy whole code snippets instead of having to highlight the command and copy it with more mouse clicks/key presses.

The feature request was mentioned in the comments as well #227 (comment)

What is already there? What do you see now?

The commands are neatly displayed for users in code blocks.
code-enlarged

What is missing? What do you want to see?

A button in a corner or above the code block to copy its content.
docs-code-copy-button

How do you propose to document this?

There are many guides explaining how to implement this feature:

Can you do this yourself and submit a Pull Request?

I can do this myself and submit a PR. The design of the button would have to be made by a designer.

@happyRip happyRip added the needs/triage We still need to triage this label Nov 29, 2022
@happyRip happyRip added this to the 2022 Q4 milestone Nov 29, 2022
@happyRip happyRip self-assigned this Nov 29, 2022
@NicolasMrad NicolasMrad added goldplating and removed needs/triage We still need to triage this labels Dec 6, 2022
@NicolasMrad NicolasMrad modified the milestones: 2022 Q4, 2023 Q1 Dec 12, 2022
@NicolasMrad NicolasMrad modified the milestones: 2023 Q1, 2023 Q2 Apr 13, 2023
@adriansmares adriansmares removed this from the 2023 Q2 milestone May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants