repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/search.rs
zellij-server/src/panes/search.rs
use super::Selection; use crate::panes::terminal_character::TerminalCharacter; use crate::panes::{Grid, Row}; use std::borrow::Cow; use std::fmt::Debug; use zellij_utils::input::actions::SearchDirection; use zellij_utils::position::Position; // If char is neither alphanumeric nor an underscore do we consider it a word...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/plugin_pane.rs
zellij-server/src/panes/plugin_pane.rs
use std::collections::{BTreeSet, HashMap}; use std::time::Instant; use crate::output::{CharacterChunk, SixelImageChunk}; use crate::panes::{ grid::Grid, sixel::SixelImageStore, terminal_pane::{BRACKETED_PASTE_BEGIN, BRACKETED_PASTE_END}, LinkHandler, PaneId, }; use crate::plugins::PluginInstruction; us...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/alacritty_functions.rs
zellij-server/src/panes/alacritty_functions.rs
use crate::panes::AnsiCode; use std::convert::TryFrom; pub fn parse_sgr_color(params: &mut dyn Iterator<Item = u16>) -> Option<AnsiCode> { match params.next() { Some(2) => Some(AnsiCode::RgbCode(( u8::try_from(params.next()?).ok()?, u8::try_from(params.next()?).ok()?, u8...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/grid.rs
zellij-server/src/panes/grid.rs
use super::sixel::{PixelRect, SixelGrid, SixelImageStore}; use std::borrow::Cow; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use zellij_utils::data::Style; use zellij_utils::errors::prelude::*; use std::{ cmp::Ordering, collections::{BTreeSet, VecDeque}, fmt::{self, Debug, Forma...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/sixel.rs
zellij-server/src/panes/sixel.rs
use crate::output::SixelImageChunk; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use sixel_image::{SixelDeserializer, SixelImage}; use sixel_tokenizer::SixelEvent; use std::fmt::Debug; use zellij_utils::pane_size::SizeInPixels; #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)] p...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/terminal_character.rs
zellij-server/src/panes/terminal_character.rs
use std::convert::From; use std::fmt::{self, Debug, Display, Formatter}; use std::ops::{Index, IndexMut}; use std::rc::Rc; use unicode_width::UnicodeWidthChar; use unicode_width::UnicodeWidthStr; use vte::ParamsIter; use zellij_utils::data::StyleDeclaration; use zellij_utils::data::{PaletteColor, Style}; use zellij_ut...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/mod.rs
zellij-server/src/panes/mod.rs
pub mod alacritty_functions; pub mod grid; pub mod hyperlink_tracker; pub mod link_handler; pub mod selection; pub mod sixel; pub mod terminal_character; mod active_panes; pub mod floating_panes; mod plugin_pane; mod search; pub mod terminal_pane; mod tiled_panes; pub use active_panes::*; pub use alacritty_functions:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/selection.rs
zellij-server/src/panes/selection.rs
use std::{collections::HashSet, ops::Range}; use zellij_utils::position::Position; // The selection is empty when start == end // it includes the character at start, and everything before end. #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct Selection { pub start: Position, pub end: Position, activ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/hyperlink_tracker.rs
zellij-server/src/panes/hyperlink_tracker.rs
use crate::panes::grid::Row; use crate::panes::link_handler::LinkHandler; use crate::panes::terminal_character::{Cursor, LinkAnchor}; use std::collections::VecDeque; #[derive(Debug, Clone)] struct DetectedLink { url: String, start_position: HyperlinkPosition, end_position: HyperlinkPosition, } #[derive(De...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/tiled_panes/pane_resizer.rs
zellij-server/src/panes/tiled_panes/pane_resizer.rs
use super::stacked_panes::StackedPanes; use crate::{panes::PaneId, tab::Pane}; use cassowary::{ strength::{REQUIRED, STRONG}, Expression, Solver, Variable, WeightedRelation::EQ, }; use std::cell::RefCell; use std::collections::{HashMap, HashSet}; use std::rc::Rc; use zellij_utils::{ errors::prelude::*, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs
zellij-server/src/panes/tiled_panes/tiled_pane_grid.rs
use super::is_inside_viewport; use super::pane_resizer::PaneResizer; use super::stacked_panes::StackedPanes; use crate::tab::{MIN_TERMINAL_HEIGHT, MIN_TERMINAL_WIDTH}; use crate::{panes::PaneId, tab::Pane}; use std::cmp::{Ordering, Reverse}; use std::collections::{HashMap, HashSet}; use zellij_utils::data::{Direction, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/tiled_panes/mod.rs
zellij-server/src/panes/tiled_panes/mod.rs
mod pane_resizer; mod stacked_panes; mod tiled_pane_grid; use crate::resize_pty; use tiled_pane_grid::{split, TiledPaneGrid, RESIZE_PERCENT}; use crate::{ os_input_output::ServerOsApi, output::Output, panes::{ActivePanes, PaneId}, plugins::PluginInstruction, tab::{pane_info_for_pane, Pane, MIN_TER...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/tiled_panes/stacked_panes.rs
zellij-server/src/panes/tiled_panes/stacked_panes.rs
use crate::{ panes::PaneId, tab::{Pane, MIN_TERMINAL_HEIGHT}, }; use std::cell::RefCell; use std::collections::{HashMap, HashSet}; use std::rc::Rc; use zellij_utils::{ errors::prelude::*, pane_size::{Dimension, PaneGeom}, }; pub struct StackedPanes<'a> { panes: Rc<RefCell<HashMap<PaneId, &'a mut Bo...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/tiled_panes/unit/stacked_panes_tests.rs
zellij-server/src/panes/tiled_panes/unit/stacked_panes_tests.rs
use crate::{panes::tiled_panes::StackedPanes, panes::PaneId, tab::Pane}; use insta::assert_snapshot; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use zellij_utils::errors::prelude::*; use zellij_utils::input::layout::Run; use zellij_utils::pane_size::Offset; use zellij_utils::pane_size::{Dime...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/unit/terminal_pane_tests.rs
zellij-server/src/panes/unit/terminal_pane_tests.rs
use super::super::TerminalPane; use crate::panes::sixel::SixelImageStore; use crate::panes::LinkHandler; use crate::tab::Pane; use ::insta::assert_snapshot; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use zellij_utils::{ data::{Palette, Style}, pane_size::{Offset, PaneGeom, SizeInPix...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/unit/search_in_pane_tests.rs
zellij-server/src/panes/unit/search_in_pane_tests.rs
use super::super::TerminalPane; use crate::panes::sixel::SixelImageStore; use crate::panes::LinkHandler; use crate::tab::Pane; use insta::assert_snapshot; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use zellij_utils::data::{Palette, Style}; use zellij_utils::pane_size::PaneGeom; fn read_fix...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/unit/selection_tests.rs
zellij-server/src/panes/unit/selection_tests.rs
use super::*; #[test] fn selection_start() { let mut selection = Selection::default(); selection.start(Position::new(10, 10)); assert!(selection.active); assert_eq!(selection.start, Position::new(10, 10)); assert_eq!(selection.end, Position::new(10, 10)); } #[test] fn selection_to() { let mut...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/unit/grid_tests.rs
zellij-server/src/panes/unit/grid_tests.rs
use super::super::Grid; use crate::panes::grid::SixelImageStore; use crate::panes::link_handler::LinkHandler; use ::insta::assert_snapshot; use std::cell::RefCell; use std::collections::HashMap; use std::rc::Rc; use vte; use zellij_utils::{ data::{Palette, Style}, pane_size::SizeInPixels, position::Position...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/floating_panes/floating_pane_grid.rs
zellij-server/src/panes/floating_panes/floating_pane_grid.rs
use crate::tab::{MIN_TERMINAL_HEIGHT, MIN_TERMINAL_WIDTH}; use crate::{panes::PaneId, tab::Pane}; use std::cmp::Ordering; use std::collections::HashMap; use zellij_utils::data::{Direction, ResizeStrategy}; use zellij_utils::errors::prelude::*; use zellij_utils::pane_size::{Dimension, PaneGeom, Size, Viewport}; use std...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/panes/floating_panes/mod.rs
zellij-server/src/panes/floating_panes/mod.rs
pub mod floating_pane_grid; use zellij_utils::{ data::{Direction, FloatingPaneCoordinates, PaneInfo, ResizeStrategy}, position::Position, }; use crate::resize_pty; use crate::tab::{pane_info_for_pane, Pane}; use floating_pane_grid::FloatingPaneGrid; use crate::{ os_input_output::ServerOsApi, output::{...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/unit/os_input_output_tests.rs
zellij-server/src/unit/os_input_output_tests.rs
use super::*; use nix::{pty::openpty, unistd::close}; struct TestTerminal { openpty: OpenptyResult, } impl TestTerminal { pub fn new() -> TestTerminal { let openpty = openpty(None, None).expect("Could not create openpty"); TestTerminal { openpty } } #[allow(dead_code)] pub fn mas...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/unit/screen_tests.rs
zellij-server/src/unit/screen_tests.rs
use super::{screen_thread_main, CopyOptions, Screen, ScreenInstruction}; use crate::panes::PaneId; use crate::{ channels::SenderWithContext, os_input_output::{AsyncReader, Pid, ServerOsApi}, route::route_action, thread_bus::Bus, ClientId, ServerInstruction, SessionMetaData, ThreadSenders, }; use ins...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/swap_layouts.rs
zellij-server/src/tab/swap_layouts.rs
use crate::panes::{FloatingPanes, TiledPanes}; use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use zellij_utils::{ input::layout::{ FloatingPaneLayout, LayoutConstraint, SwapFloatingLayout, SwapTiledLayout, TiledPaneLayout, }, pane_size::{PaneGeom, Size}, }; #[derive(Clone,...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/clipboard.rs
zellij-server/src/tab/clipboard.rs
use anyhow::Result; use zellij_utils::{data::CopyDestination, input::options::Clipboard}; use crate::ClientId; use super::{copy_command::CopyCommand, Output}; pub(crate) enum ClipboardProvider { Command(CopyCommand), Osc52(Clipboard), } impl ClipboardProvider { pub(crate) fn set_content( &self, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/copy_command.rs
zellij-server/src/tab/copy_command.rs
use std::io::prelude::*; use std::process::{Command, Stdio}; use anyhow::{Context, Result}; pub struct CopyCommand { command: String, args: Vec<String>, } impl CopyCommand { pub fn new(command: String) -> Self { let mut command_with_args = command.split(' ').map(String::from); Self { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/mod.rs
zellij-server/src/tab/mod.rs
//! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size, //! as well as how they should be resized mod clipboard; mod copy_command; mod layout_applier; mod swap_layouts; use copy_command::CopyCommand; use std::env::temp_dir; use std::net::IpAddr; use std::path::PathBuf; use uuid::Uuid; use zellij_...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/layout_applier.rs
zellij-server/src/tab/layout_applier.rs
use zellij_utils::errors::prelude::*; use crate::resize_pty; use crate::tab::{get_next_terminal_position, HoldForCommand, Pane}; use crate::{ os_input_output::ServerOsApi, panes::sixel::SixelImageStore, panes::{FloatingPanes, TiledPanes}, panes::{LinkHandler, PaneId, PluginPane, TerminalPane}, plu...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/unit/tab_integration_tests.rs
zellij-server/src/tab/unit/tab_integration_tests.rs
use super::{Output, Tab}; use crate::panes::sixel::SixelImageStore; use crate::screen::CopyOptions; use crate::Arc; use crate::{ os_input_output::{AsyncReader, Pid, ServerOsApi}, pane_groups::PaneGroups, panes::PaneId, plugins::PluginInstruction, thread_bus::ThreadSenders, ClientId, }; use std:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/unit/tab_tests.rs
zellij-server/src/tab/unit/tab_tests.rs
use super::Tab; use crate::pane_groups::PaneGroups; use crate::panes::sixel::SixelImageStore; use crate::screen::CopyOptions; use crate::{ os_input_output::{AsyncReader, Pid, ServerOsApi}, panes::PaneId, thread_bus::ThreadSenders, ClientId, }; use std::net::{IpAddr, Ipv4Addr}; use std::path::PathBuf; us...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/tab/unit/layout_applier_tests.rs
zellij-server/src/tab/unit/layout_applier_tests.rs
use crate::panes::sixel::SixelImageStore; use crate::panes::{FloatingPanes, TiledPanes}; use crate::panes::{LinkHandler, PaneId}; use crate::plugins::PluginInstruction; use crate::pty::PtyInstruction; use crate::tab::layout_applier::LayoutApplier; use crate::{ os_input_output::{AsyncReader, Pid, ServerOsApi}, t...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/loading_indication.rs
zellij-server/src/ui/loading_indication.rs
use std::fmt::{Display, Error, Formatter}; use std::time::Instant; use zellij_utils::{ data::{PaletteColor, Styling}, errors::prelude::*, }; #[derive(Debug, Clone, Default)] pub struct LoadingIndication { pub ended: bool, error: Option<String>, animation_offset: usize, plugin_name: String, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/pane_boundaries_frame.rs
zellij-server/src/ui/pane_boundaries_frame.rs
use crate::output::CharacterChunk; use crate::panes::{AnsiCode, RcCharacterStyles, TerminalCharacter, EMPTY_TERMINAL_CHARACTER}; use crate::ui::boundaries::boundary_type; use crate::ClientId; use zellij_utils::data::{client_id_to_colors, PaletteColor, Style}; use zellij_utils::errors::prelude::*; use zellij_utils::pane...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/mod.rs
zellij-server/src/ui/mod.rs
pub mod boundaries; pub mod components; pub mod loading_indication; pub mod pane_boundaries_frame; pub mod pane_contents_and_ui;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/pane_contents_and_ui.rs
zellij-server/src/ui/pane_contents_and_ui.rs
use crate::output::Output; use crate::panes::PaneId; use crate::tab::Pane; use crate::ui::boundaries::Boundaries; use crate::ui::pane_boundaries_frame::FrameParams; use crate::ClientId; use std::collections::{HashMap, HashSet}; use zellij_utils::data::{client_id_to_colors, InputMode, PaletteColor, Style}; use zellij_ut...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/boundaries.rs
zellij-server/src/ui/boundaries.rs
use zellij_utils::pane_size::{Offset, Viewport}; use crate::output::CharacterChunk; use crate::panes::terminal_character::{TerminalCharacter, EMPTY_TERMINAL_CHARACTER, RESET_STYLES}; use crate::tab::Pane; use ansi_term::Colour::{Fixed, RGB}; use std::collections::HashMap; use zellij_utils::errors::prelude::*; use zell...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/component_coordinates.rs
zellij-server/src/ui/components/component_coordinates.rs
use std::fmt::{self, Display, Formatter}; #[derive(Debug, Clone)] pub struct Coordinates { pub x: usize, pub y: usize, pub width: Option<usize>, pub height: Option<usize>, } impl Coordinates { pub fn stringify_with_y_offset(&self, y_offset: usize) -> String { format!("\u{1b}[{};{}H", self....
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/table.rs
zellij-server/src/ui/components/table.rs
use super::{is_too_high, is_too_wide, stringify_text, Coordinates, Text}; use crate::panes::{ terminal_character::{AnsiCode, RESET_STYLES}, CharacterStyles, }; use std::collections::BTreeMap; use zellij_utils::{data::Style, shared::ansi_len}; pub fn table( columns: usize, _rows: usize, contents: Ve...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/text.rs
zellij-server/src/ui/components/text.rs
use super::{is_too_wide, parse_indices, parse_opaque, parse_selected, Coordinates}; use crate::panes::{terminal_character::CharacterStyles, AnsiCode}; use zellij_utils::{ data::{PaletteColor, Style, StyleDeclaration}, shared::ansi_len, }; use unicode_width::UnicodeWidthChar; use zellij_utils::errors::prelude::...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/mod.rs
zellij-server/src/ui/components/mod.rs
mod component_coordinates; mod nested_list; mod ribbon; mod table; mod text; use crate::panes::grid::Grid; use lazy_static::lazy_static; use regex::Regex; use vte; use zellij_utils::data::Style; use zellij_utils::errors::prelude::*; use component_coordinates::{is_too_high, is_too_wide, Coordinates}; use nested_list::...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/nested_list.rs
zellij-server/src/ui/components/nested_list.rs
use super::{ is_too_high, parse_indices, parse_opaque, parse_selected, parse_text, stringify_text, Coordinates, Text, }; use crate::panes::terminal_character::{AnsiCode, CharacterStyles, RESET_STYLES}; use zellij_utils::data::Style; use unicode_width::UnicodeWidthChar; #[derive(Debug, Clone)] pub struct Neste...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/ui/components/ribbon.rs
zellij-server/src/ui/components/ribbon.rs
use super::{text::stringify_text, Coordinates, Text}; use crate::panes::terminal_character::{AnsiCode, CharacterStyles, RESET_STYLES}; use zellij_utils::data::{PaletteColor, Style}; static ARROW_SEPARATOR: &str = ""; pub fn ribbon( content: Text, style: &Style, arrow_fonts: bool, component_coordinate...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/output/mod.rs
zellij-server/src/output/mod.rs
use std::collections::VecDeque; use crate::panes::Row; use crate::panes::Selection; use crate::{ panes::sixel::SixelImageStore, panes::terminal_character::{AnsiCode, CharacterStyles}, panes::{LinkHandler, PaneId, TerminalCharacter, DEFAULT_STYLES, EMPTY_TERMINAL_CHARACTER}, ClientId, }; use std::cell:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/output/unit/mod.rs
zellij-server/src/output/unit/mod.rs
mod output_tests;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/output/unit/output_tests.rs
zellij-server/src/output/unit/output_tests.rs
use super::super::{CharacterChunk, FloatingPanesStack, Output, OutputBuffer, SixelImageChunk}; use crate::panes::sixel::SixelImageStore; use crate::panes::{LinkHandler, Row, TerminalCharacter}; use crate::ClientId; use std::cell::RefCell; use std::collections::{HashSet, VecDeque}; use std::rc::Rc; use zellij_utils::pan...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/share/src/main_screen.rs
default-plugins/share/src/main_screen.rs
use super::CoordinatesInLine; use crate::ui_components::{ hovering_on_line, render_text_with_underline, CurrentSessionSection, Usage, WebServerStatusSection, }; use zellij_tile::prelude::*; use std::collections::HashMap; use url::Url; pub struct MainScreenState { pub currently_hovering_over_link: bool, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/share/src/ui_components.rs
default-plugins/share/src/ui_components.rs
use std::net::IpAddr; use zellij_tile::prelude::*; use crate::CoordinatesInLine; use std::collections::HashMap; pub const USAGE_TITLE: &str = "How it works:"; pub const FIRST_TIME_USAGE_TITLE: &str = "Before logging in for the first time:"; pub const FIRST_TIME_BULLETIN_1: &str = "- Press <t> to generate a login toke...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/share/src/main.rs
default-plugins/share/src/main.rs
mod main_screen; mod token_management_screen; mod token_screen; mod ui_components; use std::net::IpAddr; use zellij_tile::prelude::*; use std::collections::{BTreeMap, HashMap}; use main_screen::MainScreen; use token_management_screen::TokenManagementScreen; use token_screen::TokenScreen; static WEB_SERVER_QUERY_DUR...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/share/src/token_management_screen.rs
default-plugins/share/src/token_management_screen.rs
use zellij_tile::prelude::*; #[derive(Debug)] struct ScreenContent { title: (String, Text), items: Vec<Vec<Text>>, help: (String, Text), status_message: Option<(String, Text)>, max_width: usize, new_token_line: Option<(String, Text)>, } #[derive(Debug)] struct Layout { base_x: usize, b...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/share/src/token_screen.rs
default-plugins/share/src/token_screen.rs
use zellij_tile::prelude::*; // Constants for text content const TOKEN_LABEL_LONG: &str = "New log-in token: "; const TOKEN_LABEL_SHORT: &str = "Token: "; const EXPLANATION_1_LONG: &str = "Use this token to log-in from the browser."; const EXPLANATION_1_SHORT: &str = "Use to log-in from the browser."; const EXPLANATIO...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/resurrectable_sessions.rs
default-plugins/session-manager/src/resurrectable_sessions.rs
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use humantime::format_duration; use std::time::Duration; use zellij_tile::shim::*; #[derive(Debug, Default)] pub struct ResurrectableSessions { pub all_resurrectable_sessions: Vec<(String, Duration)>, pub selected_index: Option<usize>, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/main.rs
default-plugins/session-manager/src/main.rs
mod new_session_info; mod resurrectable_sessions; mod session_list; mod ui; use std::collections::BTreeMap; use uuid::Uuid; use zellij_tile::prelude::*; use new_session_info::NewSessionInfo; use ui::{ components::{ render_controls_line, render_error, render_new_session_block, render_prompt, render_...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/new_session_info.rs
default-plugins/session-manager/src/new_session_info.rs
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use std::path::PathBuf; use zellij_tile::prelude::*; #[derive(Default)] pub struct NewSessionInfo { name: String, layout_list: LayoutList, entering_new_session_info: EnteringState, pub new_session_folder: Option<PathBuf>, } #[der...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/session_list.rs
default-plugins/session-manager/src/session_list.rs
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use crate::ui::{ components::{Colors, LineToRender, ListItem}, SessionUiInfo, }; #[derive(Debug, Default)] pub struct SessionList { pub session_ui_infos: Vec<SessionUiInfo>, pub forbidden_sessions: Vec<SessionUiInfo>, pub sel...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/ui/welcome_screen.rs
default-plugins/session-manager/src/ui/welcome_screen.rs
static BANNER: &str = " ██╗ ██╗██╗ ███████╗██████╗ ██████╗ ███╗ ███╗ ███████╗███████╗██╗ ██╗ ██╗ ██╗██╗ ██║ ██║██║ ██╔════╝██╔══██╗██╔═══██╗████╗ ████║ ╚══███╔╝██╔════╝██║ ██║ ██║ ██║██║ ███████║██║ █████╗ ██████╔╝██║ ██║██╔████╔██║ ███╔╝ █████╗ ██║ ██║ ██║ ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/ui/mod.rs
default-plugins/session-manager/src/ui/mod.rs
pub mod components; pub mod welcome_screen; use zellij_tile::prelude::*; use crate::session_list::{SelectedIndex, SessionList}; use components::{ build_pane_ui_line, build_session_ui_line, build_tab_ui_line, minimize_lines, Colors, LineToRender, }; macro_rules! render_assets { ($assets:expr, $line_count_t...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/session-manager/src/ui/components.rs
default-plugins/session-manager/src/ui/components.rs
use std::path::PathBuf; use unicode_width::UnicodeWidthChar; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; use crate::ui::{PaneUiInfo, SessionUiInfo, TabUiInfo}; use crate::{ActiveScreen, NewSessionInfo}; #[derive(Debug)] pub struct ListItem { pub name: String, pub session_name: Option<Vec<...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/tab-bar/src/main.rs
default-plugins/tab-bar/src/main.rs
mod line; mod tab; use std::cmp::{max, min}; use std::collections::BTreeMap; use std::convert::TryInto; use tab::get_tab_to_focus; use zellij_tile::prelude::*; use crate::line::tab_line; use crate::tab::tab_style; #[derive(Debug, Default)] pub struct LinePart { part: String, len: usize, tab_index: Optio...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/tab-bar/src/line.rs
default-plugins/tab-bar/src/line.rs
use ansi_term::ANSIStrings; use unicode_width::UnicodeWidthStr; use crate::{LinePart, ARROW_SEPARATOR}; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; use zellij_tile_utils::style; fn get_current_title_len(current_title: &[LinePart]) -> usize { current_title.iter().map(|p| p.len).sum() } ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/tab-bar/src/tab.rs
default-plugins/tab-bar/src/tab.rs
use crate::{line::tab_separator, LinePart}; use ansi_term::{ANSIString, ANSIStrings}; use unicode_width::UnicodeWidthStr; use zellij_tile::prelude::*; use zellij_tile_utils::style; fn cursors<'a>( focused_clients: &'a [ClientId], multiplayer_colors: MultiplayerColors, ) -> (Vec<ANSIString<'a>>, usize) { //...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/one_line_ui.rs
default-plugins/status-bar/src/one_line_ui.rs
use ansi_term::{ANSIString, ANSIStrings}; use ansi_term::{ Color::{Fixed, RGB}, Style, }; use std::collections::HashMap; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; use crate::first_line::{to_char, KeyAction, KeyMode, KeyShortcut}; use crate::se...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/second_line.rs
default-plugins/status-bar/src/second_line.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; use crate::{ action_key, action_key_group, style_key_with_modifier, tip::{data::TIPS, TipFn}, Line...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/main.rs
default-plugins/status-bar/src/main.rs
mod first_line; mod one_line_ui; mod second_line; mod tip; use ansi_term::{ ANSIString, Colour::{Fixed, RGB}, Style, }; use std::collections::BTreeMap; use std::fmt::{Display, Error, Formatter}; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; use zellij_tile_utils::{palette_match, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/first_line.rs
default-plugins/status-bar/src/first_line.rs
use ansi_term::{unstyled_len, ANSIStrings}; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; use crate::color_elements; use crate::{ action_key, action_key_group, get_common_modifiers, style_key_with_modifier, TO_NORMAL, }; use crate::{ColoredElements, LinePart}; #[derive(Debug)] pub struct...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/consts.rs
default-plugins/status-bar/src/tip/consts.rs
pub const DEFAULT_CACHE_FILE_PATH: &str = "/tmp/status-bar-tips.cache"; pub const MAX_CACHE_HITS: usize = 20; // this should be 10, but right now there's a bug where the plugin load function is called twice, and sot he cache is hit twice
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/utils.rs
default-plugins/status-bar/src/tip/utils.rs
use std::path::PathBuf; use rand::prelude::{IteratorRandom, SliceRandom}; use zellij_tile::prelude::get_zellij_version; use super::cache::LocalCache; use super::consts::{DEFAULT_CACHE_FILE_PATH, MAX_CACHE_HITS}; use super::data::TIPS; macro_rules! get_name_and_caching { ($cache:expr) => {{ let name = ge...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/mod.rs
default-plugins/status-bar/src/tip/mod.rs
pub mod cache; pub mod consts; pub mod data; pub mod utils; use crate::LinePart; use zellij_tile::prelude::*; pub type TipFn = fn(&ModeInfo) -> LinePart; pub struct TipBody { pub short: TipFn, pub medium: TipFn, pub full: TipFn, }
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/cache.rs
default-plugins/status-bar/src/tip/cache.rs
use std::collections::{HashMap, HashSet}; use std::fs::{File, OpenOptions}; use std::io::{self, Read, Write}; use std::path::PathBuf; use serde::{Deserialize, Serialize}; use thiserror::Error; use zellij_tile::prelude::get_zellij_version; #[derive(Debug, Serialize, Deserialize)] pub struct Metadata { zellij_vers...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/use_mouse.rs
default-plugins/status-bar/src/tip/data/use_mouse.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use crate::LinePart; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings =...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/move_focus_hjkl_tab_switch.rs
default-plugins/status-bar/src/tip/data/move_focus_hjkl_tab_switch.rs
use ansi_term::{unstyled_len, ANSIString, ANSIStrings, Style}; use crate::{action_key_group, style_key_with_modifier, LinePart}; use zellij_tile::prelude::{actions::Action, *}; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings = ANSIStrin...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/move_tabs.rs
default-plugins/status-bar/src/tip/data/move_tabs.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; use crate::LinePart; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/compact_layout.rs
default-plugins/status-bar/src/tip/data/compact_layout.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use crate::LinePart; use crate::{action_key, style_key_with_modifier}; use zellij_tile::prelude::{actions::Action, *}; use zellij_tile_utils::palette_match; macro_rules! strings { ($ANSIStrings:expr) => {{ l...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/sync_tab.rs
default-plugins/status-bar/src/tip/data/sync_tab.rs
use ansi_term::{unstyled_len, ANSIString, ANSIStrings, Style}; use crate::{action_key, style_key_with_modifier, LinePart}; use zellij_tile::prelude::{actions::Action, *}; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings = ANSIStrings(str...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/mod.rs
default-plugins/status-bar/src/tip/data/mod.rs
use std::collections::HashMap; use lazy_static::lazy_static; use crate::tip::TipBody; mod compact_layout; mod edit_scrollbuffer; mod floating_panes_mouse; mod move_focus_hjkl_tab_switch; mod move_tabs; mod quicknav; mod send_mouse_click_to_terminal; mod sync_tab; mod use_mouse; mod zellij_setup_check; lazy_static! ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/quicknav.rs
default-plugins/status-bar/src/tip/data/quicknav.rs
use ansi_term::{unstyled_len, ANSIString, ANSIStrings, Style}; use crate::{action_key, action_key_group, style_key_with_modifier, LinePart}; use zellij_tile::prelude::{actions::Action, *}; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/send_mouse_click_to_terminal.rs
default-plugins/status-bar/src/tip/data/send_mouse_click_to_terminal.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use crate::LinePart; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings =...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/zellij_setup_check.rs
default-plugins/status-bar/src/tip/data/zellij_setup_check.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use crate::LinePart; use zellij_tile::prelude::*; use zellij_tile_utils::palette_match; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings =...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/edit_scrollbuffer.rs
default-plugins/status-bar/src/tip/data/edit_scrollbuffer.rs
use ansi_term::{ unstyled_len, ANSIString, ANSIStrings, Color::{Fixed, RGB}, Style, }; use crate::{action_key, style_key_with_modifier, LinePart}; use zellij_tile::prelude::{actions::Action, *}; use zellij_tile_utils::palette_match; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/status-bar/src/tip/data/floating_panes_mouse.rs
default-plugins/status-bar/src/tip/data/floating_panes_mouse.rs
use ansi_term::{unstyled_len, ANSIString, ANSIStrings, Style}; use crate::{action_key, style_key_with_modifier, LinePart}; use zellij_tile::prelude::{actions::Action, *}; macro_rules! strings { ($ANSIStrings:expr) => {{ let strings: &[ANSIString] = $ANSIStrings; let ansi_strings = ANSIStrings(str...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/about/src/tips.rs
default-plugins/about/src/tips.rs
use zellij_tile::prelude::*; use std::cell::RefCell; use std::rc::Rc; use crate::active_component::{ActiveComponent, ClickAction}; use crate::pages::{BulletinList, ComponentLine, Page, TextOrCustomRender}; pub const MAX_TIP_INDEX: usize = 11; impl Page { pub fn new_tip_screen( link_executable: Rc<RefCel...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/about/src/active_component.rs
default-plugins/about/src/active_component.rs
use std::cell::RefCell; use std::rc::Rc; use zellij_tile::prelude::*; use crate::pages::{Page, TextOrCustomRender}; #[derive(Debug)] pub struct ActiveComponent { text_no_hover: TextOrCustomRender, text_hover: Option<TextOrCustomRender>, left_click_action: Option<ClickAction>, last_rendered_coordinates...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/about/src/pages.rs
default-plugins/about/src/pages.rs
use zellij_tile::prelude::*; use std::cell::RefCell; use std::rc::Rc; use crate::active_component::{ActiveComponent, ClickAction}; #[derive(Debug)] pub struct Page { title: Option<Text>, components_to_render: Vec<RenderedComponent>, has_hover: bool, hovering_over_link: bool, menu_item_is_selected...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/about/src/main.rs
default-plugins/about/src/main.rs
mod active_component; mod pages; mod tips; use zellij_tile::prelude::*; use pages::Page; use rand::prelude::*; use rand::rng; use std::cell::RefCell; use std::collections::BTreeMap; use std::rc::Rc; use tips::MAX_TIP_INDEX; use crate::active_component::ActiveComponent; use crate::pages::{ComponentLine, TextOrCustomRe...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/configuration/src/rebind_leaders_screen.rs
default-plugins/configuration/src/rebind_leaders_screen.rs
use std::collections::BTreeSet; use zellij_tile::prelude::*; use crate::ui_components::{back_to_presets, info_line}; use crate::{POSSIBLE_MODIFIERS, WIDTH_BREAKPOINTS}; #[derive(Debug)] pub struct RebindLeadersScreen { selected_primary_key_index: usize, selected_secondary_key_index: usize, main_leader_se...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/configuration/src/presets.rs
default-plugins/configuration/src/presets.rs
pub fn unlock_first_keybinds(primary_modifier: String, secondary_modifier: String) -> String { format!( r#" default_mode "locked" keybinds clear-defaults=true {{ normal {{ }} locked {{ bind "{primary_modifier} g" {{ SwitchToMode "Normal"; }} }} resize {{ bind "r" {{ Switc...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/configuration/src/presets_screen.rs
default-plugins/configuration/src/presets_screen.rs
use zellij_tile::prelude::*; use crate::ui_components::info_line; use crate::rebind_leaders_screen::RebindLeadersScreen; use std::collections::BTreeSet; use crate::presets::{default_keybinds, unlock_first_keybinds}; #[derive(Debug)] pub struct PresetsScreen { selected_index: Option<usize>, latest_mode_info:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/configuration/src/ui_components.rs
default-plugins/configuration/src/ui_components.rs
use crate::{Screen, WIDTH_BREAKPOINTS}; use zellij_tile::prelude::*; pub fn top_tab_menu(cols: usize, current_screen: &Screen, colors: &Styling) { let background = colors.text_unselected.background; let bg_color = match background { PaletteColor::Rgb((r, g, b)) => format!("\u{1b}[48;2;{};{};{}m\u{1b}[0...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/configuration/src/main.rs
default-plugins/configuration/src/main.rs
mod presets; mod presets_screen; mod rebind_leaders_screen; mod ui_components; use zellij_tile::prelude::*; use presets_screen::PresetsScreen; use rebind_leaders_screen::RebindLeadersScreen; use ui_components::top_tab_menu; use std::collections::BTreeMap; pub static UI_SIZE: usize = 15; pub static WIDTH_BREAKPOINTS...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/multiple-select/src/main.rs
default-plugins/multiple-select/src/main.rs
use std::collections::BTreeMap; use std::time::Instant; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; #[derive(Debug, Default)] pub struct App { own_plugin_id: Option<u32>, own_client_id: Option<ClientId>, own_tab_index: Option<usize>, total_tabs_in_session: Option<usize>, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/fixture-plugin-for-tests/src/main.rs
default-plugins/fixture-plugin-for-tests/src/main.rs
use serde::{Deserialize, Serialize}; use std::collections::BTreeMap; #[allow(unused_imports)] use std::io::prelude::*; use zellij_tile::prelude::actions::Action; use zellij_tile::prelude::*; // This is a fixture plugin used only for tests in Zellij // it is not (and should not!) be included in the mainline executable ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/plugin-manager/src/main.rs
default-plugins/plugin-manager/src/main.rs
use fuzzy_matcher::skim::SkimMatcherV2; use fuzzy_matcher::FuzzyMatcher; use uuid::Uuid; use zellij_tile::prelude::*; use std::collections::{BTreeMap, HashMap}; pub struct SearchResult { plugin_id: u32, plugin_info: PluginInfo, indices: Vec<usize>, score: i64, } impl SearchResult { pub fn new(plu...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/path_formatting.rs
default-plugins/sequence/src/path_formatting.rs
use std::path::PathBuf; /// Expand a path string to an absolute PathBuf /// Handles ~, ./, .., relative and absolute paths pub fn expand_path(path_str: &str, current_cwd: Option<&PathBuf>) -> Option<PathBuf> { let expanded = if path_str.starts_with("~/") || path_str == "~" { let home_dir = std::env::var("H...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/lib.rs
default-plugins/sequence/src/lib.rs
pub mod path_formatting; pub mod state; pub mod ui; pub use state::State;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/main.rs
default-plugins/sequence/src/main.rs
mod path_formatting; mod state; mod ui; use crate::state::CommandStatus; use crate::ui::components; use crate::ui::fuzzy_complete; use crate::ui::layout_calculations::calculate_viewport; use crate::ui::text_input::InputAction; use crate::ui::truncation::truncate_middle; use state::State; use zellij_tile::prelude::acti...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/command_parser.rs
default-plugins/sequence/src/state/command_parser.rs
use super::ChainType; #[derive(Debug, Clone, Copy, PartialEq)] enum ParseState { Normal, InSingleQuote, InDoubleQuote, Escaped(EscapeContext), } #[derive(Debug, Clone, Copy, PartialEq)] enum EscapeContext { Normal, DoubleQuote, } pub fn split_by_chain_operators(text: &str) -> Vec<(String, Opt...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/chain_type.rs
default-plugins/sequence/src/state/chain_type.rs
use serde::{Deserialize, Serialize}; use zellij_tile::prelude::*; #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum ChainType { And, Or, Then, None, } impl Default for ChainType { fn default() -> Self { ChainType::None } } impl ChainType { pub fn ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/mod.rs
default-plugins/sequence/src/state/mod.rs
mod chain_type; mod command_entry; mod command_parser; mod command_status; mod editing; mod execution; mod layout; pub mod positioning; mod selection; pub use chain_type::ChainType; pub use command_entry::CommandEntry; pub use command_parser::{ detect_cd_command, detect_chain_operator_at_end, get_remaining_after_f...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/layout.rs
default-plugins/sequence/src/state/layout.rs
use crate::state::positioning; use std::path::PathBuf; use zellij_tile::prelude::*; pub struct Layout { pub needs_reposition: bool, pub cached_cursor_position: Option<(usize, usize)>, pub spinner_frame: usize, pub spinner_timer_scheduled: bool, } impl Layout { pub fn new() -> Self { Self {...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/selection.rs
default-plugins/sequence/src/state/selection.rs
use crate::state::{CommandEntry, Editing}; use std::path::PathBuf; use zellij_tile::prelude::*; pub struct Selection { pub current_selected_command_index: Option<usize>, pub scroll_offset: usize, } impl Selection { pub fn new() -> Self { Self { current_selected_command_index: Some(0), ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/command_entry.rs
default-plugins/sequence/src/state/command_entry.rs
use super::{ChainType, CommandStatus}; use std::path::PathBuf; use std::time::Instant; use zellij_tile::prelude::PaneId; #[derive(Debug, Clone)] pub struct CommandEntry { text: String, cwd: Option<PathBuf>, pub(super) chain_type: ChainType, pub(super) status: CommandStatus, pub(super) start_time: s...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/default-plugins/sequence/src/state/editing.rs
default-plugins/sequence/src/state/editing.rs
use crate::path_formatting; use crate::state::CommandEntry; use crate::ui::text_input::TextInput; use std::path::PathBuf; pub struct Editing { pub editing_input: Option<TextInput>, } impl Editing { pub fn new() -> Self { Self { editing_input: Some(TextInput::new("".to_owned())), } ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false