vercel / vercel/hyper

Map Keys to Control Sequences

Open
#2,961 2 comments 9 reactions 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 am on the latest Hyper.app version
  • I have searched the issues of this repo and believe that this is not a duplicate

Issue

How do we map or bind keys to control or escape sequences in Hyper?
The config file ".hyper.js", has the keymaps section:

keymaps :{
    "editor:copy": "cmd+c",
    "editor:paste": "cmd+v"
}

But what if I want to map CMD+ALT+UP to a control or escape sequence?
I tried this but it didn't work:

keymaps :{
    "\x1b[1;11A": "cmd+alt+up",
    "\x1b[1;11B": "cmd+alt+down",
    "\x1b[1;11C": "cmd+alt+right",
    "\x1b[1;11D": "cmd+alt+left"
}

Thank you in advance.

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 with the keymaps section in .hyper.js and the attempted escape sequences shown in the issue. Determine how Hyper accepts key bindings for control or escape sequences, then verify the documented mapping with the requested Cmd+Alt+arrow combinations in Hyper.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.