vercel / vercel/hyper

macOS Touch Bar support

Open
#2,008 7 comments 21 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🎨 Type: Enhancement 🛠 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

So, iTerm recently landed support for the macOS Touch Bar (in that programs hosted in the terminal can create display-buttons for the touch bar that display custom content, and send a function-key such as F1..F12 to the terminal when tapped.)

The implementation uses iTerm2's 1337 escape-code with the SetKeyLabel, PushKeyLabels, and PopKeyLabels keys.

For instance, printing ESC+]1337;SetKeyLabel=F1=Save & Quit+BEL will cause iTerm2 to display a Touch Bar button with the text “Save & Quit”, that when tapped, sends to the application.

One example usage of this functionality is demonstrated here, where some of the cruft traditionally included in the command-line prompt is moved into the Touch Bar:

iTerm touch-bar support for zsh prompt information

I'd love to see this support validated and duplicated by Hyper, given how cutting-edge Hyper tends to be in other ways.

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. Start by locating Hyper's macOS terminal integration and the handling of iTerm2's 1337 escape codes; compare the SetKeyLabel, PushKeyLabels, and PopKeyLabels behavior described here. Done means Hyper can expose the requested Touch Bar buttons and send function-key events to terminal applications.

Written by the indexing model from the issue text.

Assessment

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