Added --no-auto-back-and-forth to workspace commands.

This patch introduces the --no-auto-back-and-forth flag to both of

    workspace --no-auto-back-and-forth <name>
    workspace --no-auto-back-and-forth number <number>

This flag will only have an effect if the back_and_forth feature is
enabled. If passed, the feature will be ignored for this particular
call only.

fixes #2028
This commit is contained in:
Ingo Bürk
2015-10-23 23:36:37 +02:00
parent 185a2f24ba
commit 7270206e24
6 changed files with 91 additions and 26 deletions

View File

@ -1884,8 +1884,11 @@ for_window [instance=notepad] sticky enable
=== Changing (named) workspaces/moving to workspaces
To change to a specific workspace, use the +workspace+ command, followed by the
number or name of the workspace. To move containers to specific workspaces, use
+move container to workspace+.
number or name of the workspace. Pass the optional flag
+--no-auto-back-and-forth+ to disable <<back_and_forth>> for this specific call
only.
To move containers to specific workspaces, use +move container to workspace+.
You can also switch to the next and previous workspace with the commands
+workspace next+ and +workspace prev+, which is handy, for example, if you have
@ -1916,8 +1919,8 @@ workspace using +move container to workspace back_and_forth+.
-----------------------------------
workspace next|prev|next_on_output|prev_on_output
workspace back_and_forth
workspace <name>
workspace number <name>
workspace [--no-auto-back-and-forth] <name>
workspace [--no-auto-back-and-forth] number <name>
move [window|container] [to] workspace <name>
move [window|container] [to] workspace number <name>