vercel / vercel/hyper

Bracketed-paste mode

Open
#2,007 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

🛠 Type: Feature Request
Dominant language
TypeScript
Stars
44.7k
Forks
3.6k
Avg merge
21m
Merged PRs (30d)
1

Description

  • I have searched the issues of this repo and believe that this is not a duplicate

Hi! This is a feature-reqest to support bracketed-paste mode in Hyper.

The basics:

  • Upon receiving DECSET 2004 (ESC+[?2004h), Hyper should enter “bracketed-paste mode”.

    During this, any ⌘V or click-and-drag should …

    1. send ESC+[200~,
    2. send the pasted text,
    3. then send ESC+[201~.
  • Upon receiving DECRST 2004 (ESC+[?2004l), Hyper should then exit this mode, if it was previously in it.

This is supported by xterm, urxvt, gnome-terminal, iTerm 2, Terminal.app, so on and so forth.

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

Start by locating Hyper's existing paste handling and terminal escape-sequence processing. Trace how DECSET and DECRST 2004 are handled, then verify that paste actions emit the specified opening and closing sequences only while bracketed-paste mode is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
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.