variables as values?
- Dominant language
- C
- Stars
- 8.1k
- Forks
- 241
- PR merge metrics
- No merged PRs in 30d
Description
Is it possible to set and use variables within commands?
This works (focuses on a term window titled 'qalc':
``` bash
alt + cmd - 0x29 : yabai -m window $(yabai -m query --windows | jq '.[] | select(.title == "qalc") | .id') --focus
```
But this gives the error "undeclared identifier":
```bash
QALC=$(yabai -m query --windows | jq '.[] | select(.title == "qalc") | .id')
alt + cmd - 0x29 : yabai -m window ${QALC} --focus
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the two command forms from the report and trace how skhd parses and executes command text; the issue names no source file or test. Done would mean establishing whether variables are supported in configured commands and documenting or testing the resulting behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100