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_515300
rust_dataset.txt
515,300
512
3))); // vim // No plugins should be unloaded let unloaded_plugins = collect_unload_plugin_messages(&plugin_receiver); assert!(unloaded_plugins.is_empty()); assert_snapshot!(take_pane_state_snapshot( &tiled_panes, &floating_panes, &focus_pane_id, &viewport, &dis...
rust_dataset_chunk_515301
rust_dataset.txt
515,301
512
, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, None, ); applier .apply_layout( initial_tiled, initial_floating, terminal_ids, floating_terminal_ids, HashMa...
rust_dataset_chunk_515302
rust_dataset.txt
515,302
512
10 width 40 height 20 command "htop" } } } "#; let (initial_tiled, initial_floating) = parse_kdl_layout(initial_kdl); let terminal_ids = vec![(1, None)]; let floating_terminal_ids = vec![(2, None)]; le...
rust_dataset_chunk_515303
rust_dataset.txt
515,303
512
y 30 width 45 height 22 } } } "#; let (_, override_floating) = parse_kdl_layout(override_kdl); let new_floating_terminal_ids = vec![(3, None), (4, None)]; applier .override_floating_panes_layout_for_existing_panes( ...
rust_dataset_chunk_515304
rust_dataset.txt
515,304
512
ers, &sixel_image_store, &Rc::new(RefCell::new(KittyImageStore::default())), &link_handler, &terminal_emulator_colors, &terminal_emulator_color_codes, &character_cell_size, &connected_clients, &style, &display_area, &mut tiled_panes, ...
rust_dataset_chunk_515305
rust_dataset.txt
515,305
512
y 10 width 40 height 20 command "htop" } } } "#; let (initial_tiled, initial_floating) = parse_kdl_layout(initial_kdl); let terminal_ids = vec![(1, None)]; let floating_terminal_ids = ve...
rust_dataset_chunk_515306
rust_dataset.txt
515,306
512
override_floating, vec![], &mut HashMap::new(), false, false, ) .unwrap(); // Same pane ID preserved (Terminal(2)) // Geometry updated: x=50, y=30, cols=60, rows=30 assert_snapshot!(take_pane_state_snapshot( &tiled_panes, &floa...
rust_dataset_chunk_515307
rust_dataset.txt
515,307
512
floating pane let override_kdl = r#" layout { pane floating_panes { pane { x 20 y 10 width 50 height 30 } } } "#; let (_, override_floating) =...
rust_dataset_chunk_515308
rust_dataset.txt
515,308
512
new(RefCell::new(KittyImageStore::default())), &link_handler, &terminal_emulator_colors, &terminal_emulator_color_codes, &character_cell_size, &connected_clients, &style, &display_area, &mut tiled_panes, &mut floating_panes, draw_pane_frame...
rust_dataset_chunk_515309
rust_dataset.txt
515,309
512
10 width 40 height 20 command "cargo" args "watch" } pane { x 20 y 20 width 50 height 25 command "tail" ...
rust_dataset_chunk_515310
rust_dataset.txt
515,310
512
command="htop" pane command="npm" { args "start" } floating_panes { pane { x 30 y 30 width 60 height 30 command "cargo" args "watch...
rust_dataset_chunk_515311
rust_dataset.txt
515,311
512
terminal_ids = vec![(1, None), (2, None), (3, None)]; let size = Size { cols: 120, rows: 40, }; let ( viewport, senders, sixel_image_store, link_handler, terminal_emulator_colors, terminal_emulator_color_codes, character_cell_size, ...
rust_dataset_chunk_515312
rust_dataset.txt
515,312
512
3 may be closed let closed_panes = collect_close_pane_messages(&pty_receiver); assert!(closed_panes.len() >= 1); assert!(closed_panes.contains(&PaneId::Terminal(3))); // No plugins should be unloaded let unloaded_plugins = collect_unload_plugin_messages(&plugin_receiver); assert!(unloaded_plug...
rust_dataset_chunk_515313
rust_dataset.txt
515,313
512
, &mut tiled_panes, &mut floating_panes, draw_pane_frames, &mut focus_pane_id, &os_api, debug, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, None, ); applier .apply_lay...
rust_dataset_chunk_515314
rust_dataset.txt
515,314
512
_terminal_panes is true and NO panes match, // all original terminals are retained AND new terminals are created. // Setup: Apply initial layout with 3 panes let initial_kdl = r#" layout { pane command="htop" pane command="vim" pane command="tail" { ...
rust_dataset_chunk_515315
rust_dataset.txt
515,315
512
" } "#; let (override_tiled, _) = parse_kdl_layout(override_kdl); let new_terminal_ids = vec![(4, None), (5, None), (6, None)]; // Override with retain_existing_terminal_panes = true applier .override_tiled_panes_layout_for_existing_panes( &override_tiled, n...
rust_dataset_chunk_515316
rust_dataset.txt
515,316
512
height 25 command "vim" } } } "#; let (initial_tiled, initial_floating) = parse_kdl_layout(initial_kdl); let terminal_ids = vec![(1, None)]; let floating_terminal_ids = vec![(2, None), (3, None)]; let size = Size { ...
rust_dataset_chunk_515317
rust_dataset.txt
515,317
512
anes = true applier .override_floating_panes_layout_for_existing_panes( &override_floating, vec![], &mut HashMap::new(), true, // retain_existing_terminal_panes false, ) .unwrap(); // With retain_existing_terminal_panes = true:...
rust_dataset_chunk_515318
rust_dataset.txt
515,318
512
= Size { cols: 120, rows: 40, }; let ( viewport, senders, sixel_image_store, link_handler, terminal_emulator_colors, terminal_emulator_color_codes, character_cell_size, connected_clients, style, display_area, ...
rust_dataset_chunk_515319
rust_dataset.txt
515,319
512
loating, new_floating_terminal_ids, &mut HashMap::new(), true, // retain_existing_terminal_panes false, ) .unwrap(); // With retain_existing_terminal_panes = true and no matches: // - NO terminal panes should be closed // - Both original float...
rust_dataset_chunk_515320
rust_dataset.txt
515,320
512
vec![(4, None)]; let size = Size { cols: 120, rows: 40, }; let ( viewport, senders, sixel_image_store, link_handler, terminal_emulator_colors, terminal_emulator_color_codes, character_cell_size, connected_clients, styl...
rust_dataset_chunk_515321
rust_dataset.txt
515,321
512
false; applier .override_layout( override_tiled, override_floating, new_terminal_ids, new_floating_terminal_ids, HashMap::new(), retain_existing_terminal_panes, retain_existing_plugin_panes, 1, ) ...
rust_dataset_chunk_515322
rust_dataset.txt
515,322
512
} "#; let (initial_tiled, initial_floating) = parse_kdl_layout(initial_kdl); let terminal_ids = vec![(1, None), (2, None)]; let mut initial_plugin_ids = HashMap::new(); let tab_bar_plugin = RunPluginOrAlias::from_url("zellij:tab-bar", &None, None, None).unwrap(); initial_plugin_ids.insert(tab...
rust_dataset_chunk_515323
rust_dataset.txt
515,323
512
plier .override_tiled_panes_layout_for_existing_panes( &override_tiled, vec![], &mut HashMap::new(), true, // retain_existing_terminal_panes false, 1, ) .unwrap(); // With retain_existing_terminal_panes = true: // -...
rust_dataset_chunk_515324
rust_dataset.txt
515,324
512
tab-bar", &None, None, None).unwrap(); let status_bar = RunPluginOrAlias::from_url("zellij:status-bar", &None, None, None).unwrap(); let custom = RunPluginOrAlias::from_url("file:///path/to/custom.wasm", &None, None, None).unwrap(); initial_plugin_ids.insert(tab_bar, vec![100]); initial_plugin_i...
rust_dataset_chunk_515325
rust_dataset.txt
515,325
512
); applier .override_tiled_panes_layout_for_existing_panes( &override_tiled, vec![], &mut HashMap::new(), false, true, 1, ) .unwrap(); // Verify NO plugin panes were unloaded let unloaded_plugins = collect_unlo...
rust_dataset_chunk_515326
rust_dataset.txt
515,326
512
connected_clients, style, display_area, mut tiled_panes, mut floating_panes, draw_pane_frames, mut focus_pane_id, os_api, debug, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, ...
rust_dataset_chunk_515327
rust_dataset.txt
515,327
512
vec![105]); applier .override_tiled_panes_layout_for_existing_panes( &override_tiled, vec![], &mut override_plugin_ids, false, true, 1, ) .unwrap(); // Verify NO plugin panes were unloaded let unloaded_plugins...
rust_dataset_chunk_515328
rust_dataset.txt
515,328
512
debug, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, pty_receiver, plugin_receiver, ) = create_layout_applier_fixtures_with_receivers(size); let mut applier = LayoutApplier::new( &viewport, &s...
rust_dataset_chunk_515329
rust_dataset.txt
515,329
512
_panes_count(), 1); } #[test] fn test_override_floating_retain_plugin_panes_no_matches() { // All original floating plugins are retained AND new floating plugins are created when there are no matches let initial_kdl = r#" layout { pane floating_panes { pane { ...
rust_dataset_chunk_515330
rust_dataset.txt
515,330
512
, draw_pane_frames, &mut focus_pane_id, &os_api, debug, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, None, ); applier .apply_layout( initial_tiled, initial_flo...
rust_dataset_chunk_515331
rust_dataset.txt
515,331
512
tiled and floating plugin panes are retained when the flag is true let initial_kdl = r#" layout { pane command="htop" pane command="vim" pane { plugin location="zellij:tab-bar" } floating_panes { pane { ...
rust_dataset_chunk_515332
rust_dataset.txt
515,332
512
links, explicitly_disable_kitty_keyboard_protocol, None, ); applier .apply_layout( initial_tiled, initial_floating, terminal_ids, vec![], initial_plugin_ids, 1, ) .unwrap(); let override_kdl = r...
rust_dataset_chunk_515333
rust_dataset.txt
515,333
512
, "At least htop and matched plugins" ); assert!( floating_panes.visible_panes_count() >= 1, "At least one floating plugin" ); } #[test] fn test_override_retain_plugin_but_close_terminal_panes() { // Verify that retain_existing_plugin_panes = true ONLY affects plugin panes; term...
rust_dataset_chunk_515334
rust_dataset.txt
515,334
512
plier .apply_layout( initial_tiled, initial_floating, terminal_ids, vec![], initial_plugin_ids, 1, ) .unwrap(); let override_kdl = r#" layout { pane command="htop" } "#; let (overrid...
rust_dataset_chunk_515335
rust_dataset.txt
515,335
512
link_handler, terminal_emulator_colors, terminal_emulator_color_codes, character_cell_size, connected_clients, style, display_area, mut tiled_panes, mut floating_panes, draw_pane_frames, mut focus_pane_id, os_api, debug, ...
rust_dataset_chunk_515336
rust_dataset.txt
515,336
512
_rows_of_borderless_plugins_at_top_and_bottom_are_offset_out_of_viewport() { let kdl_layout = r#" layout { pane size=1 split_direction="vertical" { pane size=55 borderless=true { plugin location="zellij:compact-bar" } pane borde...
rust_dataset_chunk_515337
rust_dataset.txt
515,337
512
="zellij:compact-bar" } pane borderless=true { plugin location="zellij:status-bar" } } } "#; let size = Size { cols: 120, rows: 40, }; let viewport = viewport_after_applying_layout_with_plugins( ...
rust_dataset_chunk_515338
rust_dataset.txt
515,338
512
apply_layout( initial_tiled, initial_floating, terminal_ids, vec![], HashMap::new(), 1, ) .unwrap(); let override_kdl = r#" layout { pane command="htop" } "#; let (override_tiled, _) = parse_k...
rust_dataset_chunk_515339
rust_dataset.txt
515,339
512
, &fixtures.6, &fixtures.7, &fixtures.8, &fixtures.9, &mut tiled_panes, &mut floating_panes, fixtures.12, &mut focus_pane_id, &fixtures.14, fixtures.15, fixtures.16, fixtures.1...
rust_dataset_chunk_515340
rust_dataset.txt
515,340
512
pty_receiver) = run_with_layout_applier(small_viewport(), |applier| { apply_two_floating_panes_layout(applier); applier .apply_floating_panes_layout_to_existing_panes(&vec![FloatingPaneLayout::default()]) .unwrap(); applier .ap...
rust_dataset_chunk_515341
rust_dataset.txt
515,341
512
None)], vec![(2, None), (3, None), (4, None)], HashMap::new(), 1, ) .unwrap(); }, ); assert_eq!( collect_close_pane_messages(&pty_receiver), vec![PaneId::Terminal(4)] ); assert!(floating_...
rust_dataset_chunk_515342
rust_dataset.txt
515,342
512
anes_layout_for_existing_panes( &override_floating, vec![], &mut HashMap::new(), false, false, ) .unwrap(); drop(override_tiled); } let mut closed_panes = collect_close_pane_messages(&pty_receiver); ...
rust_dataset_chunk_515343
rust_dataset.txt
515,343
512
.unwrap_or(false)); } #[test] fn test_fallback_floating_position_respects_the_viewport_offset() { let (_, floating_layout) = two_floating_panes_layout(); let (_tiled_panes, floating_panes, _pty_receiver) = run_with_layout_applier_and_viewport( Size { cols: 9, rows: 9 }, |viewport| { ...
rust_dataset_chunk_515344
rust_dataset.txt
515,344
512
plier_fixtures_with_receivers(Size { cols: 120, rows: 40, }); let plugin_receiver = fixtures.21; let mut tiled_panes = fixtures.10; let mut floating_panes = fixtures.11; let mut focus_pane_id = fixtures.13; { let mut applier = LayoutApplier::new( &fixtures.0, ...
rust_dataset_chunk_515345
rust_dataset.txt
515,345
512
)], vec![(3, None)], HashMap::new(), 1, ); }); assert!(result.is_err(), "the layout cannot be applied"); let mut closed = collect_close_pane_messages(&pty_receiver); closed.sort(); let mut expected: Vec<PaneId> = [1, 2, 3] .into...
rust_dataset_chunk_515346
rust_dataset.txt
515,346
512
::Rc; use interprocess::local_socket::Stream as LocalSocketStream; use zellij_utils::{ data::{FloatingPaneCoordinates, InputMode, ModeInfo, NewPanePlacement, Palette, Style}, input::command::{RunCommand, TerminalAction}, ipc::{ClientToServerMsg, ServerToClientMsg}, }; #[derive(Clone, Default)] struct Fake...
rust_dataset_chunk_515347
rust_dataset.txt
515,347
512
WithContext<ClientToServerMsg>, ) -> Result<()> { unimplemented!() } fn register_client_with_reply( &mut self, _client_id: ClientId, _reply_stream: LocalSocketStream, ) -> Result<()> { unimplemented!() } fn remove_client(&mut self, _client_id: ClientId) ->...
rust_dataset_chunk_515348
rust_dataset.txt
515,348
512
None, } } fn start(&mut self) { let output = self.output.clone(); let pty_writer_receiver = self.pty_writer_receiver.clone(); let handle = std::thread::Builder::new() .name("pty_writer".to_string()) .spawn({ move || loop { ...
rust_dataset_chunk_515349
rust_dataset.txt
515,349
512
ulator_color_codes = Rc::new(RefCell::new(HashMap::new())); let sixel_image_store = Rc::new(RefCell::new(SixelImageStore::default())); let current_group = Rc::new(RefCell::new(PaneGroups::new(ThreadSenders::default()))); let currently_marking_pane_group = Rc::new(RefCell::new(HashMap::new())); let debug...
rust_dataset_chunk_515350
rust_dataset.txt
515,350
512
_with_stacked_pane_list( size: Size, default_mode: ModeInfo, stacked_pane_list: bool, base_layout_and_ids: Option<(TiledPaneLayout, Vec<(u32, Option<RunCommand>)>)>, ) -> Tab { set_session_name("test".into()); let index = 0; let position = 0; let name = String::new(); let os_api = Bo...
rust_dataset_chunk_515351
rust_dataset.txt
515,351
512
, size, character_cell_info, stacked_resize, stacked_pane_list, StackListOrientation::default(), sixel_image_store, Rc::new(RefCell::new(KittyImageStore::default())), os_api, senders, max_panes, style, mode_info, dra...
rust_dataset_chunk_515352
rust_dataset.txt
515,352
512
new(RefCell::new(true)); let terminal_emulator_colors = Rc::new(RefCell::new(Palette::default())); let copy_options = CopyOptions::default(); let terminal_emulator_color_codes = Rc::new(RefCell::new(HashMap::new())); let sixel_image_store = Rc::new(RefCell::new(SixelImageStore::default())); let curr...
rust_dataset_chunk_515353
rust_dataset.txt
515,353
512
vec![], vec![(1, None)], vec![], HashMap::new(), client_id, None, ) .unwrap(); tab } fn create_new_tab_with_swap_layouts( size: Size, default_mode: ModeInfo, swap_layouts: (Vec<SwapTiledLayout>, Vec<SwapFloatingLayout>), base_layout_and_ids: O...
rust_dataset_chunk_515354
rust_dataset.txt
515,354
512
let styled_underlines = true; let osc8_hyperlinks = true; let explicitly_disable_kitty_keyboard_protocol = false; let advanced_mouse_actions = true; let mouse_scroll_resize = true; let web_sharing = WebSharing::Off; let web_server_ip = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); let web_server...
rust_dataset_chunk_515355
rust_dataset.txt
515,355
512
default_mode: ModeInfo, os_api: &Box<FakeInputOutput>, ) -> Tab { set_session_name("test".into()); let index = 0; let position = 0; let name = String::new(); let os_api = os_api.clone(); let senders = ThreadSenders::default().silently_fail_on_send(); let max_panes = None; let mode_i...
rust_dataset_chunk_515356
rust_dataset.txt
515,356
512
max_panes, style, mode_info, draw_pane_frames, auto_layout, connected_clients, Rc::new(RefCell::new(HashMap::new())), session_is_mirrored, Some(client_id), copy_options, terminal_emulator_colors, terminal_emulator_color_codes, ...
rust_dataset_chunk_515357
rust_dataset.txt
515,357
512
_image_store = Rc::new(RefCell::new(SixelImageStore::default())); let layout = Layout::from_str(layout, "layout_file_name".into(), None, None).unwrap(); let (tab_layout, floating_panes_layout) = layout.new_tab(); let current_group = Rc::new(RefCell::new(PaneGroups::new(ThreadSenders::default()))); let c...
rust_dataset_chunk_515358
rust_dataset.txt
515,358
512
as u32, None)) .collect(); let floating_pane_ids = floating_panes_layout .iter() .enumerate() .map(|(i, _)| (i as u32, None)) .collect(); tab.apply_layout( tab_layout, floating_panes_layout, pane_ids, floating_pane_ids, HashMap::ne...
rust_dataset_chunk_515359
rust_dataset.txt
515,359
512
let mouse_scroll_resize = true; let web_sharing = WebSharing::Off; let web_server_ip = IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)); let web_server_port = 8080; let mut tab = Tab::new( index, position, name, size, character_cell_info, stacked_resize, R...
rust_dataset_chunk_515360
rust_dataset.txt
515,360
512
ModeInfo::default(); let style = Style::default(); let draw_pane_frames = PaneFrameStyle::Full; let auto_layout = true; let client_id = 1; let session_is_mirrored = true; let mut connected_clients = HashMap::new(); connected_clients.insert(client_id, false); let connected_clients = Rc::...
rust_dataset_chunk_515361
rust_dataset.txt
515,361
512
, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, None, false, web_sharing, current_group, currently_marking_pane_group, advanced_mouse_actions, mouse_scroll_resize, true, // mous...
rust_dataset_chunk_515362
rust_dataset.txt
515,362
512
8_hyperlinks, explicitly_disable_kitty_keyboard_protocol, ); let mut vte_parser = vt_parser::Parser::new(); vte_parser.feed(&mut grid, ansi_instructions.as_bytes()); format!("{:?}", grid) } fn take_snapshot_with_sixel( ansi_instructions: &str, rows: usize, columns: usize, palett...
rust_dataset_chunk_515363
rust_dataset.txt
515,363
512
Rc::new(RefCell::new(LinkHandler::new())), Rc::new(RefCell::new(None)), sixel_image_store, Rc::new(RefCell::new(KittyImageStore::default())), Style::default(), debug, arrow_fonts, styled_underlines, osc8_hyperlinks, explicitly_disable_kitty...
rust_dataset_chunk_515364
rust_dataset.txt
515,364
512
} } #[test] fn increase_tiled_pane_sizes_with_stacked_resizes_into_uneven_panes() { // this is the default resizing algorithm let size = Size { cols: 200, rows: 40, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let mut output = Output::default()...
rust_dataset_chunk_515365
rust_dataset.txt
515,365
512
_tab(size, ModeInfo::default()); let mut output = Output::default(); for i in 2..4 { let new_pane_id_1 = PaneId::Terminal(i); tab.new_pane( new_pane_id_1, None, None, false, true, NewPanePlacement::default(), Som...
rust_dataset_chunk_515366
rust_dataset.txt
515,366
512
this checks various cases and gotchas that have to do with rendering stacked panes when we // don't draw frames around panes let size = Size { cols: 100, rows: 40, }; let client_id = 1; let mut tab = create_new_tab_without_pane_frames(size, ModeInfo::default()); let mut output =...
rust_dataset_chunk_515367
rust_dataset.txt
515,367
512
client_id, ResizeStrategy::new(Resize::Increase, Some(Direction::Right)), ) .unwrap(); let _ = tab.focus_pane_with_id(PaneId::Terminal(7), false, false, client_id); let _ = tab.focus_pane_with_id(PaneId::Terminal(5), false, false, client_id); tab.render(&mut output, None).unwrap(); ...
rust_dataset_chunk_515368
rust_dataset.txt
515,368
512
None, ) .unwrap(); tab.handle_pty_bytes(2, Vec::from("scratch".as_bytes())) .unwrap(); let file = "/tmp/log-clear-screen.sh"; tab.clear_active_terminal_screen(client_id).unwrap(); tab.dump_active_terminal_screen(Some(file.to_string()), client_id, false) .unwrap(); assert_eq!...
rust_dataset_chunk_515369
rust_dataset.txt
515,369
512
size.cols, Palette::default(), ); assert_snapshot!(snapshot); } fn sorted_kitty_visible_pane_ids(tab: &Tab) -> Vec<PaneId> { let mut pane_ids: Vec<PaneId> = tab.kitty_visible_pane_ids().into_iter().collect(); pane_ids.sort(); pane_ids } #[test] fn kitty_visible_panes_exclude_collap...
rust_dataset_chunk_515370
rust_dataset.txt
515,370
512
we see them once we toggle the panes back tab.handle_pty_bytes( 2, Vec::from("\n\n\n I am scratch terminal".as_bytes()), ) .unwrap(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.render(&mut output, None).unwrap(); let snapshot ...
rust_dataset_chunk_515371
rust_dataset.txt
515,371
512
tab.handle_pty_bytes( 2, Vec::from("\n\n\n I am scratch terminal".as_bytes()), ) .unwrap(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.render(&mut output, N...
rust_dataset_chunk_515372
rust_dataset.txt
515,372
512
(client_id), None, ) .unwrap(); tab.handle_pty_bytes( 2, Vec::from("\n\n\n I am scratch terminal".as_bytes()), ) .unwrap(); tab.handle_pty_bytes(3, Vec::from("\u{1b}#8".as_bytes())) .unwrap(); tab.handle_pty_bytes(4, Vec::from("\u{1b}#8".as_b...
rust_dataset_chunk_515373
rust_dataset.txt
515,373
512
tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let mut output = Output::default(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.new_pane( new_pane_id_1, None, None, false, true, N...
rust_dataset_chunk_515374
rust_dataset.txt
515,374
512
client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let mut output = Output::default(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.new_pane( new_pane_id_1, None, None, fal...
rust_dataset_chunk_515375
rust_dataset.txt
515,375
512
cols: 121, rows: 20, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let mut output = Output::default(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.new_pane( new...
rust_dataset_chunk_515376
rust_dataset.txt
515,376
512
_pane_id_3, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane_id_4, None, None, false, true, NewPanePlacement::default(), Some(client...
rust_dataset_chunk_515377
rust_dataset.txt
515,377
512
Id::Terminal(6); let mut output = Output::default(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.new_pane( new_pane_id_1, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) ....
rust_dataset_chunk_515378
rust_dataset.txt
515,378
512
to the pane on the right" ); assert_snapshot!(snapshot); } #[test] fn move_floating_pane_focus_up() { let size = Size { cols: 121, rows: 20, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let new_...
rust_dataset_chunk_515379
rust_dataset.txt
515,379
512
5, Vec::from("\u{1b}#8".as_bytes())) .unwrap(); tab.handle_pty_bytes(6, Vec::from("\u{1b}#8".as_bytes())) .unwrap(); tab.move_focus_up(client_id).unwrap(); tab.render(&mut output, None).unwrap(); let (snapshot, cursor_coordinates) = take_snapshot_and_cursor_position( output.seria...
rust_dataset_chunk_515380
rust_dataset.txt
515,380
512
_id_5, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.handle_pty_bytes( 2, Vec::from("\n\n\n I am scratch terminal".as_bytes()), ) .unwrap(); tab.handle_pty_by...
rust_dataset_chunk_515381
rust_dataset.txt
515,381
512
new_pane_id_2, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane_id_3, None, None, false, true, NewPanePlacement::default(), ...
rust_dataset_chunk_515382
rust_dataset.txt
515,382
512
, rows: 20, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let new_pane_id_2 = PaneId::Terminal(3); let new_pane_id_3 = PaneId::Terminal(4); let new_pane_id_4 = PaneId::Terminal(5); let new_pane_id_5 = PaneI...
rust_dataset_chunk_515383
rust_dataset.txt
515,383
512
8".as_bytes())) .unwrap(); tab.move_focus_up(client_id).unwrap(); tab.focus_last_pane(client_id); tab.render(&mut output, None).unwrap(); let (snapshot, cursor_coordinates) = take_snapshot_and_cursor_position( output.serialize().unwrap().get(&client_id).unwrap().ansi(), size.rows...
rust_dataset_chunk_515384
rust_dataset.txt
515,384
512
Some(client_id), None, ) .unwrap(); tab.handle_pty_bytes( 2, Vec::from("\n\n\n I am scratch terminal".as_bytes()), ) .unwrap(); tab.handle_pty_bytes(3, Vec::from("\u{1b}#8".as_bytes())) .unwrap(); tab.handle_pty_bytes(4, Vec::from("\u{1b}#8"...
rust_dataset_chunk_515385
rust_dataset.txt
515,385
512
Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane_id_2, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane_id_3, None, None, ...
rust_dataset_chunk_515386
rust_dataset.txt
515,386
512
] fn mark_text_inside_floating_pane() { let size = Size { cols: 121, rows: 20, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let new_pane_id_2 = PaneId::Terminal(3); let new_pane_id_3 = PaneId::Terminal...
rust_dataset_chunk_515387
rust_dataset.txt
515,387
512
.unwrap(); tab.handle_pty_bytes(6, Vec::from("\u{1b}#8".as_bytes())) .unwrap(); tab.handle_mouse_event( &MouseEvent::new_left_press_event(Position::new(6, 30)), client_id, ) .unwrap(); assert!( tab.selecting_with_mouse_in_pane.is_some(), "started selec...
rust_dataset_chunk_515388
rust_dataset.txt
515,388
512
None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane_id_4, None, None, false, true, NewPanePlacement::default(), Some(client_id), ...
rust_dataset_chunk_515389
rust_dataset.txt
515,389
512
::default(); tab.toggle_floating_panes(Some(client_id), None, None) .unwrap(); tab.new_pane( new_pane_id_1, None, None, false, true, NewPanePlacement::default(), Some(client_id), None, ) .unwrap(); tab.new_pane( new_pane...
rust_dataset_chunk_515390
rust_dataset.txt
515,390
512
size = Size { cols: 121, rows: 20, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let new_pane_id_1 = PaneId::Terminal(2); let new_pane_id_2 = PaneId::Terminal(3); let new_pane_id_3 = PaneId::Terminal(4); let new_pane_id_4 = PaneId::Terminal(5...
rust_dataset_chunk_515391
rust_dataset.txt
515,391
512
::from("\u{1b}#8".as_bytes())) .unwrap(); tab.resize_whole_tab(Size { cols: 50, rows: 10 }).unwrap(); tab.resize_whole_tab(Size { cols: 121, rows: 20, }) .unwrap(); tab.render(&mut output, None).unwrap(); let (snapshot, _cursor_coordinates) = take_snapshot_and_cursor_posi...
rust_dataset_chunk_515392
rust_dataset.txt
515,392
512
\n I am an embedded pane".as_bytes()), ) .unwrap(); tab.toggle_pane_embed_or_floating(client_id).unwrap(); tab.render(&mut output, None).unwrap(); let snapshot = take_snapshot( output.serialize().unwrap().get(&client_id).unwrap().ansi(), size.rows, size.cols...
rust_dataset_chunk_515393
rust_dataset.txt
515,393
512
as_bytes()), ) .unwrap(); tab.toggle_pane_embed_or_floating(client_id).unwrap(); tab.render(&mut output, None).unwrap(); let snapshot = take_snapshot( output.serialize().unwrap().get(&client_id).unwrap().ansi(), size.rows, size.cols, Palette::default(), ); ass...
rust_dataset_chunk_515394
rust_dataset.txt
515,394
512
(), ); assert_snapshot!(snapshot); } #[test] fn floating_fullscreen_none_frame_style() { let size = Size { cols: 121, rows: 20, }; let client_id = 1; let mut tab = setup_tab_with_focused_floating_pane(size, client_id, PaneFrameStyle::None); let mut output = Output::default()...
rust_dataset_chunk_515395
rust_dataset.txt
515,395
512
_id); tab.render(&mut output, None).unwrap(); let mut output = Output::default(); tab.toggle_active_pane_fullscreen(client_id); tab.render(&mut output, None).unwrap(); let snapshot = take_snapshot( output.serialize().unwrap().get(&client_id).unwrap().ansi(), size.rows, size.c...
rust_dataset_chunk_515396
rust_dataset.txt
515,396
512
mut output = Output::default(); tab.toggle_active_pane_fullscreen(client_id); tab.render(&mut output, None).unwrap(); let snapshot = take_snapshot( output.serialize().unwrap().get(&client_id).unwrap().ansi(), size.rows, size.cols, Palette::default(), ); assert_snapsh...
rust_dataset_chunk_515397
rust_dataset.txt
515,397
512
Vec::from("\n\n\n I am an embedded pane".as_bytes()), ) .unwrap(); tab.update_active_pane_name("Renamed empedded pane".as_bytes().to_vec(), client_id) .unwrap(); tab.render(&mut output, None).unwrap(); let snapshot = take_snapshot( output.serialize().unwrap(...
rust_dataset_chunk_515398
rust_dataset.txt
515,398
512
(), ); assert_snapshot!(snapshot); } #[test] fn grapheme_clusters_in_left_title_side() { let size = Size { cols: 121, rows: 10, }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let mut output = Output::default(); let pane_content = read_fixt...
rust_dataset_chunk_515399
rust_dataset.txt
515,399
512
size = Size { cols: 100, rows: 5 }; let client_id = 1; let mut tab = create_new_tab(size, ModeInfo::default()); let mut output = Output::default(); tab.handle_pty_bytes( 1, Vec::from("\n\n\rI am some text\n\rI am another line of text\n\rLet's save the cursor position here \u{1b}[sI sho...