Skip to content
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

Copy an answer's code snippets into the system clipboard #17

Open
larumbe opened this issue Nov 13, 2021 · 2 comments
Open

Copy an answer's code snippets into the system clipboard #17

larumbe opened this issue Nov 13, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@larumbe
Copy link

larumbe commented Nov 13, 2021

Sometimes when browsing answers, I must resort to 'tmux' terminal text selection and copy functions for pasting their code into my editor.
It would be nice of 'so' would somehow let you pick a code snippet by number and have it copied into your system clipboard.

@x2db
Copy link

x2db commented Jan 10, 2022

+1

@samtay samtay added enhancement New feature or request help wanted Extra attention is needed labels Feb 23, 2022
@samtay
Copy link
Owner

samtay commented Aug 21, 2022

As of v0.4.7 you can press y and it will copy either the question or the answer, whichever side is currently focused. This is admittedly not as sophisticated as individual text snippets, but hopefully it gets you half way there?

Depending on your linux distro be sure to set your copy_cmd in your configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants