~scoopta/wofi

fix shell escaping issue in man page example. v1 APPLIED

Mark Stosberg: 1
 fix shell escaping issue in man page example.

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~scoopta/wofi/patches/11833/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH] fix shell escaping issue in man page example. Export this patch

# HG changeset patch
# User Mark Stosberg <mark@stosberg.com>
# Date 1596337067 14400
#      Sat Aug 01 22:57:47 2020 -0400
# Node ID 3feeb1a4b70b52d9eb56b96681d4c39dd3077588
# Parent  7969d3f0cc9975492deac254e05124f7dda8cf4d
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.

diff --git a/man/wofi.7 b/man/wofi.7
--- a/man/wofi.7
+++ b/man/wofi.7
@@ -90,7 +90,7 @@

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
It's been pushed, thanks!