You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my browser I have a focused tab whose title has a special character:
All skhd keyboard shortcuts which pipe to jq stop working when I focus this tab. If I change tabs or close it, the shortcuts start working again.
This is because jq fails processing if it encounters some special characters, such as in an application title, which are output in a yabai query:
jq: parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 278
So either yabai should sanitize the output, OR we have to pipe the output to a sanitizer before sending it to jq. A nasty edge case. Maybe yabai could have a command line flag to escape control characters? I couldn't find a jq option to escape the input.
The text was updated successfully, but these errors were encountered:
In my browser I have a focused tab whose title has a special character:
All skhd keyboard shortcuts which pipe to
jq
stop working when I focus this tab. If I change tabs or close it, the shortcuts start working again.This is because
jq
fails processing if it encounters some special characters, such as in an application title, which are output in a yabai query:So either yabai should sanitize the output, OR we have to pipe the output to a sanitizer before sending it to
jq
. A nasty edge case. Maybeyabai
could have a command line flag to escape control characters? I couldn't find ajq
option to escape the input.The text was updated successfully, but these errors were encountered: