asmvik / asmvik/skhd

Sending escape sequence

Open
#210 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C
Stars
8.1k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

I have remapped my command to option (alt) via the Mac keyboard modifier keys. Unfortunately iterm2 doesn't seem to be happy with this, as asking it to map option to Esc+ does not work.

I tried to use skhd for this, but this does not work very well. I.e.:

```
alt - w [
"iTerm2" : skhd --key escape; skhd --key w
* ~
]
```

is basically registered as esc, and then a w. Not the `^[w` sequence.

Is there anyway to map a key to an escape sequence?

Contributor guide

No contributing guide indexed for this repository

Research direction

The report mentions iTerm2 and a skhd command using skhd --key escape and skhd --key w, but names no source files or tests. Start by reproducing that command sequence on macOS and tracing how skhd emits simulated keys; done means a key mapping can produce the requested escape sequence as one sequence rather than separate escape and w events.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
cli, desktop
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.