Simulating arrow key presses
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
In my `.skhdrc` I am attempting to bind `lcmd + jikl` to emulate arrow keys. I use the keywords `up`,`left`,`down`,`right` following [keywords (modifiers and literals) #1 ](https://github.com/koekeishiya/skhd/issues/1)
```
lcmd - i : up
lcmd - j : left
lcmd - k : down
lcmd - l : right
```
I save and run `skhd -V`, but I am getting the error `Unknown command`
```
hotkey :: #131 {
mod: 'lcmd'
key: 'i' (0x22)
cmd: 'up'
}
hotkey :: #132 {
mod: 'lcmd'
key: 'j' (0x26)
cmd: 'left'
}
hotkey :: #133 {
mod: 'lcmd'
key: 'k' (0x28)
cmd: 'down'
}
hotkey :: #134 {
mod: 'lcmd'
key: 'l' (0x25)
cmd: 'right'
}
skhd: watching files for changes:
/Users/MYUSER/.skhdrc
fish: Unknown command: left
fish:
left
^~~^
fish: Unknown command: up
fish:
up
^^
fish: Unknown command: down
fish:
down
^~~^
fish: Unknown command: right
fish:
right
^~~~^
```
Is skhd capable of simulating arrow key presses? If so, how can I correct my config?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the .skhdrc bindings and run skhd -V to trace how the up, left, down, and right commands are dispatched. Check the referenced keyword behavior and the shell errors to determine whether these names are supported key events or commands; done means a corrected configuration that produces the four arrow-key presses without Unknown command errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, fish, macos
- Domain
- cli, desktop
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100