]> git.sur5r.net Git - i3/i3/commit - include/data.h
Allow assign to workspace by number 2887/head
authorOrestis Floros <orestisf1993@gmail.com>
Mon, 28 Aug 2017 02:14:03 +0000 (05:14 +0300)
committerOrestis Floros <orestisf1993@gmail.com>
Fri, 15 Sep 2017 00:38:13 +0000 (03:38 +0300)
commiteaf7a49e28b7ff8e1820a1b23350647574a0ed5a
tree3ce1affdbb7752eac99998fd58ee95e5317ff60a
parent0f2bce391686e8c4126338ee28d0e199a49f13b5
Allow assign to workspace by number

Makes "assign [<criteria>] workspace number <number>" work in the same
manner as "move to workspace number <number>" instead of assigning the
window to a workspace named "number <number>".

config.spec is modified to expect a 'number' string and an extra
argument is used in cfg_assign.

For workspaces that don't exist yet, workspace_get is used as a
fallback. This also allows the user to assign to "<number> <workspace>"
eg "2: work" and the full name will be used if workspace number 2
doesn't exist yet.

Fixes #2590.
docs/userguide
include/config_directives.h
include/data.h
parser-specs/config.spec
src/config_directives.c
src/manage.c
testcases/t/166-assign.t
testcases/t/201-config-parser.t