asmvik / asmvik/skhd

Prevent recursive keypress processing?

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

Description

Let's say I have the following skhdrc:
```
home : skhd -k "cmd - left"
end : skhd -k "cmd - right"
```
This does what I'm looking for - `home` and `end` move to the ends of the current line.
But now say I add this (either before or after; doesn't seem to matter):
```
cmd - left : skhd -k "alt - left"
cmd - right : skhd -k "alt - right"
```
now `home` and `end` move by single words, presumably because this happens:
```
home -> cmd-left -> alt-left
```
What I am looking to do is to stop the parsing after the first translation, and not have skhd reinterpret its own output. Is this possible?

[Relevant related comment from last year](https://github.com/koekeishiya/skhd/issues/141#issuecomment-662713277)

Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the recursive behavior with the skhdrc configuration in the issue, then read the related comment on issue #141. Trace how emitted keypresses are fed back into key binding processing; done means the first translation occurs without reinterpreting its output.

Written by the indexing model from the issue text.

Assessment

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