vercel / vercel/hyper

Hyperterm doesn't handle Alt key combinations correctly

Open
#1,361 16 comments 30 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🤯 Type: Compatibility
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 10.12.2
  • Hyper.app version: 1.0.1
  • The issue is reproducible in vanilla Hyper.app: Added modifierKeys: { altIsMeta: true } to otherwise stock .hyper.js

Issue

Issue: when trying to do Alt key combinations (ie. Alt+Left_arrow, Alt+backspace), Hyperterm doesn't interpret this as a command (such as skipping back/forward a word or deleting an entire word). When using Alt+arrow keys, Hyper places [D or [C, etc. and when using Alt+delete, it deletes two words instead of one. Alt+delete also causes multiple lines of text to be erased in emacs.

Relevant info: using zsh shell + ohmyzsh, only modification to .hyper.js is
modifierKeys: { altIsMeta: true } to get Alt to work at all.

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 reproducing the Alt+arrow and Alt+delete behavior in Hyper with the reported .hyper.js setting, using zsh and the stated macOS version. Compare the resulting escape sequences and deletions with expected shell behavior; done means word navigation and deletion work without extra characters or unintended erasure.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, zsh
Domain
cli, operating-systems
Issue type
Bug
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.