-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Feature Request: Copy to clipboard #130
Comments
@marcobiedermann apologies for not getting back to you on this sooner man. I haven't had much free time lately and have been neglecting my open source projects a bit. This sounds like a good idea to me 👍 My attempt to make it convenient to select/copy snippets by auto-selecting all text in a code block was a poor choice. |
@joshbuchea Yeah, no worries. I was also very busy the last few weeks. Maybe I can work on this issue this weekend :) |
I don't think the "Copy to Clipboard" functionality is possible with the current layout of the static site, which is made on Jekyll. All the content on http://gethead.info is parsed from the One possible solution would be to divide every code block into individual files and place them in the Did you have any other solution in mind @marcobiedermann? cc: @joshbuchea |
@dakshshah96 copy to clipboard functionality should be possible to layer on with some javascript. I'll see if I can add this in the near future unless anyone else wants to do it and submit a pull request 😉 |
I suggest adding an option to copy the code snippets to your clipboard.
Clipboard.js is a nice JavaScript library which makes it super easy.
If you agree, I will start working on this :)
The text was updated successfully, but these errors were encountered: