Remove dead documentation for non-existing feature "stack-limit".

This commit is contained in:
Ingo Bürk 2015-06-09 23:13:15 +02:00
parent 1d4b5863a5
commit 9571200baa
4 changed files with 0 additions and 40 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -503,17 +503,11 @@ default_orientation vertical
This option determines in which mode new containers on workspace level will This option determines in which mode new containers on workspace level will
start. start.
///////////////////////////////
See also <<stack-limit>>.
//////////////////////////////
*Syntax*: *Syntax*:
--------------------------------------------- ---------------------------------------------
workspace_layout default|stacking|tabbed workspace_layout default|stacking|tabbed
--------------------------------------------- ---------------------------------------------
/////////////////////////////////////////////
new_container stack-limit <cols|rows> <value>
/////////////////////////////////////////////
*Example*: *Example*:
--------------------- ---------------------
@ -2063,37 +2057,9 @@ bindsym $mod+y border 1pixel
bindsym $mod+u border none bindsym $mod+u border none
---------------------------- ----------------------------
[[stack-limit]]
///////////////////////////////////////////////////////////////////////////////
TODO: not yet implemented
=== Changing the stack-limit of a container
If you have a single container with a lot of windows inside it (say, more than
10), the default layout of a stacking container can get a little unhandy.
Depending on your screens size, you might end up with only half of the title
lines being actually used, wasting a lot of screen space.
Using the +stack-limit+ command, you can limit the number of rows or columns
in a stacking container. i3 will create columns or rows (depending on what
you limited) automatically as needed.
*Syntax*: *Syntax*:
-----------------------------
stack-limit cols|rows <value>
-----------------------------
*Examples*: *Examples*:
-------------------
# I always want to have two window titles in one line
stack-limit cols 2
# Not more than 5 rows in this stacking container
stack-limit rows 5
-------------------
image:stacklimit.png[Container limited to two columns]
///////////////////////////////////////////////////////////////////////////////
[[shmlog]] [[shmlog]]

View File

@ -117,7 +117,6 @@ for my $line (@lines) {
# new_container changed only the statement name to workspace_layout # new_container changed only the statement name to workspace_layout
if ($statement eq 'new_container') { if ($statement eq 'new_container') {
# TODO: new_container stack-limit
print "workspace_layout$parameters\n"; print "workspace_layout$parameters\n";
next; next;
} }
@ -184,7 +183,6 @@ sub convert_command {
restart restart
reload reload
exit exit
stack-limit
); );
my ($statement, $key, $command) = ($line =~ /([a-zA-Z_-]+)\s+([^\s]+)\s+(.*)/); my ($statement, $key, $command) = ($line =~ /([a-zA-Z_-]+)\s+([^\s]+)\s+(.*)/);

View File

@ -147,8 +147,6 @@ $input = <<EOT;
bindsym Mod1+s restart bindsym Mod1+s restart
bindsym Mod1+s reload bindsym Mod1+s reload
bindsym Mod1+s exit bindsym Mod1+s exit
bindsym Mod1+s stack-limit cols 2
bindsym Mod1+s stack-limit rows 3
bind Mod1+c exec /usr/bin/urxvt bind Mod1+c exec /usr/bin/urxvt
mode "asdf" { mode "asdf" {
bind 36 mode default bind 36 mode default
@ -161,8 +159,6 @@ ok(line_exists($output, qr|^bindsym Mod1\+s mark foo$|), 'mark unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s restart$|), 'restart unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s restart$|), 'restart unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s reload$|), 'reload unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s reload$|), 'reload unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s exit$|), 'exit unchanged'); ok(line_exists($output, qr|^bindsym Mod1\+s exit$|), 'exit unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s stack-limit cols 2$|), 'stack-limit unchanged');
ok(line_exists($output, qr|^bindsym Mod1\+s stack-limit rows 3$|), 'stack-limit unchanged');
ok(line_exists($output, qr|^bindcode Mod1\+c exec /usr/bin/urxvt$|), 'bind changed to bindcode'); ok(line_exists($output, qr|^bindcode Mod1\+c exec /usr/bin/urxvt$|), 'bind changed to bindcode');
ok(line_exists($output, qr|^mode "asdf" {$|), 'mode asdf unchanged'); ok(line_exists($output, qr|^mode "asdf" {$|), 'mode asdf unchanged');
ok(line_exists($output, qr|^bindcode 36 mode \"default\"$|), 'mode default unchanged'); ok(line_exists($output, qr|^bindcode 36 mode \"default\"$|), 'mode default unchanged');