BREAKS CONFIG: rename 'level up' to 'focus parent'
…and 'level down' to 'focus child'. More intuitive than the old command names.
This commit is contained in:
@ -75,7 +75,7 @@ is($content->[0]->{id}, $first, 'first container unmodified');
|
||||
# | | | |
|
||||
# --------------------------
|
||||
cmd 'split v';
|
||||
cmd 'level up';
|
||||
cmd 'focus parent';
|
||||
cmd 'open';
|
||||
|
||||
$content = get_ws_content($tmp);
|
||||
|
@ -23,9 +23,9 @@ cmd 'split v';
|
||||
my ($nodes, $focus) = get_ws_content($tmp);
|
||||
|
||||
is($nodes->[1]->{focused}, 0, 'split container not focused');
|
||||
cmd 'level up';
|
||||
cmd 'focus parent';
|
||||
($nodes, $focus) = get_ws_content($tmp);
|
||||
is($nodes->[1]->{focused}, 1, 'split container focused after level up');
|
||||
is($nodes->[1]->{focused}, 1, 'split container focused after focus parent');
|
||||
|
||||
my $third = open_empty_con($i3);
|
||||
|
||||
|
@ -38,9 +38,9 @@ is(get_focused($tmp), $second, 'second container focused again');
|
||||
# now change the orientation to horizontal and cycle
|
||||
##############################################################
|
||||
|
||||
cmd 'level up';
|
||||
cmd 'focus parent';
|
||||
cmd 'split h';
|
||||
cmd 'level down';
|
||||
cmd 'focus child';
|
||||
|
||||
cmd 'focus down';
|
||||
is(get_focused($tmp), $first, 'first container focused');
|
||||
|
@ -48,7 +48,7 @@ sleep 0.25;
|
||||
# Set the parent to floating
|
||||
#####################################################################
|
||||
cmd 'nop setting floating';
|
||||
cmd 'level up';
|
||||
cmd 'focus parent';
|
||||
cmd 'mode floating';
|
||||
|
||||
#####################################################################
|
||||
|
@ -79,16 +79,16 @@ ok(@content == 1, 'one con at workspace level');
|
||||
is($content[0]->{layout}, 'stacked', 'layout stacked');
|
||||
|
||||
#####################################################################
|
||||
# 3: level up, open two new cons, check that they end up in a stacked
|
||||
# 3: focus parent, open two new cons, check that they end up in a stacked
|
||||
# con
|
||||
#####################################################################
|
||||
|
||||
cmd 'level up';
|
||||
cmd 'focus parent';
|
||||
my $right_top = open_standard_window($x);
|
||||
my $right_bot = open_standard_window($x);
|
||||
|
||||
@content = @{get_ws_content($tmp)};
|
||||
is(@content, 2, 'two cons at workspace level after level up');
|
||||
is(@content, 2, 'two cons at workspace level after focus parent');
|
||||
is($content[0]->{layout}, 'stacked', 'layout stacked');
|
||||
is($content[1]->{layout}, 'stacked', 'layout stacked');
|
||||
|
||||
|
Reference in New Issue
Block a user