sindresorhus/refined-github

Permit to copy the single line code block with a click #2423

oktapodia posted onGitHub

<!-- Thanks for contributing! 🏓 -->

Might be interesting to have a feature permitting to copy a code block via a click on a clipboard icon

Example URL:

<!-- Please specify a URL where the feature should appear -->

image


I'm afraid there was already an (closed) request for this request: https://github.com/sindresorhus/refined-github/issues/1095

Hopefully @fregante will reconsider, because I'm also 👍

posted by jerone over 5 years ago

As suggested, this is similar to #1095 but also worse in that there are dozens of code elements on any given page that definitely don't need such a button.

posted by fregante over 5 years ago

I am strictly speaking about inline code block, like on every github readme to configure our environment by copy/pasting the command for an example

Most of them are useful + that permits to directly copy a commit hash via a simple click as well... And not intrusive because it's only displaying the clippy octicon when hovering the code block..

posted by oktapodia over 5 years ago

This is now supported natively by GitHub https://twitter.com/natfriedman/status/1391862005095485440?s=21

but still not for each inline code element for obvious reasons.

posted by fregante almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests