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 with formatting #7607

Open
jaraco opened this issue Nov 15, 2023 · 1 comment
Open

Copy with formatting #7607

jaraco opened this issue Nov 15, 2023 · 1 comment

Comments

@jaraco
Copy link

jaraco commented Nov 15, 2023

I recently wanted to share some output from a nice text-based UI that uses color, but found that copying the text from Hyper.js to the clipboard retained only the text and discarded the formatting. I asked around and found that other terminals, such as iTerm2, support a (hidden) feature to copy the text with formatting (e.g. Cmd+Opt+C on Mac) and when pasting that text into a google doc, it renders the text with formatting:

image

I'd like to be able to do the same with Hyper.js.

Describe the solution you'd like

Implement support for copy with formatting, extracting the formatting into HTML and storing that information on the clipboard as HTML.

Describe alternatives you've considered

I could switch to another terminal, but I'd like to continue to use Hyper.js for its portability and extensibility.

@jaraco
Copy link
Author

jaraco commented Jul 12, 2024

If someone is interested in doing this work, I'd like to sponsor it (bounty). If you're interested, let's discuss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant