vercel / vercel/hyper

Copy with formatting

Open
#7,607 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Begin by tracing Hyper.js's existing copy-to-clipboard path; done means copying terminal output also places formatted HTML on the clipboard while preserving plain-text clipboard behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, typescript
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.