]> git.sur5r.net Git - i3/i3/commitdiff
Comply with documentation: 'workspace' token in 'assign' command 2137/head
authorFranz Thoma <franz.thoma@tngtech.com>
Mon, 28 Dec 2015 18:38:17 +0000 (19:38 +0100)
committerFranz Thoma <franz.thoma@tngtech.com>
Mon, 28 Dec 2015 19:11:25 +0000 (20:11 +0100)
According to the User's Guide [1], an `assign` command allows a
`workspace` token after the selector, as an alternative or in addition
to the unicode arrow `→`. In reality, however, the `workspace` token is
not recognized.

Example:
  assign [class="Firefox"] workspace "1: Browser"
should assign Firefox windows to workspace `1: Browser`, but the the
browser window appears on a new workspace called
`workspace "1: Browser"` instead.

With this fix, both `→` and `workspace` are recognized (and ignored)
after the selector.

[1] https://i3wm.org/docs/userguide.html#_automatically_putting_clients_on_specific_workspaces

parser-specs/config.spec

index 882e81fb83e491405d4385e2733613848ceae0c7..9dad79c02dd522877fe1283764ffb418a0913ebb 100644 (file)
@@ -146,6 +146,8 @@ state ASSIGN:
 state ASSIGN_WORKSPACE:
   '→'
       ->
+  'workspace'
+      ->
   workspace = string
       -> call cfg_assign($workspace)