id stringlengths 20 30 | source stringclasses 1
value | chunk_index int64 0 520k | token_count int32 154 512 | content stringlengths 185 57.5k |
|---|---|---|---|---|
rust_dataset_chunk_515700 | rust_dataset.txt | 515,700 | 512 | 1, None, None)
.unwrap();
tab.move_focus_right(1).unwrap();
tab.close_focused_pane(1, None).unwrap();
assert_eq!(tab.tiled_panes.panes.len(), 6, "Six panes left in tab");
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
... |
rust_dataset_chunk_515701 | rust_dataset.txt | 515,701 | 512 | "third remaining pane row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.x,
0,
"fourth remaining pane x position"
);
assert_eq!(
tab.tiled_panes
... |
rust_dataset_chunk_515702 | rust_dataset.txt | 515,702 | 512 | _and_size()
.x,
61,
"sixths remaining pane x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.y,
22,
"sixths remaining pane y position"
);... |
rust_dataset_chunk_515703 | rust_dataset.txt | 515,703 | 512 | ├────┴──────┤
// │█████│xxxxx│ │xxxxxxxxxxx│
// │█████├─────┤ ==close==> ├───────────┤
// │█████│xxxxx│ │xxxxxxxxxxx│
// ├────┬┴─────┤ ├────┬──────┤
// │xxxx│xxxxxx│ │xxxx│xxxxxx│
// └────┴──────┘ └────┴──────┘
// █ == pane being closed... |
rust_dataset_chunk_515704 | rust_dataset.txt | 515,704 | 512 | ).unwrap();
assert_eq!(tab.tiled_panes.panes.len(), 6, "Six panes left in tab");
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.x,
0,
"first remaining pane x position"
);
... |
rust_dataset_chunk_515705 | rust_dataset.txt | 515,705 | 512 | .get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.x,
61,
"second remaining pane x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515706 | rust_dataset.txt | 515,706 | 512 | anes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.y,
22,
"sixths remaining pane y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
... |
rust_dataset_chunk_515707 | rust_dataset.txt | 515,707 | 512 | unwrap();
assert_eq!(
tab.get_active_pane(1).unwrap().y(),
10,
"Active pane is the bottom one"
);
}
#[test]
pub fn move_focus_down_to_the_most_recently_used_pane() {
let size = Size {
cols: 121,
rows: 20,
};
let stacked_resize = true;
let mut tab = creat... |
rust_dataset_chunk_515708 | rust_dataset.txt | 515,708 | 512 | );
let new_pane_id_3 = PaneId::Terminal(4);
tab.horizontal_split(new_pane_id_1, None, 1, None, None)
.unwrap();
tab.move_focus_up(1).unwrap();
tab.vertical_split(new_pane_id_2, None, 1, None, None)
.unwrap();
tab.vertical_split(new_pane_id_3, None, 1, None, None)
.unwrap();
... |
rust_dataset_chunk_515709 | rust_dataset.txt | 515,709 | 512 | (1).unwrap();
assert_eq!(
tab.get_active_pane(1).unwrap().y(),
15,
"Active pane y position"
);
assert_eq!(
tab.get_active_pane(1).unwrap().x(),
0,
"Active pane x position"
);
}
#[test]
pub fn move_focus_right() {
let size = Size {
cols: 121,
... |
rust_dataset_chunk_515710 | rust_dataset.txt | 515,710 | 512 | , stacked_resize);
let new_pane_id = PaneId::Terminal(2);
tab.horizontal_split(new_pane_id, None, 1, None, None)
.unwrap();
tab.move_focus_up(1).unwrap();
tab.move_active_pane_down(1);
assert_eq!(
tab.get_active_pane(1).unwrap().y(),
10,
"Active pane is the bottom o... |
rust_dataset_chunk_515711 | rust_dataset.txt | 515,711 | 512 | tab.move_active_pane_up(1);
assert_eq!(
tab.get_active_pane(1).unwrap().y(),
0,
"Active pane is the top one"
);
assert_eq!(
tab.get_active_pane(1).unwrap().pid(),
PaneId::Terminal(2),
"Active pane is the top one"
);
}
#[test]
pub fn move_active_pane_up_... |
rust_dataset_chunk_515712 | rust_dataset.txt | 515,712 | 512 | assert_eq!(
tab.get_active_pane(1).unwrap().pid(),
PaneId::Terminal(2),
"Active pane is the left one"
);
}
#[test]
pub fn move_active_pane_left_to_the_most_recently_used_position() {
let size = Size {
cols: 121,
rows: 20,
};
let stacked_resize = true;
let... |
rust_dataset_chunk_515713 | rust_dataset.txt | 515,713 | 512 | right one"
);
}
#[test]
pub fn move_active_pane_right_to_the_most_recently_used_position() {
let size = Size {
cols: 121,
rows: 20,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resize);
let new_pane_id_1 = PaneId::Terminal(2);
let new_pane_id_2 =... |
rust_dataset_chunk_515714 | rust_dataset.txt | 515,714 | 512 | )
.unwrap();
tab_resize_down(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&new_pane_id)
.unwrap()
.position_and_size()
.x,
0,
"focused pane x position"
);
assert_eq!(
tab.tiled_panes
... |
rust_dataset_chunk_515715 | rust_dataset.txt | 515,715 | 512 | // │███████████│ │███████████│
// ├───────────┤ ==resize=down==> │███████████│
// │ │ ├───────────┤
// │ │ │ │
// └───────────┘ └───────────┘
// █ == focused pane
let size = Size {
cols:... |
rust_dataset_chunk_515716 | rust_dataset.txt | 515,716 | 512 | !(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.cols
.as_usize(),
121,
"focused pane column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&Pane... |
rust_dataset_chunk_515717 | rust_dataset.txt | 515,717 | 512 | assert_eq!(
tab.tiled_panes
.panes
.get(&new_pane_id_1)
.unwrap()
.position_and_size()
.y,
15,
"focused pane y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&new_pane_id_1)
... |
rust_dataset_chunk_515718 | rust_dataset.txt | 515,718 | 512 | .tiled_panes
.panes
.get(&first_pane_id)
.unwrap()
.position_and_size()
.cols
.as_usize(),
121,
"pane above column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&first_pane_id)
... |
rust_dataset_chunk_515719 | rust_dataset.txt | 515,719 | 512 | ,
"focused pane y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&new_pane_id_1)
.unwrap()
.position_and_size()
.cols
.as_usize(),
121,
"focused pane column count"
);
assert_eq!(
tab.til... |
rust_dataset_chunk_515720 | rust_dataset.txt | 515,720 | 512 | (),
61,
"second pane above column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&first_pane_id)
.unwrap()
.position_and_size()
.rows
.as_usize(),
16,
"second pane above row count"
);
}
#[test... |
rust_dataset_chunk_515721 | rust_dataset.txt | 515,721 | 512 | ,
16,
"focused pane y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&focused_pane)
.unwrap()
.position_and_size()
.cols
.as_usize(),
60,
"focused pane column count"
);
assert_eq!(
... |
rust_dataset_chunk_515722 | rust_dataset.txt | 515,722 | 512 | "pane above column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&pane_above)
.unwrap()
.position_and_size()
.rows
.as_usize(),
16,
"pane above row count"
);
assert_eq!(
tab.tiled_panes
... |
rust_dataset_chunk_515723 | rust_dataset.txt | 515,723 | 512 | pane_below_and_left = PaneId::Terminal(2);
let pane_below = PaneId::Terminal(3);
let focused_pane = PaneId::Terminal(4);
tab.horizontal_split(pane_below_and_left, None, 1, None, None)
.unwrap();
tab.vertical_split(pane_below, None, 1, None, None).unwrap();
tab.move_focus_up(1).unwrap();
... |
rust_dataset_chunk_515724 | rust_dataset.txt | 515,724 | 512 | assert_eq!(
tab.tiled_panes
.panes
.get(&pane_to_the_left)
.unwrap()
.position_and_size()
.rows
.as_usize(),
15,
"pane above and to the left row count"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515725 | rust_dataset.txt | 515,725 | 512 | anes_above_aligned_right_with_current_pane() {
// ┌─────┬─────┐ ┌─────┬─────┐
// │ │ │ │ │ │
// │ │ │ │ │ │
// ├─────┼─────┤ ==resize=down==> │ ├─────┤
// │█████│ │ ├─────┤ │
... |
rust_dataset_chunk_515726 | rust_dataset.txt | 515,726 | 512 | );
assert_eq!(
tab.tiled_panes
.panes
.get(&focused_pane)
.unwrap()
.position_and_size()
.rows
.as_usize(),
14,
"focused pane row count"
);
assert_eq!(
tab.tiled_panes
.panes
.ge... |
rust_dataset_chunk_515727 | rust_dataset.txt | 515,727 | 512 | es
.get(&pane_above_and_right)
.unwrap()
.position_and_size()
.x,
61,
"pane above and to the right x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&pane_above_and_right)
.unwrap()
.posi... |
rust_dataset_chunk_515728 | rust_dataset.txt | 515,728 | 512 | , 1, None, None)
.unwrap();
tab.move_focus_up(1).unwrap();
tab.vertical_split(pane_to_the_right, None, 1, None, None)
.unwrap();
tab.move_focus_left(1).unwrap();
tab_resize_down(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&focused_pane)
... |
rust_dataset_chunk_515729 | rust_dataset.txt | 515,729 | 512 | get(&pane_below_and_right)
.unwrap()
.position_and_size()
.x,
61,
"pane below and to the right x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&pane_below_and_right)
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515730 | rust_dataset.txt | 515,730 | 512 | │ │ │
// │ │ │ │ │ │ │ │
// ├───┼───┼───┤ ==resize=down==> ├───┤ ├───┤
// │ │███│ │ │ ├───┤ │
// │ │███│ │ │ │███│ │
// └───┴───┴───┘ └───┴───┴───┘
// █ == focused pane
let size ... |
rust_dataset_chunk_515731 | rust_dataset.txt | 515,731 | 512 | assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.rows
.as_usize(),
15,
"pane 1 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&Pan... |
rust_dataset_chunk_515732 | rust_dataset.txt | 515,732 | 512 | 14,
"pane 3 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.x,
91,
"pane 4 x position"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515733 | rust_dataset.txt | 515,733 | 512 | ()
.x,
91,
"pane 6 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.y,
0,
"pane 6 y position"
);
assert_eq!(
tab.tiled_panes... |
rust_dataset_chunk_515734 | rust_dataset.txt | 515,734 | 512 | .unwrap();
tab.move_focus_up(1).unwrap();
tab.vertical_split(PaneId::Terminal(5), None, 1, None, None)
.unwrap();
tab.vertical_split(PaneId::Terminal(6), None, 1, None, None)
.unwrap();
tab.move_focus_left(1).unwrap();
tab_resize_down(&mut tab, 1);
assert_eq!(
tab.tiled... |
rust_dataset_chunk_515735 | rust_dataset.txt | 515,735 | 512 | 2))
.unwrap()
.position_and_size()
.rows
.as_usize(),
15,
"pane 2 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.x,
... |
rust_dataset_chunk_515736 | rust_dataset.txt | 515,736 | 512 | .panes
.get(&PaneId::Terminal(5))
.unwrap()
.position_and_size()
.x,
61,
"pane 5 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(5))
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515737 | rust_dataset.txt | 515,737 | 512 | │ │ │ │ │ │
// │ │ │ │ │ │ │ │
// ├─┼─┬───┬─┼─┤ ==resize=down==> ├─┤ ├─┤
// │ │ │███│ │ │ │ ├─┬───┬─┤ │
// │ │ │███│ │ │ │ │ │███│ │ │
// └─┴─┴───┴─┴─┘ └─┴─┴───┴─┴─┘
//... |
rust_dataset_chunk_515738 | rust_dataset.txt | 515,738 | 512 | y,
0,
"pane 1 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.cols
.as_usize(),
60,
"pane 1 column count"
);
assert_eq!(
ta... |
rust_dataset_chunk_515739 | rust_dataset.txt | 515,739 | 512 | .position_and_size()
.cols
.as_usize(),
31,
"pane 3 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.rows
.as_usize(),
16... |
rust_dataset_chunk_515740 | rust_dataset.txt | 515,740 | 512 | (&PaneId::Terminal(5))
.unwrap()
.position_and_size()
.rows
.as_usize(),
14,
"pane 5 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()... |
rust_dataset_chunk_515741 | rust_dataset.txt | 515,741 | 512 | .tiled_panes
.panes
.get(&PaneId::Terminal(8))
.unwrap()
.position_and_size()
.x,
83,
"pane 8 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(8))
.unwrap()
... |
rust_dataset_chunk_515742 | rust_dataset.txt | 515,742 | 512 | (1).unwrap();
tab.vertical_split(PaneId::Terminal(3), None, 1, None, None)
.unwrap();
tab.vertical_split(PaneId::Terminal(4), None, 1, None, None)
.unwrap();
tab.move_focus_left(1).unwrap();
tab.vertical_split(PaneId::Terminal(5), None, 1, None, None)
.unwrap();
tab.vertical_... |
rust_dataset_chunk_515743 | rust_dataset.txt | 515,743 | 512 | anes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.y,
15,
"pane 2 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.positi... |
rust_dataset_chunk_515744 | rust_dataset.txt | 515,744 | 512 | _eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.cols
.as_usize(),
31,
"pane 4 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::... |
rust_dataset_chunk_515745 | rust_dataset.txt | 515,745 | 512 | ,
"pane 6 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.rows
.as_usize(),
16,
"pane 6 row count"
);
assert_eq!(
tab.tiled_pane... |
rust_dataset_chunk_515746 | rust_dataset.txt | 515,746 | 512 | .rows
.as_usize(),
15,
"pane 8 row count"
);
}
#[test]
pub fn cannot_resize_down_when_pane_below_is_at_minimum_height() {
// ┌───────────┐ ┌───────────┐
// │███████████│ │███████████│
// ├───────────┤ ==resize=down==> ├──────────... |
rust_dataset_chunk_515747 | rust_dataset.txt | 515,747 | 512 | _size = Some(SplitSize::Fixed(10));
initial_layout.children = vec![fixed_child, TiledPaneLayout::default()];
let mut tab = create_new_tab_with_layout(size, initial_layout);
tab_resize_down(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(0))
... |
rust_dataset_chunk_515748 | rust_dataset.txt | 515,748 | 512 | (),
10,
"pane 2 height stayed the same"
);
}
#[test]
pub fn cannot_resize_up_when_pane_below_has_fixed_rows() {
// ┌───────────┐ ┌───────────┐
// │███████████│ │███████████│
// ├───────────┤ ==resize=down==> ├───────────┤
// │ │ ... |
rust_dataset_chunk_515749 | rust_dataset.txt | 515,749 | 512 | 20,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resize);
tab.vertical_split(PaneId::Terminal(2), None, 1, None, None)
.unwrap();
tab_resize_left(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
... |
rust_dataset_chunk_515750 | rust_dataset.txt | 515,750 | 512 | 20,
"pane 2 row count"
);
}
#[test]
pub fn resize_left_with_pane_to_the_right() {
// ┌─────┬─────┐ ┌───┬───────┐
// │█████│ │ │███│ │
// │█████│ │ ==resize=left==> │███│ │
// │█████│ │ │███│ │
// └─... |
rust_dataset_chunk_515751 | rust_dataset.txt | 515,751 | 512 | assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.y,
0,
"pane 2 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
... |
rust_dataset_chunk_515752 | rust_dataset.txt | 515,752 | 512 | .panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.y,
0,
"pane 1 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515753 | rust_dataset.txt | 515,753 | 512 | tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.cols
.as_usize(),
31,
"pane 2 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
... |
rust_dataset_chunk_515754 | rust_dataset.txt | 515,754 | 512 | ()
.position_and_size()
.cols
.as_usize(),
54,
"pane 1 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.rows
.as_usize... |
rust_dataset_chunk_515755 | rust_dataset.txt | 515,755 | 512 | .get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.rows
.as_usize(),
10,
"pane 2 row count"
);
}
#[test]
pub fn resize_left_with_panes_to_the_left_aligned_top_with_current_pane() {
// ┌─────┬─────┐ ┌─────┬─────┐
// ... |
rust_dataset_chunk_515756 | rust_dataset.txt | 515,756 | 512 | .panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.rows
.as_usize(),
15,
"pane 1 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
... |
rust_dataset_chunk_515757 | rust_dataset.txt | 515,757 | 512 | );
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.x,
61,
"pane 4 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
... |
rust_dataset_chunk_515758 | rust_dataset.txt | 515,758 | 512 | 1).unwrap();
tab_resize_left(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.x,
0,
"pane 1 x position"
);
assert_eq!(
tab.tiled_panes
.pane... |
rust_dataset_chunk_515759 | rust_dataset.txt | 515,759 | 512 | position_and_size()
.x,
54,
"pane 3 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.y,
15,
"pane 3 y position"
);
assert_eq!(
... |
rust_dataset_chunk_515760 | rust_dataset.txt | 515,760 | 512 | ├───┴─┬─────┤
// │ │ │ │ │ │
// └─────┴─────┘ └─────┴─────┘
// █ == focused pane
let size = Size {
cols: 121,
rows: 30,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resize);
tab.horizonta... |
rust_dataset_chunk_515761 | rust_dataset.txt | 515,761 | 512 | .position_and_size()
.y,
15,
"pane 2 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.cols
.as_usize(),
61,
"pane 2 ... |
rust_dataset_chunk_515762 | rust_dataset.txt | 515,762 | 512 | (4))
.unwrap()
.position_and_size()
.cols
.as_usize(),
67,
"pane 4 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.ro... |
rust_dataset_chunk_515763 | rust_dataset.txt | 515,763 | 512 | PaneId::Terminal(1))
.unwrap()
.position_and_size()
.cols
.as_usize(),
54,
"pane 1 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()... |
rust_dataset_chunk_515764 | rust_dataset.txt | 515,764 | 512 | iled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.rows
.as_usize(),
15,
"pane 3 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
... |
rust_dataset_chunk_515765 | rust_dataset.txt | 515,765 | 512 | Terminal(2), None, 1, None, None)
.unwrap();
tab.horizontal_split(PaneId::Terminal(3), None, 1, None, None)
.unwrap();
tab.vertical_split(PaneId::Terminal(4), None, 1, None, None)
.unwrap();
tab.move_focus_up(1).unwrap();
tab.vertical_split(PaneId::Terminal(5), None, 1, None, Non... |
rust_dataset_chunk_515766 | rust_dataset.txt | 515,766 | 512 | .panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.cols
.as_usize(),
54,
"pane 2 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
... |
rust_dataset_chunk_515767 | rust_dataset.txt | 515,767 | 512 | );
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.rows
.as_usize(),
8,
"pane 4 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.ge... |
rust_dataset_chunk_515768 | rust_dataset.txt | 515,768 | 512 | 14,
"pane 6 row count"
);
}
#[test]
pub fn resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_current_pane() {
// ┌─────┬─────┐ ┌─────┬─────┐
// │ │ │ │ │ │
// ├─────┼─────┤ ├───┬─┴─────┤
// │█████... |
rust_dataset_chunk_515769 | rust_dataset.txt | 515,769 | 512 | y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.cols
.as_usize(),
61,
"pane 1 column count"
);
assert_eq!(
tab.tiled_panes
.pa... |
rust_dataset_chunk_515770 | rust_dataset.txt | 515,770 | 512 | as_usize(),
61,
"pane 3 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.rows
.as_usize(),
8,
"pane 3 row count"
);
assert_eq!(
... |
rust_dataset_chunk_515771 | rust_dataset.txt | 515,771 | 512 | .unwrap()
.position_and_size()
.rows
.as_usize(),
8,
"pane 5 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.x,
61,
... |
rust_dataset_chunk_515772 | rust_dataset.txt | 515,772 | 512 | None, None)
.unwrap();
tab.horizontal_split(PaneId::Terminal(3), None, 1, None, None)
.unwrap();
tab.vertical_split(PaneId::Terminal(4), None, 1, None, None)
.unwrap();
tab.move_focus_up(1).unwrap();
tab.move_focus_up(1).unwrap();
tab.vertical_split(PaneId::Terminal(5), None... |
rust_dataset_chunk_515773 | rust_dataset.txt | 515,773 | 512 | tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.y,
35,
"pane 2 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
... |
rust_dataset_chunk_515774 | rust_dataset.txt | 515,774 | 512 | );
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.cols
.as_usize(),
60,
"pane 4 column count"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515775 | rust_dataset.txt | 515,775 | 512 | (),
67,
"pane 6 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(6))
.unwrap()
.position_and_size()
.rows
.as_usize(),
11,
"pane 6 row count"
);
assert_eq!(
... |
rust_dataset_chunk_515776 | rust_dataset.txt | 515,776 | 512 | position_and_size()
.rows
.as_usize(),
5,
"pane 8 row count"
);
}
#[test]
pub fn resize_left_with_panes_to_the_right_aligned_top_and_bottom_with_panes_above_and_below() {
// ┌─────┬─────┐ ┌─────┬─────┐
// ├─────┼─────┤ ├───┬─┴───... |
rust_dataset_chunk_515777 | rust_dataset.txt | 515,777 | 512 | .panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.x,
0,
"pane 1 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515778 | rust_dataset.txt | 515,778 | 512 | tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.y,
56,
"pane 3 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
... |
rust_dataset_chunk_515779 | rust_dataset.txt | 515,779 | 512 | );
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(5))
.unwrap()
.position_and_size()
.cols
.as_usize(),
60,
"pane 5 column count"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515780 | rust_dataset.txt | 515,780 | 512 | (),
54,
"pane 7 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(7))
.unwrap()
.position_and_size()
.rows
.as_usize(),
5,
"pane 7 row count"
);
assert_eq!(
t... |
rust_dataset_chunk_515781 | rust_dataset.txt | 515,781 | 512 | ::Terminal(1))
.unwrap()
.position_and_size()
.cols
.as_usize(),
5,
"pane 1 columns stayed the same"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_si... |
rust_dataset_chunk_515782 | rust_dataset.txt | 515,782 | 512 | ()
.rows
.as_usize(),
20,
"pane 1 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.x,
67,
"pane 2 x position"
);
assert_... |
rust_dataset_chunk_515783 | rust_dataset.txt | 515,783 | 512 | 0,
"pane 1 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.y,
0,
"pane 1 y position"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515784 | rust_dataset.txt | 515,784 | 512 | │███████│ │
// │ │█████│ │ │ │███████│ │
// └─────┴─────┴─────┘ └─────┴───────┴───┘
// █ == focused pane
let size = Size {
cols: 121,
rows: 20,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resiz... |
rust_dataset_chunk_515785 | rust_dataset.txt | 515,785 | 512 | "pane 2 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.cols
.as_usize(),
36,
"pane 2 column count"
);
assert_eq!(
tab.tiled_panes
... |
rust_dataset_chunk_515786 | rust_dataset.txt | 515,786 | 512 | ,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resize);
tab.vertical_split(PaneId::Terminal(2), None, 1, None, None)
.unwrap();
tab.move_focus_left(1).unwrap();
tab.horizontal_split(PaneId::Terminal(3), None, 1, None, None)
.unwrap();
tab.move_focu... |
rust_dataset_chunk_515787 | rust_dataset.txt | 515,787 | 512 | tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.rows
.as_usize(),
20,
"pane 2 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
... |
rust_dataset_chunk_515788 | rust_dataset.txt | 515,788 | 512 | None, 1, None, None)
.unwrap();
tab.move_focus_right(1).unwrap();
tab.horizontal_split(PaneId::Terminal(4), None, 1, None, None)
.unwrap();
tab_resize_right(&mut tab, 1);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()... |
rust_dataset_chunk_515789 | rust_dataset.txt | 515,789 | 512 | ,
"pane 2 row count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.x,
0,
"pane 3 x position"
);
assert_eq!(
tab.tiled_panes
.panes
... |
rust_dataset_chunk_515790 | rust_dataset.txt | 515,790 | 512 | ─────┬─────┐
// │ │ │ │ │ │
// ├─────┼─────┤ ==resize=right==> ├─────┴─┬───┤
// │█████│ │ │███████│ │
// └─────┴─────┘ └───────┴───┘
// █ == focused pane
let size = Size {
cols: 121,
rows: 20,
};
... |
rust_dataset_chunk_515791 | rust_dataset.txt | 515,791 | 512 | Terminal(2))
.unwrap()
.position_and_size()
.x,
61,
"pane 2 x position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()
.y,
0,
"... |
rust_dataset_chunk_515792 | rust_dataset.txt | 515,792 | 512 | .get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.y,
10,
"pane 4 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
... |
rust_dataset_chunk_515793 | rust_dataset.txt | 515,793 | 512 | !(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.y,
0,
"pane 1 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap(... |
rust_dataset_chunk_515794 | rust_dataset.txt | 515,794 | 512 | position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.cols
.as_usize(),
61,
"pane 3 column count"
);
assert_eq!(
tab.tiled_panes
.pane... |
rust_dataset_chunk_515795 | rust_dataset.txt | 515,795 | 512 | 20,
};
let stacked_resize = true;
let mut tab = create_new_tab(size, stacked_resize);
tab.vertical_split(PaneId::Terminal(2), None, 1, None, None)
.unwrap();
tab.move_focus_left(1).unwrap();
tab.horizontal_split(PaneId::Terminal(3), None, 1, None, None)
.unwrap();
tab.move_fo... |
rust_dataset_chunk_515796 | rust_dataset.txt | 515,796 | 512 | PaneId::Terminal(2))
.unwrap()
.position_and_size()
.cols
.as_usize(),
54,
"pane 2 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(2))
.unwrap()
.position_and_size()... |
rust_dataset_chunk_515797 | rust_dataset.txt | 515,797 | 512 | iled_panes
.panes
.get(&PaneId::Terminal(4))
.unwrap()
.position_and_size()
.rows
.as_usize(),
10,
"pane 4 row count"
);
}
#[test]
pub fn resize_right_with_panes_to_the_left_aligned_top_and_bottom_with_current_pane() {
// ┌... |
rust_dataset_chunk_515798 | rust_dataset.txt | 515,798 | 512 | PaneId::Terminal(1))
.unwrap()
.position_and_size()
.y,
0,
"pane 1 y position"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(1))
.unwrap()
.position_and_size()
.cols
... |
rust_dataset_chunk_515799 | rust_dataset.txt | 515,799 | 512 | panes
.get(&PaneId::Terminal(3))
.unwrap()
.position_and_size()
.cols
.as_usize(),
61,
"pane 3 column count"
);
assert_eq!(
tab.tiled_panes
.panes
.get(&PaneId::Terminal(3))
.unwrap()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.