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_517600
rust_dataset.txt
517,600
512
CUSTOM_COLOR_LEVEL up), whose // first entry is this mark followed by the URL in hex. Older versions of // Zellij skip entries that aren't numbers, so they show the text unlinked. const LINK_MARK: char = 'l'; #[derive(Debug, Default, Clone)] pub struct Text { text: String, selected: bool, opaque: bool, ...
rust_dataset_chunk_517601
rust_dataset.txt
517,601
512
{ Bound::Unbounded => self.text.chars().count(), Bound::Included(s) => *s + 1, Bound::Excluded(s) => *s, }; let indices = start..end; self.indices .get_mut(DIM_LEVEL) .map(|i| i.append(&mut indices.into_iter().collect())); self...
rust_dataset_chunk_517602
rust_dataset.txt
517,602
512
(ITALIC_LEVEL, indices) } pub fn italic_all(self) -> Self { const ITALIC_LEVEL: usize = 8; self.color_range(ITALIC_LEVEL, ..) } pub fn unbold_all(self) -> Self { const UNBOLD_LEVEL: usize = 5; self.color_range(UNBOLD_LEVEL, ..) } pub fn error_color_indices(mut sel...
rust_dataset_chunk_517603
rust_dataset.txt
517,603
512
_color_range(start..end), None => self, } } pub fn error_color_all(self) -> Self { self.error_color_range(..) } pub fn success_color_indices(mut self, mut indices: Vec<usize>) -> Self { const SUCCESS_COLOR_LEVEL: usize = 7; self.pad_indices(SUCCESS_COLOR_LEVE...
rust_dataset_chunk_517604
rust_dataset.txt
517,604
512
, index_level: usize, mut indices: Vec<usize>) -> Self { self.pad_indices(index_level); self.indices .get_mut(index_level) .map(|i| i.append(&mut indices)); self } pub fn rgb_color_range<R: RangeBounds<usize>>(mut self, rgb: [u8; 3], indices: R) -> Self { ...
rust_dataset_chunk_517605
rust_dataset.txt
517,605
512
substr: S, occurrence_index: usize, ) -> Self { match self .substring_char_ranges(substr.as_ref()) .get(occurrence_index) .copied() { Some((start, end)) => self.color_range(index_level, start..end), None => self, } } ...
rust_dataset_chunk_517606
rust_dataset.txt
517,606
512
_LEVEL); self.pad_indices(level); self.links.insert(level, url); level } fn substring_char_ranges(&self, substr: &str) -> Vec<(usize, usize)> { let mut ranges = vec![]; if substr.is_empty() { return ranges; } let substr_chars = substr.chars()....
rust_dataset_chunk_517607
rust_dataset.txt
517,607
512
[position]) { lines.push(std::mem::take(&mut line)); line_width = 0; position += 1; continue; } if is_whitespace(&units[position]) { position += 1; continue; } let word_end = (...
rust_dataset_chunk_517608
rust_dataset.txt
517,608
512
} indices[level].push(column); } }; let mut column = 0; for (slot, original) in line.iter().enumerate() { match original { Some(original) => { let (cluster...
rust_dataset_chunk_517609
rust_dataset.txt
517,609
512
}, _ => {}, } entries.extend(index_variants.iter().map(|i| i.to_string())); indices.push_str(&format!("{}$", entries.join(","))); } let mut prefix = "".to_owned(); if self.selected { prefix.push('x'); } if self.o...
rust_dataset_chunk_517610
rust_dataset.txt
517,610
512
6], 1..2) .rgb_color_range([1, 2, 3], 2..3); let first = CUSTOM_COLOR_MARK + 0x010203; let second = CUSTOM_COLOR_MARK + 0x040506; assert_eq!(text.indices[CUSTOM_COLOR_LEVEL], vec![first, 0, 2]); assert_eq!(text.indices[CUSTOM_COLOR_LEVEL + 1], vec![second, 1]); } fn...
rust_dataset_chunk_517611
rust_dataset.txt
517,611
512
_substring("é") .error_color_substring("o é") .success_color_substring("fo"); assert_eq!(level(&text, 4), vec![2, 3, 4, 8, 9, 10]); assert_eq!(level(&text, 5), vec![0, 6]); assert_eq!(level(&text, 6), vec![4, 5, 6]); assert_eq!(level(&text, 7), vec![2, 3, 8, 9]); ...
rust_dataset_chunk_517612
rust_dataset.txt
517,612
512
= Text::from("e\u{301}e\u{301}e\u{301}").wrap(2); let contents: Vec<&str> = lines.iter().map(|line| line.content()).collect(); assert_eq!(contents, vec!["e\u{301}e\u{301}", "e\u{301}"]); let lines = Text::from("👨‍👩‍👧 ab").wrap(3); let contents: Vec<&str> = lines.iter().map(|line| lin...
rust_dataset_chunk_517613
rust_dataset.txt
517,613
512
_color_range([1, 2, 3], 0..1) .link_all("https://a.dev") .rgb_color_range([4, 5, 6], 1..2); assert_eq!( level(&text, CUSTOM_COLOR_LEVEL), vec![CUSTOM_COLOR_MARK + 0x010203, 0] ); assert_eq!(level(&text, CUSTOM_COLOR_LEVEL + 1), vec![0, 1]); ...
rust_dataset_chunk_517614
rust_dataset.txt
517,614
512
focused: bool, disabled: bool, hovered: bool, area: Option<Rect>, } impl Toggle { pub fn new(label: impl Into<Text>, on: bool) -> Self { Toggle { label: label.into(), on, label_width: None, field_width: None, focused: false, ...
rust_dataset_chunk_517615
rust_dataset.txt
517,615
512
.effective_label_width()); widget_dcs( "toggle", x, y, Some(width), Some(1), &state, &[self.label.serialize()], ) } pub fn render(&mut self, x: usize, y: usize) { print!("{}", self.serialize(x, y)); }...
rust_dataset_chunk_517616
rust_dataset.txt
517,616
512
self.height && column >= self.x && column < self.x + self.width } pub fn bottom(&self) -> usize { self.y + self.height } pub fn right(&self) -> usize { self.x + self.width } } #[derive(Debug, Clone, PartialEq)] pub enum UiValue { None, Bool(bool), ...
rust_dataset_chunk_517617
rust_dataset.txt
517,617
512
-> bool; fn last_area(&self) -> Option<Rect>; fn clear_area(&mut self); fn hit_test(&self, line: isize, column: usize) -> bool { self.last_area() .map(|area| area.contains(line, column)) .unwrap_or(false) } fn captures_input(&self) -> bool { false } f...
rust_dataset_chunk_517618
rust_dataset.txt
517,618
512
key.bare_key == BareKey::Tab && key.has_only_modifiers(&[KeyModifier::Shift]) } pub(crate) fn is_activation_key(key: &KeyWithModifier) -> bool { is_plain(key, BareKey::Enter) || is_plain(key, BareKey::Char(' ')) } pub(crate) fn typed_char(key: &KeyWithModifier) -> Option<char> { match key.bare_key { ...
rust_dataset_chunk_517619
rust_dataset.txt
517,619
512
: &mut bool, hit: bool) -> UiResponse { let changed = *hovered != hit; *hovered = hit; if hit || changed { UiResponse::Consumed } else { UiResponse::NotHandled } } pub fn fuzzy_match_indices(query: &str, candidate: &str) -> Option<Vec<usize>> { let mut indices = vec![]; let ...
rust_dataset_chunk_517620
rust_dataset.txt
517,620
512
enc("Save")]; assert_eq!( Button::new("Save").serialize(2, 3), dcs("button", "2/3/8/1", "", &label) ); assert_eq!( Button::new("Save").focused().serialize(2, 3), dcs("button", "2/3/8/1", "f", &label) ); assert_eq!( Button::new("Save").hovered().serialize(2, 3)...
rust_dataset_chunk_517621
rust_dataset.txt
517,621
512
button.handle_key(&key(BareKey::Enter)), UiResponse::NotHandled ); assert_eq!( button.handle_mouse(Mouse::LeftClick(0, 1)), UiResponse::Consumed ); assert!(!button.is_pressed()); } #[test] fn toggle_serializes_on_off_focused_and_disabled() { let label = vec![enc("Wrap")]; ...
rust_dataset_chunk_517622
rust_dataset.txt
517,622
512
_highlight() { let mut menu = sample_menu().with_border().focused(); let serialized = menu.serialize(1, 2, 20, 10); let fields = vec![ format!("{}:{}", enc("Copy"), enc("Ctrl c")), enc("Paste"), "-".to_owned(), format!("d{}", enc("Delete")), enc("Rename"), ]; ...
rust_dataset_chunk_517623
rust_dataset.txt
517,623
512
let serialized = menu.serialize(0, 0, 10, 5); let fields = vec![ format!("{}//0,1", enc("main")), format!("{}/2/0", enc("dev")), ]; assert_eq!( serialized, dcs("menu", "0/0/10/2", "hl=0,above=0,below=0", &fields) ); } #[test] fn menu_list_arrows_skip_separators_and_d...
rust_dataset_chunk_517624
rust_dataset.txt
517,624
512
Consumed); assert_eq!(menu.highlighted_index(), Some(1)); assert_eq!( menu.handle_mouse(Mouse::LeftClick(5, 3)), UiResponse::Submitted(choice(4, "Rename")) ); assert_eq!( menu.handle_mouse(Mouse::LeftClick(4, 3)), UiResponse::Consumed ); assert_eq!( menu.h...
rust_dataset_chunk_517625
rust_dataset.txt
517,625
512
menu.serialize(0, 0, 14, 6); assert!(serialized.contains(";b,hl=0,above=3,below=3;")); assert_eq!(menu.handle_mouse(Mouse::Hover(5, 3)), UiResponse::Consumed); assert!(menu.serialize(0, 0, 14, 6).contains(",hd;")); assert_eq!( menu.handle_mouse(Mouse::LeftClick(5, 3)), UiResponse::Consu...
rust_dataset_chunk_517626
rust_dataset.txt
517,626
512
, 18, 20); let overlay = dropdown.serialize_overlay(20, 40); assert!(overlay.starts_with("\u{1b}Pzmenu;5/13/15/5;")); assert!(dropdown.opens_upward()); assert_eq!(dropdown.list_area(), Some(Rect::new(5, 13, 15, 5))); } #[test] fn dropdown_list_is_limited_and_scrolls() { let options: Vec<String> = (...
rust_dataset_chunk_517627
rust_dataset.txt
517,627
512
Some("compact")); } #[test] fn dropdown_mouse_opens_chooses_and_cancels_on_outside_click() { let mut dropdown = sample_dropdown(); dropdown.serialize(0, 0, 20); assert_eq!( dropdown.handle_mouse(Mouse::LeftClick(0, 10)), UiResponse::Consumed ); assert!(dropdown.is_open()); drop...
rust_dataset_chunk_517628
rust_dataset.txt
517,628
512
/0/12/2", "err,lw=0", &[String::new(), enc("12a"), enc("digits only"), String::new()] ) ); let disabled = TextInput::new("x").disabled().focused().serialize(0, 0, 10); assert!(disabled.contains(";f,d,lw=0;")); } #[test] fn text_input_scrolls_horizontally_to_follow_the_cursor...
rust_dataset_chunk_517629
rust_dataset.txt
517,629
512
= |c: char| KeyWithModifier::new(BareKey::Char(c)).with_ctrl_modifier(); input.handle_key(&KeyWithModifier::new(BareKey::Backspace).with_ctrl_modifier()); assert_eq!(input.get_text(), "hello "); input.handle_key(&ctrl('z')); assert_eq!(input.get_text(), "hello world"); input.handle_key(&ctrl('y'));...
rust_dataset_chunk_517630
rust_dataset.txt
517,630
512
(&ch('7')), UiResponse::Changed(UiValue::Text("7".to_owned())) ); } #[test] fn text_input_click_moves_the_cursor() { let mut input = TextInput::new("hello").label("L"); input.serialize(0, 0, 20); assert_eq!( input.handle_mouse(Mouse::LeftClick(0, 6)), UiResponse::Consumed );...
rust_dataset_chunk_517631
rust_dataset.txt
517,631
512
{301}")]) ); } #[test] fn fuzzy_match_indices_returns_character_positions_with_clusters() { assert_eq!(fuzzy_match_indices("x", "e\u{301}x"), Some(vec![2])); assert_eq!( fuzzy_match_indices("b", &format!("{}b", FAMILY)), Some(vec![5]) ); } #[test] fn number_stepper_serializes_and_clamp...
rust_dataset_chunk_517632
rust_dataset.txt
517,632
512
(BareKey::Backspace)); stepper.handle_key(&key(BareKey::Backspace)); stepper.handle_key(&ch('3')); assert_eq!( stepper.handle_key(&key(BareKey::Enter)), UiResponse::Changed(UiValue::Number(3)) ); stepper.handle_key(&ch('9')); assert_eq!( stepper.handle_key(&key(BareKey::E...
rust_dataset_chunk_517633
rust_dataset.txt
517,633
512
Click(0, 2)), UiResponse::Consumed ); assert_eq!( stepper.handle_mouse(Mouse::LeftClick(0, 8)), UiResponse::Changed(UiValue::Number(1)) ); assert_eq!( stepper.handle_mouse(Mouse::LeftClick(0, 5)), UiResponse::Consumed ); } #[test] fn scroll_view_tracks_visibl...
rust_dataset_chunk_517634
rust_dataset.txt
517,634
512
.handle_mouse(Mouse::LeftClick(5, 5)), UiResponse::NotHandled ); assert_eq!( view.handle_mouse(Mouse::LeftClick(11, 11)), UiResponse::Changed(UiValue::Index(40)) ); let mut short = ScrollView::new(3); short.layout(0, 0, 10, 10); assert!(!short.needs_indicators()); ass...
rust_dataset_chunk_517635
rust_dataset.txt
517,635
512
=0,above=0,below=6;")); for _ in 0..3 { menu.handle_key(&key(BareKey::Down)); } let serialized = menu.serialize(0, 0, 10, 6); assert!(serialized.contains(";ind,sel=2,above=1,below=5;")); assert_eq!( menu.handle_mouse(Mouse::ScrollDown(2)), UiResponse::NotHandled ); as...
rust_dataset_chunk_517636
rust_dataset.txt
517,636
512
_tab()), UiResponse::Consumed); assert_eq!(dialog.handle_key(&ch('x')), UiResponse::Consumed); assert_eq!( dialog.handle_key(&key(BareKey::Enter)), UiResponse::Submitted(choice(1, "No")) ); assert!(!dialog.is_open()); assert_eq!( dialog.handle_key(&key(BareKey::Enter)), ...
rust_dataset_chunk_517637
rust_dataset.txt
517,637
512
); assert_eq!( group.handle_key(&shift_tab()), FocusEvent::FocusChanged("mode") ); assert_eq!( group.handle_key(&key(BareKey::Tab)), FocusEvent::FocusChanged("name") ); let mut no_wrap = sample_group().wrap(false); no_wrap.focus(&"mode"); assert_eq!( ...
rust_dataset_chunk_517638
rust_dataset.txt
517,638
512
")); assert_eq!( group.handle_mouse(Mouse::LeftClick(6, 8)), FocusEvent::Element { key: "mode", response: UiResponse::Changed(choice(1, "titles")) } ); assert!(!group.has_open_overlay()); assert_eq!( group.handle_mouse(Mouse::LeftClick(1, 2)), ...
rust_dataset_chunk_517639
rust_dataset.txt
517,639
512
(0, 0).contains(";;")); let mut toggle = Toggle::new("", true); toggle.serialize(0, 0); toggle.handle_mouse(Mouse::Hover(0, 1)); assert!(toggle.serialize(0, 0).contains(";on,h,lw=0;")); let mut stepper = NumberStepper::new("", 5); stepper.serialize(0, 0); stepper.handle_mouse(Mouse::Hover(0,...
rust_dataset_chunk_517640
rust_dataset.txt
517,640
512
_indices("ape", "grape"), Some(vec![2, 3, 4])); assert_eq!(fuzzy_match_indices("gpe", "grape"), Some(vec![0, 3, 4])); assert_eq!(fuzzy_match_indices("AP", "apple"), Some(vec![0, 1])); assert_eq!(fuzzy_match_indices("", "anything"), Some(vec![])); assert_eq!(fuzzy_match_indices("zz", "pizza"), Some(vec![...
rust_dataset_chunk_517641
rust_dataset.txt
517,641
512
Handled ); assert_eq!(view.offset(), offset); } #[test] fn wrapping_text_keeps_its_colours_on_every_line() { let message = Text::from("Delete Alt n from Normal mode?").color_range(3, 7..12); let lines = message.wrap(9); let contents: Vec<&str> = lines.iter().map(|line| line.content()).collect(); ...
rust_dataset_chunk_517642
rust_dataset.txt
517,642
512
()) .opened() .serialize(0, 0, 60, 20) .contains(&serialized)); assert_eq!(Button::new(label.clone()).label(), "Delete main?"); assert_eq!( Button::new("Go").serialize(0, 0), Button::new(Text::from("Go")).serialize(0, 0) ); assert!(Button::new("Go").serialize(0, 0...
rust_dataset_chunk_517643
rust_dataset.txt
517,643
512
Percent(u32), #[prost(uint32, tag="2")] Fixed(u32), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct LayoutConstraintWithValue { #[prost(enumeration="LayoutConstraint", tag="1")] pub constraint_type: i32, #[prost(uint32, ...
rust_dataset_chunk_517644
rust_dataset.txt
517,644
512
::option::Option<RunPluginLocationData>, #[prost(message, optional, tag="3")] pub configuration: ::core::option::Option<PluginUserConfiguration>, #[prost(string, optional, tag="4")] pub initial_cwd: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] ...
rust_dataset_chunk_517645
rust_dataset.txt
517,645
512
pub struct PaneRun { #[prost(oneof="pane_run::RunType", tags="1, 2, 3, 4")] pub run_type: ::core::option::Option<pane_run::RunType>, } /// Nested message and enum types in `PaneRun`. pub mod pane_run { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum Ru...
rust_dataset_chunk_517646
rust_dataset.txt
517,646
512
#[prost(string, optional, tag="13")] pub pane_initial_contents: ::core::option::Option<::prost::alloc::string::String>, #[prost(message, optional, tag="14")] pub border_style: ::core::option::Option<super::style::BorderStyleOverride>, #[prost(string, optional, tag="15")] pub stack_orientation: ::co...
rust_dataset_chunk_517647
rust_dataset.txt
517,647
512
repeated, tag="1")] pub constraint_map: ::prost::alloc::vec::Vec<LayoutConstraintTiledPair>, #[prost(string, optional, tag="2")] pub name: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SwapFl...
rust_dataset_chunk_517648
rust_dataset.txt
517,648
512
OrPluginType>, } /// Nested message and enum types in `CommandOrPlugin`. pub mod command_or_plugin { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum CommandOrPluginType { #[prost(message, tag="1")] Command(super::RunCommandAction), #[pr...
rust_dataset_chunk_517649
rust_dataset.txt
517,649
512
st(message, optional, tag="3")] pub tiled_layout: ::core::option::Option<TiledPaneLayout>, #[prost(message, repeated, tag="4")] pub floating_layouts: ::prost::alloc::vec::Vec<FloatingPaneLayout>, #[prost(message, repeated, tag="5")] pub swap_tiled_layouts: ::prost::alloc::vec::Vec<SwapTiledLayout>, ...
rust_dataset_chunk_517650
rust_dataset.txt
517,650
512
optional_payload: ::core::option::Option<action::OptionalPayload>, } /// Nested message and enum types in `Action`. pub mod action { #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum OptionalPayload { #[prost(message, tag="2")] SwitchToModePaylo...
rust_dataset_chunk_517651
rust_dataset.txt
517,651
512
prost(message, tag="22")] LeftClickPayload(super::Position), #[prost(message, tag="23")] RightClickPayload(super::Position), #[prost(message, tag="24")] MiddleClickPayload(super::Position), #[prost(message, tag="25")] LaunchOrFocusPluginPayload(super::LaunchOrFocu...
rust_dataset_chunk_517652
rust_dataset.txt
517,652
512
48")] MoveTabPayload(i32), #[prost(message, tag="49")] MouseEventPayload(super::MouseEventPayload), #[prost(message, tag="50")] NewBlockingPanePayload(super::NewBlockingPanePayload), #[prost(message, tag="51")] NewTabPayload(super::NewTabPayload), #[prost(...
rust_dataset_chunk_517653
rust_dataset.txt
517,653
512
), #[prost(message, tag="71")] BarNamesPayload(super::BarNamesPayload), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BarNamesPayload { #[prost(string, repeated, tag="1")] pub bar_names: ::prost::alloc::vec::Vec<::prost::alloc::st...
rust_dataset_chunk_517654
rust_dataset.txt
517,654
512
, tag="2")] pub border_style: ::core::option::Option<super::style::BorderStyleOverride>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct SetPaneFrameStylePayload { #[prost(enumeration="super::pane_frame_style::PaneFrameStyle", tag="1")] pub pane_fram...
rust_dataset_chunk_517655
rust_dataset.txt
517,655
512
_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AreFloatingPanesVisiblePayload { #[prost(uint32, optional, tag="1")] pub tab_id: ::core::option::Option<u32>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PaneIdAndShouldFloat { ...
rust_dataset_chunk_517656
rust_dataset.txt
517,656
512
, optional, tag="1")] pub command: ::core::option::Option<RunCommandAction>, #[prost(bool, tag="2")] pub near_current_pane: bool, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewTiledPanePayload { #[prost(message, optional, tag="1")] pub c...
rust_dataset_chunk_517657
rust_dataset.txt
517,657
512
>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewPanePayload { #[prost(enumeration="super::resize::ResizeDirection", optional, tag="1")] pub direction: ::core::option::Option<i32>, #[prost(string, optional, tag="2")] pub pane_name: ::core::o...
rust_dataset_chunk_517658
rust_dataset.txt
517,658
512
WritePayload { #[prost(bytes="vec", tag="1")] pub bytes_to_write: ::prost::alloc::vec::Vec<u8>, #[prost(message, optional, tag="2")] pub key_with_modifier: ::core::option::Option<KeyWithModifier>, #[prost(bool, tag="3")] pub is_kitty_keyboard_protocol: bool, } #[allow(clippy::derive_partial_eq_...
rust_dataset_chunk_517659
rust_dataset.txt
517,659
512
")] Fixed(u32), } } /// PaneId identifies either a terminal or plugin pane #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PaneId { #[prost(oneof="pane_id::PaneIdVariant", tags="1, 2")] pub pane_id_variant: ::core::option::Option<pane_id::PaneI...
rust_dataset_chunk_517660
rust_dataset.txt
517,660
512
_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NewPanePlacement { #[prost(oneof="new_pane_placement::PlacementVariant", tags="1, 2, 3, 4, 5")] pub placement_variant: ::core::option::Option<new_pane_placement::PlacementVariant>, } /// Nested message and enum types in `NewPanePlacement`. p...
rust_dataset_chunk_517661
rust_dataset.txt
517,661
512
prost(message, optional, tag="1")] pub pane_id_to_replace: ::core::option::Option<PaneId>, #[prost(bool, tag="2")] pub close_replaced_pane: bool, #[prost(bool, optional, tag="3")] pub borderless: ::core::option::Option<bool>, #[prost(message, optional, tag="4")] pub border_style: ::core::opt...
rust_dataset_chunk_517662
rust_dataset.txt
517,662
512
{ #[prost(string, tag="1")] pub command: ::prost::alloc::string::String, #[prost(string, repeated, tag="2")] pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string, optional, tag="3")] pub cwd: ::core::option::Option<::prost::alloc::string::String>, #[prost(enume...
rust_dataset_chunk_517663
rust_dataset.txt
517,663
512
0, Horizontal = 1, Vertical = 2, } impl SplitDirection { /// String value of the enum field names used in the ProtoBuf definition. /// /// The values are not transformed in any way and thus are considered stable /// (if the ProtoBuf definition does not change) and safe for programmatic use. ...
rust_dataset_chunk_517664
rust_dataset.txt
517,664
512
PECIFIED" => Some(Self::Unspecified), "LAYOUT_CONSTRAINT_MAX_PANES" => Some(Self::MaxPanes), "LAYOUT_CONSTRAINT_MIN_PANES" => Some(Self::MinPanes), "LAYOUT_CONSTRAINT_EXACT_PANES" => Some(Self::ExactPanes), "LAYOUT_CONSTRAINT_NO_CONSTRAINT" => Some(Self::NoConstraint), ...
rust_dataset_chunk_517665
rust_dataset.txt
517,665
512
pub fn as_str_name(&self) -> &'static str { match self { SearchDirection::Up => "Up", SearchDirection::Down => "Down", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option<Self> { ...
rust_dataset_chunk_517666
rust_dataset.txt
517,666
512
} /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option<Self> { match value { "Left" => Some(Self::Left), "Right" => Some(Self::Right), _ => None, } } } #[derive(Clone, Copy, Debu...
rust_dataset_chunk_517667
rust_dataset.txt
517,667
512
Click = 52, LaunchOrFocusPlugin = 53, LeftMouseRelease = 54, RightMouseRelease = 55, MiddleMouseRelease = 56, SearchInput = 60, Search = 61, SearchToggleOption = 62, ToggleMouseMode = 63, PreviousSwapLayout = 64, NextSwapLayout = 65, QueryTabNames = 66, NewTiledPluginPane...
rust_dataset_chunk_517668
rust_dataset.txt
517,668
512
FocusByPaneId = 117, ToggleFocusFullscreenByPaneId = 118, TogglePaneEmbedOrFloatingByPaneId = 119, TogglePanePinnedByPaneId = 120, TogglePaneInGroupByPaneId = 121, StartRenamePaneByPaneId = 122, MoveTabByTabId = 123, StartRenameTabByTabId = 124, DismissInfoPopups = 125, OpenContextMe...
rust_dataset_chunk_517669
rust_dataset.txt
517,669
512
Name::FocusNextPane => "FocusNextPane", ActionName::FocusPreviousPane => "FocusPreviousPane", ActionName::SwitchFocus => "SwitchFocus", ActionName::MoveFocus => "MoveFocus", ActionName::MoveFocusOrTab => "MoveFocusOrTab", ActionName::MovePane => "MovePane", ...
rust_dataset_chunk_517670
rust_dataset.txt
517,670
512
Tab", ActionName::TabNameInput => "TabNameInput", ActionName::UndoRenameTab => "UndoRenameTab", ActionName::Run => "Run", ActionName::Detach => "Detach", ActionName::LeftClick => "LeftClick", ActionName::RightClick => "RightClick", Acti...
rust_dataset_chunk_517671
rust_dataset.txt
517,671
512
Name::NewStackedPane => "NewStackedPane", ActionName::SwitchSession => "SwitchSession", ActionName::NewBlockingPane => "NewBlockingPane", ActionName::NewInPlacePane => "NewInPlacePane", ActionName::OverrideLayout => "OverrideLayout", ActionName::SetPaneBorderl...
rust_dataset_chunk_517672
rust_dataset.txt
517,672
512
Id", ActionName::MoveTabByTabId => "MoveTabByTabId", ActionName::StartRenameTabByTabId => "StartRenameTabByTabId", ActionName::DismissInfoPopups => "DismissInfoPopups", ActionName::OpenContextMenu => "OpenContextMenu", ActionName::MoveTabToPosition => "MoveTab...
rust_dataset_chunk_517673
rust_dataset.txt
517,673
512
Buf definition. pub fn from_str_name(value: &str) -> ::core::option::Option<Self> { match value { "Quit" => Some(Self::Quit), "Write" => Some(Self::Write), "WriteChars" => Some(Self::WriteChars), "SwitchToMode" => Some(Self::SwitchToMode), "SwitchM...
rust_dataset_chunk_517674
rust_dataset.txt
517,674
512
" => Some(Self::CloseFocus), "PaneNameInput" => Some(Self::PaneNameInput), "UndoRenamePane" => Some(Self::UndoRenamePane), "NewTab" => Some(Self::NewTab), "NoOp" => Some(Self::NoOp), "GoToNextTab" => Some(Self::GoToNextTab), "GoToPreviousTab" => So...
rust_dataset_chunk_517675
rust_dataset.txt
517,675
512
Pane" => Some(Self::RenamePluginPane), "RenameTab" => Some(Self::RenameTab), "BreakPane" => Some(Self::BreakPane), "BreakPaneRight" => Some(Self::BreakPaneRight), "BreakPaneLeft" => Some(Self::BreakPaneLeft), "RenameSession" => Some(Self::RenameSession), ...
rust_dataset_chunk_517676
rust_dataset.txt
517,676
512
NextPrompt" => Some(Self::ScrollToNextPrompt), "SelectCommandAtScrollPosition" => Some(Self::SelectCommandAtScrollPosition), "CopyLastCommandOutput" => Some(Self::CopyLastCommandOutput), "ApplyTiledSwapLayout" => Some(Self::ApplyTiledSwapLayout), "ApplyFloatingSwapLayout"...
rust_dataset_chunk_517677
rust_dataset.txt
517,677
512
::GoToNextSession), "GoToNextAttention" => Some(Self::GoToNextAttention), "MarkPaneSeen" => Some(Self::MarkPaneSeen), "MarkAllSeen" => Some(Self::MarkAllSeen), "ToggleTrayIcon" => Some(Self::ToggleTrayIcon), "OpenSessionInTerminal" => Some(Self::OpenSessionInT...
rust_dataset_chunk_517678
rust_dataset.txt
517,678
512
BLOCK_ON_EXIT_FAILURE" => Some(Self::UnblockOnExitFailure), "UNBLOCK_ON_ANY_EXIT" => Some(Self::UnblockOnAnyExit), _ => None, } } } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum BareKey { Unspecified = 0, PageD...
rust_dataset_chunk_517679
rust_dataset.txt
517,679
512
=> "BARE_KEY_DELETE", BareKey::Insert => "BARE_KEY_INSERT", BareKey::F1 => "BARE_KEY_F1", BareKey::F2 => "BARE_KEY_F2", BareKey::F3 => "BARE_KEY_F3", BareKey::F4 => "BARE_KEY_F4", BareKey::F5 => "BARE_KEY_F5", BareKey::F6 => "BARE_KEY_...
rust_dataset_chunk_517680
rust_dataset.txt
517,680
512
), "BARE_KEY_INSERT" => Some(Self::Insert), "BARE_KEY_F1" => Some(Self::F1), "BARE_KEY_F2" => Some(Self::F2), "BARE_KEY_F3" => Some(Self::F3), "BARE_KEY_F4" => Some(Self::F4), "BARE_KEY_F5" => Some(Self::F5), "BARE_KEY_F6" => Some(Self:...
rust_dataset_chunk_517681
rust_dataset.txt
517,681
512
", KeyModifier::Alt => "KEY_MODIFIER_ALT", KeyModifier::Shift => "KEY_MODIFIER_SHIFT", KeyModifier::Super => "KEY_MODIFIER_SUPER", } } /// Creates an enum from field names used in the ProtoBuf definition. pub fn from_str_name(value: &str) -> ::core::option::Option...
rust_dataset_chunk_517682
rust_dataset.txt
517,682
512
12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 63, 64")] pub payload: ::core::option::Option<event::Payload>, } /// Nested message and enum types in `Event`. pub mod ...
rust_dataset_chunk_517683
rust_dataset.txt
517,683
512
OpenedPayload), #[prost(message, tag="17")] CommandPaneExitedPayload(super::CommandPaneExitedPayload), #[prost(message, tag="18")] PaneClosedPayload(super::PaneClosedPayload), #[prost(message, tag="19")] EditPaneOpenedPayload(super::EditPaneOpenedPayload), #[prost...
rust_dataset_chunk_517684
rust_dataset.txt
517,684
512
::HostTerminalThemeChangedPayload), #[prost(message, tag="41")] SoftKeyboardVisibilityChangedPayload(super::SoftKeyboardVisibilityChangedPayload), #[prost(message, tag="42")] HintTextPayload(super::HintTextPayload), #[prost(message, tag="43")] ActivePaneScrollPayload(supe...
rust_dataset_chunk_517685
rust_dataset.txt
517,685
512
allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PluginSettingsEntry { #[prost(uint32, tag="1")] pub plugin_id: u32, #[prost(string, tag="2")] pub title: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, ...
rust_dataset_chunk_517686
rust_dataset.txt
517,686
512
>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct GlobalAttentionUpdatePayload { #[prost(string, tag="1")] pub current_session: ::prost::alloc::string::String, #[prost(message, repeated, tag="2")] pub sessions: ::prost::alloc::vec::Vec<GlobalSes...
rust_dataset_chunk_517687
rust_dataset.txt
517,687
512
_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BackArrival { } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ForwardArrival { } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct AttentionArriv...
rust_dataset_chunk_517688
rust_dataset.txt
517,688
512
_id: ::core::option::Option<PaneId>, #[prost(message, optional, tag="2")] pub command: ::core::option::Option<CommandText>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommandFinishedPayload { #[prost(message, optional, tag="1")] pub pane_id:...
rust_dataset_chunk_517689
rust_dataset.txt
517,689
512
String, #[prost(string, optional, tag="2")] pub source: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, tag="3")] pub text: ::prost::alloc::string::String, #[prost(message, optional, tag="4")] pub detail: ::core::option::Option<AttentionDetail>, #[prost(uint64, tag="5...
rust_dataset_chunk_517690
rust_dataset.txt
517,690
512
6")] pub command: ::core::option::Option<CommandText>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct RunningCommand { #[prost(message, optional, tag="1")] pub command: ::core::option::Option<CommandText>, #[prost(uint64, tag="2")] pub start...
rust_dataset_chunk_517691
rust_dataset.txt
517,691
512
::option::Option<u32>, #[prost(string, optional, tag="5")] pub app: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag="6")] pub title: ::core::option::Option<::prost::alloc::string::String>, #[prost(string, optional, tag="7")] pub msg: ::core::option::Option<:...
rust_dataset_chunk_517692
rust_dataset.txt
517,692
512
st(string, tag="2")] pub display_name: ::prost::alloc::string::String, #[prost(string, optional, tag="3")] pub description: ::core::option::Option<::prost::alloc::string::String>, #[prost(enumeration="KeybindPresetSource", tag="4")] pub source: i32, #[prost(string, repeated, tag="5")] pub pl...
rust_dataset_chunk_517693
rust_dataset.txt
517,693
512
vec::Vec<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct NestedSessionModeUpdatePayload { #[prost(message, optional, tag="1")] pub pane_id: ::core::option::Option<PaneId>, #[prost(string, repeated, tag="2")] pub s...
rust_dataset_chunk_517694
rust_dataset.txt
517,694
512
, tag="4")] pub toggled_label: ::core::option::Option<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct ContextMenuPayload { #[prost(enumeration="ContextMenuKind", tag="1")] pub kind: i32, #[prost(message, optional,...
rust_dataset_chunk_517695
rust_dataset.txt
517,695
512
tag="3")] pub base_mode: ::core::option::Option<i32>, #[prost(message, repeated, tag="4")] pub keybinds: ::prost::alloc::vec::Vec<InputModeKeybinds>, #[prost(uint64, tag="5")] pub keybinds_generation: u64, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)...
rust_dataset_chunk_517696
rust_dataset.txt
517,696
512
derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CwdChangedPayload { #[prost(message, optional, tag="1")] pub pane_id: ::core::option::Option<PaneId>, #[prost(string, tag="2")] pub new_cwd: ::prost::alloc::string::String, #[prost(uint32, repeated, tag="3")] ...
rust_dataset_chunk_517697
rust_dataset.txt
517,697
512
<::prost::alloc::string::String>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct HostFolderChangedPayload { #[prost(string, tag="1")] pub new_host_folder_path: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clo...
rust_dataset_chunk_517698
rust_dataset.txt
517,698
512
")] pub pane_type: i32, #[prost(uint32, tag="2")] pub id: u32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct CommandPaneOpenedPayload { #[prost(uint32, tag="1")] pub terminal_pane_id: u32, #[prost(message, repeated, tag="2")] pub co...
rust_dataset_chunk_517699
rust_dataset.txt
517,699
512
derive(Clone, PartialEq, ::prost::Message)] pub struct AvailableLayoutInfoPayload { #[prost(message, repeated, tag="1")] pub available_layouts: ::prost::alloc::vec::Vec<LayoutInfo>, #[prost(message, repeated, tag="2")] pub layouts_with_errors: ::prost::alloc::vec::Vec<LayoutWithError>, } #[allow(clippy:...