Whenever I cmd + f in my Google Chrome to search the web page, the parsing of the yabai windows output fails due to a newline in the output. Google Chrome will prefix the window title with "Find in page\n":
{
"title": "Find in page\n Amazon Web Services Sign-In"
}
I'm not sure since when this was broken, possibly since f165275d1c87fed45129b99da0163459b6f87f0f, but reverting this commit still did not fix this issue. I got it fixed by adding the | tr -d '\n' at the end instead.
Type of change
[X] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
I manually tested this.
Before my commit, it would show "... JSON error..." in the bar if I would cmd + f on a page. After my commit, it works normally.
Test Configuration:
OS version Sonoma 14.5
Yabai version yabai-v7.1.1
Übersicht version Version 1.6 (82)
Google Chrome version 124.0.6367.209
Checklist:
[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my code
[X] I have commented my code, particularly in hard-to-understand areas
Description
Whenever I
cmd + f
in my Google Chrome to search the web page, the parsing of the yabai windows output fails due to a newline in the output. Google Chrome will prefix the window title with "Find in page\n":I'm not sure since when this was broken, possibly since f165275d1c87fed45129b99da0163459b6f87f0f, but reverting this commit still did not fix this issue. I got it fixed by adding the
| tr -d '\n'
at the end instead.Type of change
How Has This Been Tested?
I manually tested this.
Before my commit, it would show "... JSON error..." in the bar if I would
cmd + f
on a page. After my commit, it works normally.Test Configuration:
Checklist: