yusanshi / emgithub

Embed a file from GitHub repository just like GitHub Gist.
https://emgithub.com
MIT License
409 stars 77 forks source link

Feature request: copy shortcut #9

Closed hcientist closed 3 years ago

hcientist commented 4 years ago

Would it be interesting to you/others to add little sharing shortcuts? Like maybe an icon to copy, or an icon to facilitate sharing?

yusanshi commented 4 years ago

What do you mean by "sharing"? Share what? Could you give an example of the scenario?

Thx!

Nolanrulesroblox commented 4 years ago

What do you mean by "sharing"? Share what? Could you give an example of the scenario?

I think @hcientist means like Share button on top of the Frame says something like "share this code on *!" or like click to copy?

Example: ------------------REPO NAME ETC -------- Copy/Share ---- 1 - echo "hi" 2 - echo "clear"

user Presses:

Copy - Copy all text from 1 to 2 to Clipboard

Share - Copy Github link to clipboard (not to raw, just to repo - branch - file)

yusanshi commented 3 years ago

Thanks! I'll add a "help wanted" label

yusanshi commented 3 years ago

Update: @cfurrow and I added the button to copy (#12)

Mouse cursor hovering on the code block but away from the copy button: image

Mouse cursor hovering on the copy button (hmm, the screenshot doesn't take the cursor in): image

yusanshi commented 3 years ago

Close inactive (and partially resolved) issue. Reopen if needed :)