yusanshi/emgithub

Feature request: copy shortcut

hcientist opened this issue · 5 comments

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

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

Thx!

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)

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

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

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