Map Keys to Control Sequences
Open
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
- OS version and name: MacOS High Sierra 10.13.4
- Hyper.app version: 2.0.0 (stable)
- Link of a Gist with the contents of your .hyper.js: https://gist.github.com/msluser/50b3d66b400d91cbd81cd1e909acb57e.js
- Relevant information from devtools N/A
- The issue is reproducible in vanilla Hyper.app: Is Vanilla
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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