soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

Shortcut to copy code #416

Closed SmartManoj closed 4 years ago

SmartManoj commented 5 years ago

Describe the feature you'd like A clear and concise description of what you would like to see SOX implement.

pressing c inside code will copy ; Currently c is mapped to comments

Use case A short example of where this feature could be used

Suggested descriptions If you have suggestions for a short concise description (to include in the settings dialog), please mention them!

shu8 commented 5 years ago

There is already a feature as part of SOX that lets you copy code blocks to the clipboard ("Add a button to code in posts to let you copy it" under "Extras").

Is this what you're looking for?

SmartManoj commented 5 years ago

Yep but with a shortuct

shu8 commented 5 years ago

How should the shortcut know which code block on the page to copy?

On Sat, 13 Jul 2019, 04:13 SmartManoj, notifications@github.com<mailto:notifications@github.com> wrote:

Yep but with a shortuct

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/soscripted/sox/issues/416?email_source=notifications&email_token=ACDQ3DWWKTGPEZP63DFETV3P7FB43A5CNFSM4ICLNTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3IEDY#issuecomment-511083023, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACDQ3DUMIAGELTXDAWB5SRTP7FB43ANCNFSM4ICLNTPA.

SmartManoj commented 5 years ago

copy when hovering the snippet

shu8 commented 5 years ago

I'm not sure if this would be very useful then, because if you have to hover over the code block, you're already using your mouse -- it's probably easier to just click the button using the existing feature at that point!

On Sat, 13 Jul 2019 at 08:30, SmartManoj notifications@github.com<mailto:notifications@github.com> wrote:

copy when hovering the snippet

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/soscripted/sox/issues/416?email_source=notifications&email_token=ACDQ3DT7XRRSKGCRZ2ZMSXDP7GABNA5CNFSM4ICLNTPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZ3L2AA#issuecomment-511098112, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACDQ3DRTVO3O2D2YDO2VIFDP7GABNANCNFSM4ICLNTPA.

no-response[bot] commented 5 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

SmartManoj commented 5 years ago

The button is too small and hard to click

SmartManoj commented 5 years ago

Kinda like https://chrome.google.com/webstore/detail/copy-link-address/kdejdkdjdoabfihpcjmgjebcpfbhepmh?hl=en

shu8 commented 5 years ago

I can make the button bigger if that's the issue you find with it?

SmartManoj commented 5 years ago

click the button

Harder to move the cursor to corner

SmartManoj commented 4 years ago

There is already a feature as part of SOX that lets you copy code blocks to the clipboard ("Add a button to code in posts to let you copy it" under "Extras").

Is this what you're looking for?

Not working

shu8 commented 4 years ago

@SmartManoj again, please could you post another issue with more details, and steps to reproduce, otherwise comments on closed issues tend to get buried, and because this issue is for a new feature!