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_514800
rust_dataset.txt
514,800
512
_switch_enabled { if let Some(c) = completion_tx.as_mut() { c.set_exit_status(1); c.set_error_message( "Manual theme switching requires both `theme_dark` and `theme_light` to be configured." .to_string(), ); ...
rust_dataset_chunk_514801
rust_dataset.txt
514,801
512
: bool) { let mut found = false; for tab in self.tabs.values_mut() { if tab.has_pane_with_pid(&pane_id) { tab.set_floating_pane_pinned(pane_id, should_be_pinned); found = true; break; } } if !found { log:...
rust_dataset_chunk_514802
rust_dataset.txt
514,802
512
tab_id, tab) in self.tabs.iter_mut() { if tab_id == &root_tab_id { // we do this before we extract panes so that the extraction won't trigger a // relayout according to the next swapped tiled pane tab.set_tiled_panes_damaged(); } for pa...
rust_dataset_chunk_514803
rust_dataset.txt
514,803
512
less: bool) { for (_tab_id, tab) in self.tabs.iter_mut() { if tab.has_pane_with_pid(&pane_id) { tab.set_pane_borderless(&pane_id, borderless).non_fatal(); break; } } } pub fn set_pane_border_style( &mut self, pane_id: PaneId...
rust_dataset_chunk_514804
rust_dataset.txt
514,804
512
passthrough_pane_id, mousebinds, ) }) { Ok(mouse_effect) => { let mut should_render = false; if let Some(actions) = mouse_effect.run_actions.clone() { self.run_mouse_bound_actions(actions, client_id); } ...
rust_dataset_chunk_514805
rust_dataset.txt
514,805
512
= target_plugin_ids .into_iter() .map(|pid| (Some(pid), Some(client_id), Event::InputReceived)) .collect(); if !plugin_updates.is_empty() { let _ = self .bus ...
rust_dataset_chunk_514806
rust_dataset.txt
514,806
512
.currently_marking_pane_group.borrow_mut(); let previous_value = currently_marking_pane_group .remove(&client_id) .unwrap_or(false); let new_value = !previous_value; if new_value { currently_marking_pane_group.insert(client_id, true); ...
rust_dataset_chunk_514807
rust_dataset.txt
514,807
512
.borrow() .iter() .map(|(c, _i)| *c) .filter(|c| self.active_tab_ids.get(&c) == Some(&tab_index)) .collect(); let mut active_pane_ids: HashMap<ClientId, Option<PaneId>> = HashMap::new(); for connected_client_id in &...
rust_dataset_chunk_514808
rust_dataset.txt
514,808
512
(self.scrollback_lines_to_serialize) } else { None }, focused_clients, default_fg, default_bg, p.border_style_override(), ) ...
rust_dataset_chunk_514809
rust_dataset.txt
514,809
512
session_layout_metadata .set_last_tab_attention_muted(self.attention.tab_is_muted(tab.id)); } session_layout_metadata } fn update_plugin_loading_stage( &mut self, pid: u32, loading_indication: LoadingIndication, ) -> bool { if loading_indicati...
rust_dataset_chunk_514810
rust_dataset.txt
514,810
512
borrow() .get(client_id) .copied() .unwrap_or(false) { let active_pane_id = self.get_active_pane_id(&client_id); if let Some(active_pane_id) = active_pane_id { self.add_pane_id_to_group(active_pane_id, &clien...
rust_dataset_chunk_514811
rust_dataset.txt
514,811
512
i| i == &tab.id), panes_to_hide: tab.panes_to_hide_count(), is_fullscreen_active: tab.is_fullscreen_active(), is_sync_panes_active: tab.is_sync_panes_active(), are_floating_panes_visible: tab.are_floating_panes_visible(), other_focused_clie...
rust_dataset_chunk_514812
rust_dataset.txt
514,812
512
ane_group.borrow().clone_inner() }; for (client_id, panes_in_group) in current_pane_group.iter_mut() { let all_tabs = self.get_tabs(); panes_in_group.retain(|p_id| { let mut found = false; for tab in all_tabs.values() { ...
rust_dataset_chunk_514813
rust_dataset.txt
514,813
512
into(); let mut found = false; for tab in self.tabs.values() { if let Some(pane) = tab.get_pane_with_id(server_pane_id) { let get_full_scrollback = scrollback.is_some(); let max_lines = scrollback.and_then(|n| if n == 0 { None } else { Som...
rust_dataset_chunk_514814
rust_dataset.txt
514,814
512
_ansi.values().next(); self.deliver_subscriber_updates_from_map(pane_map, ansi_pane_map); } fn deliver_to_pane_subscribers_directly(&mut self) { // Collect unique pane IDs across all subscribers let all_subscribed_ids: HashSet<zellij_utils::data::PaneId> = self .pane_render_s...
rust_dataset_chunk_514815
rust_dataset.txt
514,815
512
pane_map }; for pane_id in &subscription.pane_ids { if let Some(contents) = effective_map.get(pane_id) { let changed = subscription .previous_viewports .get(pane_id) .map(|prev| prev != ...
rust_dataset_chunk_514816
rust_dataset.txt
514,816
512
if let Some(os_input) = &self.bus.os_input { let _ = os_input.send_to_client( *subscriber_id, ServerToClientMsg::Exit { exit_reason: ExitReason::Normal, }, ...
rust_dataset_chunk_514817
rust_dataset.txt
514,817
512
ANES_NEVER_CREATED: usize = 1024; fn mark_action_as_failed(completion: &mut Option<NotificationEnd>, error_message: &str) { if let Some(completion) = completion.as_mut() { completion.set_exit_status(1); completion.set_error_message(error_message.to_owned()); } } // The box is here in order to ...
rust_dataset_chunk_514818
rust_dataset.txt
514,818
512
(); let pane_frame_style = PaneFrameStyle::from_options(&config_options); let auto_layout = config_options.auto_layout.unwrap_or(true); let session_serialization = config_options.session_serialization.unwrap_or(true); let serialize_pane_viewport = config_options.serialize_pane_viewport.unwrap_or(false);...
rust_dataset_chunk_514819
rust_dataset.txt
514,819
512
stacked_pane_list = config_options.stacked_pane_list.unwrap_or(true); let stacked_pane_list_orientation = config_options .stacked_pane_list_orientation .unwrap_or_default(); let web_clients_allowed = config_options .web_sharing .map(|s| s.web_clients_allowed()) .unwrap_o...
rust_dataset_chunk_514820
rust_dataset.txt
514,820
512
_list_orientation, default_editor, web_clients_allowed, web_sharing, advanced_mouse_actions, osc133_command_selection, word_separators, mouse_scroll_resize, scroll_mode_sync, mouse_hover_effects, mouse_hover_tips, visual_bell, ...
rust_dataset_chunk_514821
rust_dataset.txt
514,821
512
_id), ) .ok() .and_then(|raw| SessionInfo::from_string(&raw, &session_name).ok()); if previous_metadata .map(|m| m.attention_muted) .unwrap_or(false) { screen .attention .set_session_muted(true, crate::attention:...
rust_dataset_chunk_514822
rust_dataset.txt
514,822
512
PtyBytes(pid, vte_bytes)); } } }, ScreenInstruction::PluginBytes(mut plugin_render_assets) => { for plugin_render_asset in plugin_render_assets.iter_mut() { let plugin_id = plugin_render_asset.plugin_id; ...
rust_dataset_chunk_514823
rust_dataset.txt
514,823
512
, }; let (blocking_notification, mut completion_tx) = if set_blocking { (completion_tx, None) } else { (None, completion_tx) }; match client_or_tab_index { ClientTabIndexOrPaneId...
rust_dataset_chunk_514824
rust_dataset.txt
514,824
512
iter() .find(|(_, tid)| **tid == tab_index) .map(|(cid, _)| *cid) .or_else(|| screen.active_tab_ids.keys().next().copied()) } else { None }; ...
rust_dataset_chunk_514825
rust_dataset.txt
514,825
512
_for_command); } found = true; break; } } if !found { log::error!( "Failed to find tab c...
rust_dataset_chunk_514826
rust_dataset.txt
514,826
512
found { screen.log_and_report_session_state()?; } else { log::error!( "Could not find pane with id {:?} to replace", pane_id_to_replace ); ...
rust_dataset_chunk_514827
rust_dataset.txt
514,827
512
completion, ) => { screen.record_client_input(client_id); screen.release_live_view_if_unreachable(client_id); if screen.send_key_to_popup( client_id, key_with_modifier.clone(), raw_byt...
rust_dataset_chunk_514828
rust_dataset.txt
514,828
512
client_id) => { if !(raw_bytes == BRACKETED_PASTE_BEGIN || raw_bytes == BRACKETED_PASTE_END) { screen.update_rename_target_pane_name(raw_bytes, client_id); state_changed = true; ...
rust_dataset_chunk_514829
rust_dataset.txt
514,829
512
() { completion_tx.set_exit_status(1); completion_tx.set_error_message(error_message); } } drop(completion_tx); if let Some(tab_id) = screen.active_tab_ids.get(&client_id).copied() { s...
rust_dataset_chunk_514830
rust_dataset.txt
514,830
512
if let Some(ref mut c) = _completion_tx { c.set_exit_status(1); c.set_error_message("No connected clients to change focus for".to_string()); } } else { let old_pane_id = screen.get_active_pane_id(&client_id); ...
rust_dataset_chunk_514831
rust_dataset.txt
514,831
512
new_pane_id) { if old == new { screen.bubble_focus_to_host(client_id, Direction::Left); } else { screen.report_key_passthrough_state_with_direction( client_id, ...
rust_dataset_chunk_514832
rust_dataset.txt
514,832
512
new_pane_id = screen.get_active_pane_id(&client_id); if let (Some(old), Some(new)) = (old_pane_id, new_pane_id) { if old == new { screen.bubble_focus_to_host(client_id, Direction::Down); } else { ...
rust_dataset_chunk_514833
rust_dataset.txt
514,833
512
_error_message("No connected clients to move focus for".to_string()); } } else { let old_pane_id = screen.get_active_pane_id(&client_id); screen.move_focus_right_or_next_tab(client_id)?; let new_pane_id = screen.get_active_p...
rust_dataset_chunk_514834
rust_dataset.txt
514,834
512
{ active_tab_and_connected_client_id!( screen, client_id, |tab: &mut Tab, client_id: ClientId| tab.clear_active_terminal_screen( client_id, ), ? ); ...
rust_dataset_chunk_514835
rust_dataset.txt
514,835
512
None => { let mut result = String::new(); if ansi { active_tab_and_connected_client_id!( screen, client_id, ...
rust_dataset_chunk_514836
rust_dataset.txt
514,836
512
}, ScreenInstruction::GetCurrentTabInfo { client_id, response_channel, } => { let err_context = || "Failed to get current tab info"; let tab_info = screen .get_current_tab_info(client_id) .wi...
rust_dataset_chunk_514837
rust_dataset.txt
514,837
512
::ListClientsToPlugin( session_layout_metadata, plugin_id, client_id, )) .with_context(err_context) .non_fatal(); }, ScreenInstruction::EditScrollback(client_id, an...
rust_dataset_chunk_514838
rust_dataset.txt
514,838
512
) => { active_tab_and_connected_client_id!( screen, client_id, |tab: &mut Tab, client_id: ClientId| tab .scroll_active_terminal_to_previous_prompt(client_id) ); screen.render(None)?; ...
rust_dataset_chunk_514839
rust_dataset.txt
514,839
512
}, ScreenInstruction::MovePaneDown( client_id, _completion_tx, // the action ends here, dropping this will release anything // waiting for it ) => { active_tab_and_connected_client_id!( ...
rust_dataset_chunk_514840
rust_dataset.txt
514,840
512
Down( client_id, _completion_tx, // the action ends here, dropping this will release anything // waiting for it ) => { let was_scrolled = screen.active_pane_is_scrolled(client_id); active_tab_and_connected_client...
rust_dataset_chunk_514841
rust_dataset.txt
514,841
512
// waiting for it ) => { let was_scrolled = screen.active_pane_is_scrolled(client_id); active_tab_and_connected_client_id!( screen, client_id, |tab: &mut Tab, client_id: ClientId| tab .scroll...
rust_dataset_chunk_514842
rust_dataset.txt
514,842
512
tab .clear_active_terminal_scroll(client_id), ? ); screen.sync_scroll_mode_if_scroll_changed(client_id, was_scrolled)?; screen.render(None)?; }, ScreenInstruction::CloseFocusedPane(client_id, completion_tx) => { ...
rust_dataset_chunk_514843
rust_dataset.txt
514,843
512
tab.set_mouse_selection_support(pid, selection_support); found_plugin = true; break; } } if !found_plugin { pending_events_waiting_for_tab.push( ScreenI...
rust_dataset_chunk_514844
rust_dataset.txt
514,844
512
_created.remove(&id) { pending_events_waiting_for_pane.remove(&id); closed_pane_was_never_created = true; } else { pending_events_waiting_for_pane.entry(id).or_default().push( ...
rust_dataset_chunk_514845
rust_dataset.txt
514,845
512
, // the action ends here, dropping this will release anything // waiting for it ) => { if screen.update_rename_target_pane_name(c.clone(), client_id) { screen.render(None)?; screen.log_and_report_session_state()?; ...
rust_dataset_chunk_514846
rust_dataset.txt
514,846
512
here, dropping this will release anything // waiting for it ) => { screen.pane_frame_style = match screen.pane_frame_style { PaneFrameStyle::Full => PaneFrameStyle::Titles, PaneFrameStyle::Titles => PaneFrameStyle::None...
rust_dataset_chunk_514847
rust_dataset.txt
514,847
512
::CloseTab( client_id, _completion_tx, // the action ends here, dropping this will release anything // waiting for it ) => { screen.close_tab(client_id)?; let connected_client_ids: Vec<ClientId> = ...
rust_dataset_chunk_514848
rust_dataset.txt
514,848
512
_tx, blocking_terminal, ) => { log::info!( "ScreenInstruction::ApplyLayout: applying layout for tab {}", tab_id ); if screen.tabs.contains_key(&tab_id) { completion_tx ...
rust_dataset_chunk_514849
rust_dataset.txt
514,849
512
(tab_position) = screen.get_tab_position_by_id(tab_id) { screen.go_to_tab(tab_position + 1, client_id)?; } } } else if should_change_focus_to_new_tab { let client_id_to_switch = if screen.active_tab_ids.contains_...
rust_dataset_chunk_514850
rust_dataset.txt
514,850
512
_to_tab(tab_index as usize, client_id)?; screen.render(None)?; }, _ => { if let Some(client_id) = client_id { pending_tab_switches.insert((tab_index as usize, client_id)); } ...
rust_dataset_chunk_514851
rust_dataset.txt
514,851
512
) { screen.report_no_client_to_act_for( client_id, "Cannot rename the focused tab: no client is attached to this session. Target a tab explicitly with --tab-id.".to_owned(), completion_tx, ); ...
rust_dataset_chunk_514852
rust_dataset.txt
514,852
512
screen.update_terminal_foreground_color(background_color_instruction); }, ScreenInstruction::TerminalColorRegisters(color_registers) => { screen.update_terminal_color_registers(color_registers); }, ScreenInstruction::SetKittyGraphicsSupport...
rust_dataset_chunk_514853
rust_dataset.txt
514,853
512
{ client_id, pane_id, outcome, } => { screen.handle_guest_modal_choice(client_id, pane_id, outcome); }, ScreenInstruction::ConfirmQuit(client_id) => { screen.confirm_quit(client_id); }, ...
rust_dataset_chunk_514854
rust_dataset.txt
514,854
512
_id)?; screen.render(None)?; }, ScreenInstruction::ChangeModeForAllClients( input_mode, base_mode, _completion_tx, // the action ends here, dropping this will release anything // waiting for it ...
rust_dataset_chunk_514855
rust_dataset.txt
514,855
512
::Terminal(pane_id) } }); if let Some(pane_id) = pane_id { screen.focus_pane_with_id(pane_id, true, false, client_id)?; } else if let Some(tab_position_to_focus) = tab_position_to_focus { screen.go_to_tab(tab_pos...
rust_dataset_chunk_514856
rust_dataset.txt
514,856
512
ScreenInstruction::SearchUp( client_id, _completion_tx, // the action ends here, dropping this will release anything // waiting for it ) => { active_tab_and_connected_client_id!( screen, ...
rust_dataset_chunk_514857
rust_dataset.txt
514,857
512
_text.clone(), None, ); break; } } } screen.render(None)?; }, ScreenInstruction::ClearPaneFrameColorOverride(pane_ids) => { ...
rust_dataset_chunk_514858
rust_dataset.txt
514,858
512
_and_connected_client_id!( screen, client_id, |tab: &mut Tab, _client_id: ClientId| tab.next_swap_layout(), ? ); screen.render(None)?; screen.log_and_report_session_state()?; }, ...
rust_dataset_chunk_514859
rust_dataset.txt
514,859
512
1. Determine which tabs to close (exist but not in layout) let existing_tab_indices: HashSet<usize> = screen.tabs.keys().copied().collect(); let layout_tab_indices: HashSet<usize> = tab_layouts.iter().map(|tl| tl.tab_index).collect(); let tabs_to_clos...
rust_dataset_chunk_514860
rust_dataset.txt
514,860
512
this tab let (tiled_to_ignore, floating_indices) = find_already_running_panes( &tab_layout_info.tiled_layout, &tab_layout_info.floating_layouts, tab, ); // Mark r...
rust_dataset_chunk_514861
rust_dataset.txt
514,861
512
); if let Err(e) = screen.new_tab( tab_result.tab_index, swap_layouts, tab_result.tab_name.clone(), None, ) { log::error!( ...
rust_dataset_chunk_514862
rust_dataset.txt
514,862
512
_float = Some(false); let should_be_opened_in_place = false; let should_focus_plugin = if no_focus { Some(false) } else { None }; screen .bus .senders .send_to_pty(PtyInstruction::FillPluginCwd( ...
rust_dataset_chunk_514863
rust_dataset.txt
514,863
512
let should_focus_plugin = if no_focus { Some(false) } else { None }; screen .bus .senders .send_to_pty(PtyInstruction::FillPluginCwd( should_float, ...
rust_dataset_chunk_514864
rust_dataset.txt
514,864
512
_pane, ); } if screen.active_tab_ids.is_empty() && tab_index.is_none() { pending_events_waiting_for_client.push(ScreenInstruction::AddPlugin( maybe_should_float, should_be_in_place, ...
rust_dataset_chunk_514865
rust_dataset.txt
514,865
512
true; active_tab.new_pane( PaneId::Plugin(plugin_id), Some(pane_title), Some(run_plugin), start_suppressed, should_focus_plugin.unwrap_or(true), ...
rust_dataset_chunk_514866
rust_dataset.txt
514,866
512
() { if tab.has_plugin(pid) { tab.progress_plugin_loading_offset(pid); break; } } screen.render(None)?; }, ScreenInstruction::RequestStateUpdateForPlugins => { ...
rust_dataset_chunk_514867
rust_dataset.txt
514,867
512
should_float, move_to_focused_tab, should_open_in_place, client_id, &mut completion_tx, ) ...
rust_dataset_chunk_514868
rust_dataset.txt
514,868
512
close_replaced_pane, None, run_plugin, tab_index, Some(pane_id_to_replace), client_id, ...
rust_dataset_chunk_514869
rust_dataset.txt
514,869
512
) { tab.unsuppress_pane(pane_id, should_float_if_hidden); drop(screen.render(None)); break; } } screen.log_and_report_session_state()?; }, ScreenInstruction::UnsuppressOrEx...
rust_dataset_chunk_514870
rust_dataset.txt
514,870
512
, pane_id) { Ok(()) => drop(screen.render(None)), Err(e) => log::error!("Failed to rename pane: {:?}", e), } break; } } screen.log_and_report_session_state()?; ...
rust_dataset_chunk_514871
rust_dataset.txt
514,871
512
)?; screen.render(None)?; screen .tab_history .entry(client_id) .or_insert_with(Vec::new) .push(tab_id); } else { l...
rust_dataset_chunk_514872
rust_dataset.txt
514,872
512
(plugin_id, plugin_permission) => { let all_tabs = screen.get_tabs_mut(); let found = all_tabs.values_mut().any(|tab| { if tab.has_plugin(plugin_id) { tab.request_plugin_permissions(plugin_id, Some(plugin_permission.clone())); ...
rust_dataset_chunk_514873
rust_dataset.txt
514,873
512
, &mut pending_events_waiting_for_pane, ); drop(completion_tx); screen.log_and_report_session_state()?; }, ScreenInstruction::SerializeLayoutForResurrection => { if screen.session_serialization { ...
rust_dataset_chunk_514874
rust_dataset.txt
514,874
512
LayoutMetadata::new(screen.default_layout.clone()) }; screen .bus .senders .send_to_pty(PtyInstruction::SaveSessionToDisk { session_name: screen.session_name.clone(), session_info...
rust_dataset_chunk_514875
rust_dataset.txt
514,875
512
, border_style, floating_border_style, stacked_resize, stacked_pane_list, default_editor, advanced_mouse_actions, mouse_scroll_resize, ...
rust_dataset_chunk_514876
rust_dataset.txt
514,876
512
let mut should_update_ui = false; match pane_id { Some(pane_id) => { let all_tabs = screen.get_tabs_mut(); for tab in all_tabs.values_mut() { if tab.has_pane_with_pid(&pane_id) { ...
rust_dataset_chunk_514877
rust_dataset.txt
514,877
512
for tab in all_tabs.values_mut() { if tab.has_pane_with_pid(&plugin_pane_id) { tab.copy_text_to_clipboard(&text) .with_context(|| { format!( "failed to copy text to clipboard from...
rust_dataset_chunk_514878
rust_dataset.txt
514,878
512
)?; }, ScreenInstruction::ScrollDownInPaneId(pane_id) => { let all_tabs = screen.get_tabs_mut(); for tab in all_tabs.values_mut() { if tab.has_pane_with_pid(&pane_id) { if let PaneId::Terminal(terminal_pane_id) = pane_id...
rust_dataset_chunk_514879
rust_dataset.txt
514,879
512
for tab in all_tabs.values_mut() { if tab.has_pane_with_pid(&pane_id) { if let PaneId::Terminal(terminal_pane_id) = pane_id { tab.scroll_terminal_page_up(terminal_pane_id); } else { // this is be...
rust_dataset_chunk_514880
rust_dataset.txt
514,880
512
_pane_id(pane_id, None) .non_fatal(); found = true; break; } } screen.render(None)?; if found { screen.log_and_report_session_state()?; } ...
rust_dataset_chunk_514881
rust_dataset.txt
514,881
512
"BROKEN OUT".to_owned(), ), ); } screen.clear_pane_group(&client_id); }, ScreenInstruction::BreakPanesToTabWithIndex { pane_ids, tab_index, should_change_focus_to_new_tab,...
rust_dataset_chunk_514882
rust_dataset.txt
514,882
512
non_fatal(); } }, ScreenInstruction::ChangeFloatingPanesCoordinates( pane_ids_and_coordinates, float_tiled_panes, mut completion_tx, ) => { let failed_pane_ids = screen .change_floatin...
rust_dataset_chunk_514883
rust_dataset.txt
514,883
512
_tx, // the action ends here, dropping this will release anything // waiting for it ) => { screen.toggle_group_marking(client_id).non_fatal(); }, ScreenInstruction::SessionSharingStatusChange(web_sharing) => { if web_sha...
rust_dataset_chunk_514884
rust_dataset.txt
514,884
512
JECTED".to_owned(), ), ); } } let _ = screen.log_and_report_session_state(); }, ScreenInstruction::EmbedMultiplePanes(pane_ids_to_float, client_id) => { { l...
rust_dataset_chunk_514885
rust_dataset.txt
514,885
512
.insert(client_id, away_since_ms); }, None => { screen.pending_session_card_away_since.remove(&client_id); }, } screen.open_session_card(client_id); }, ...
rust_dataset_chunk_514886
rust_dataset.txt
514,886
512
{ screen.on_quit = on_quit; }, ScreenInstruction::GetSessionPreview { tab_index, pane_id, anchor, response_channel, } => { let preview = screen.session_preview(tab_index, pane_id, anchor)...
rust_dataset_chunk_514887
rust_dataset.txt
514,887
512
_plugin_id, client_id, run_plugin_or_alias, line, column, width, height, options, } => { screen.open_plugin_popup_for_plugin( requesting_plugin_id, ...
rust_dataset_chunk_514888
rust_dataset.txt
514,888
512
{ plugin_id, width, height, } => { screen.set_popup_size(plugin_id, width, height)?; }, ScreenInstruction::RevealPopup(plugin_id) => { screen.reveal_popup(plugin_id)?; }, ScreenIn...
rust_dataset_chunk_514889
rust_dataset.txt
514,889
512
() { if tab.has_pane_with_pid(&pane_id) { tab.set_plugin_regex_highlights_for_pane( pane_id, plugin_id, highlights, &style, ); break; } } screen.ren...
rust_dataset_chunk_514890
rust_dataset.txt
514,890
512
, attach, outbox, } => { screen.mirror_attach(subscriber_id, attach, outbox); }, ScreenInstruction::MirrorInput { subscriber_id, input, } => { screen.mirror_input(subscriber_id...
rust_dataset_chunk_514891
rust_dataset.txt
514,891
512
Key(release_key) => { screen.set_live_view_release_key(release_key); }, ScreenInstruction::UpdateBackgroundPluginSubscriptions( plugin_id, client_id, subscriptions, ) => { if subscriptions.is_empty() { ...
rust_dataset_chunk_514892
rust_dataset.txt
514,892
512
?} not found", pane_id)); } } screen.sync_scroll_mode_for_pane_id(pane_id)?; screen.render(None)?; }, ScreenInstruction::ScrollToTopWithPaneId(pane_id, mut _completion_tx) => { let all_tabs = screen.get_tabs_mut(...
rust_dataset_chunk_514893
rust_dataset.txt
514,893
512
c.set_error_message(format!("Pane with id {:?} not found", pane_id)); } } screen.sync_scroll_mode_for_pane_id(pane_id)?; screen.render(None)?; }, ScreenInstruction::PageScrollDownWithPaneId(pane_id, mut _completion_tx) => { ...
rust_dataset_chunk_514894
rust_dataset.txt
514,894
512
c) = _completion_tx { c.set_exit_status(1); c.set_error_message(format!("Pane with id {:?} not found", pane_id)); } } screen.sync_scroll_mode_for_pane_id(pane_id)?; screen.render(None)?; }, ...
rust_dataset_chunk_514895
rust_dataset.txt
514,895
512
mut c) = _completion_tx { c.set_exit_status(1); c.set_error_message(format!("Pane with id {:?} not found", pane_id)); } } screen.render(None)?; screen.log_and_report_session_state()?; }, ...
rust_dataset_chunk_514896
rust_dataset.txt
514,896
512
id {:?} not found", pane_id)); } } screen.render(None)?; screen.log_and_report_session_state()?; }, ScreenInstruction::ToggleNoUiFullscreenWithPaneId(pane_id, mut _completion_tx) => { let all_tabs = screen.get_t...
rust_dataset_chunk_514897
rust_dataset.txt
514,897
512
Instruction::RenamePaneWithPaneId(pane_id, name, mut _completion_tx) => { let all_tabs = screen.get_tabs_mut(); let mut found = false; for tab in all_tabs.values_mut() { if tab.has_pane_with_pid(&pane_id) { tab.rename_pane_by_pa...
rust_dataset_chunk_514898
rust_dataset.txt
514,898
512
{:?} not found", pane_id)); } } }, // Tab-targeting CLI handlers ScreenInstruction::UndoRenameTabWithTabId(tab_id, mut _completion_tx) => { if let Some(tab) = screen.tabs.get_mut(&tab_id) { if tab.name != tab.pr...
rust_dataset_chunk_514899
rust_dataset.txt
514,899
512
error!("Tab with id {} not found", tab_id); if let Some(ref mut c) = _completion_tx { c.set_exit_status(1); c.set_error_message(format!("Tab with id {} not found", tab_id)); } } screen.render(None)?; ...