From 15d48b377d8f44ed4ee7c41ae130b67321fecc7e Mon Sep 17 00:00:00 2001 From: Mark Stosberg Date: Sat, 1 Aug 2020 22:57:47 -0400 Subject: [PATCH] fix shell escaping issue in man page example. The "\t" wasn't escaped for the man page formatting, so it was coming out as an empty string. I tried fixing it with "\\t". That technically worked but resulted inconsistent spacing depending on how many digits were in the IDs. Switching to a space here resolves the issue and provides visually consistent formatting. --- man/wofi.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/wofi.7 b/man/wofi.7 index 4749f42..472917a 100644 --- a/man/wofi.7 +++ b/man/wofi.7 @@ -90,7 +90,7 @@ The following script can be used to do window switching: swaymsg \-t get_tree | .br - jq \-r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + "\t" + .name)' | + jq \-r '.nodes[].nodes[] | if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | .[] | select(.nodes==[]) | ((.id | tostring) + " " + .name)' | .br wofi \-\-show dmenu | { .br