asmvik / asmvik/skhd

"noremap"-like functionality?

Open
#209 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
8.1k
Forks
241
PR merge metrics
No merged PRs in 30d

Description

```
cmd - w : yabai -m window --toggle split

ctrl - w [
"firefox" : skhd -k "cmd - w"
]

```
I would expect that in firefox, pressing ```ctrl - w``` would send a ```cmd - w``` action, i.e. to close the current tab. However, what actually happens is that ```yabai -m window --toggle split``` gets executed.

**Question**: Is there a way to avoid this kind of recursive remapping? Kind of like _noremap_ keyword in vim?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the skhd configuration shown in the issue and trace how key bindings are dispatched when one binding invokes another. Done means a binding can send cmd-w to Firefox without recursively executing the outer yabai action, with the behavior documented or covered by an appropriate verification.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, macos
Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.