From: Alexander Neumann Date: Sun, 13 Oct 2013 13:18:20 +0000 (+0200) Subject: Add quoting for sample command X-Git-Tag: 4.7~43 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7f9d2ac9488cdb35508d7ad7c8171064e1ef5f00;p=i3%2Fi3 Add quoting for sample command The user's guide talks about renaming workspaces, for example to "2: mail", and a sample key binding for use with i3-input is supplied. However, this example lacks proper quoting for the format string, so that when workspace name with a space in it, like "2: mail", is given, the current workspace is renamed to "2:". This patch adds proper quoting. --- diff --git a/docs/userguide b/docs/userguide index 0cc147ca..25ea5d54 100644 --- a/docs/userguide +++ b/docs/userguide @@ -1590,7 +1590,7 @@ i3-msg 'rename workspace 5 to 6' i3-msg 'rename workspace 1 to "1: www"' i3-msg 'rename workspace "1: www" to "10: www"' i3-msg 'rename workspace to "2: mail" -bindsym $mod+r exec i3-input -F 'rename workspace to %s' -P 'New name: ' +bindsym $mod+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: ' -------------------------------------------------------------------------- === Moving workspaces to a different screen