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-utils/src/input/layout.rs
zellij-utils/src/input/layout.rs
//! The layout system. // Layouts have been moved from [`zellij-server`] to // [`zellij-utils`] in order to provide more helpful // error messages to the user until a more general // logging system is in place. // In case there is a logging system in place evaluate, // if [`zellij-utils`], or [`zellij-server`] is...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/plugins.rs
zellij-utils/src/input/plugins.rs
//! Plugins configuration metadata use std::collections::BTreeMap; use std::fs; use std::path::{Path, PathBuf}; use thiserror::Error; use serde::{Deserialize, Serialize}; use url::Url; use super::layout::{PluginUserConfiguration, RunPlugin, RunPluginLocation}; #[cfg(not(target_family = "wasm"))] use crate::consts::AS...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/actions.rs
zellij-utils/src/input/actions.rs
//! Definition of the actions that can be bound to keys. pub use super::command::{OpenFilePayload, RunCommandAction}; use super::layout::{ FloatingPaneLayout, Layout, PluginAlias, RunPlugin, RunPluginLocation, RunPluginOrAlias, SwapFloatingLayout, SwapTiledLayout, TiledPaneLayout, }; use crate::cli::CliAction;...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/permission.rs
zellij-utils/src/input/permission.rs
use std::{ collections::HashMap, fs::{self, File}, io::Write, path::PathBuf, }; use crate::{consts::ZELLIJ_PLUGIN_PERMISSIONS_CACHE, data::PermissionType}; pub type GrantedPermission = HashMap<String, Vec<PermissionType>>; #[derive(Default, Debug)] pub struct PermissionCache { path: PathBuf, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/keybinds.rs
zellij-utils/src/input/keybinds.rs
use std::collections::{BTreeMap, HashMap}; use super::actions::Action; use crate::data::{BareKey, InputMode, KeyWithModifier, KeybindsVec}; use serde::{Deserialize, Serialize}; use std::fmt; /// Used in the config struct #[derive(Clone, PartialEq, Deserialize, Serialize, Default)] pub struct Keybinds(pub HashMap<Inp...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/unit/layout_test.rs
zellij-utils/src/input/unit/layout_test.rs
use super::super::layout::*; use insta::assert_snapshot; #[test] fn empty_layout() { let kdl_layout = "layout"; let layout = Layout::from_kdl(kdl_layout, Some("layout_file_name".into()), None, None).unwrap(); let expected_layout = Layout { template: Some((TiledPaneLayout::default(), vec![])), ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/unit/theme_test.rs
zellij-utils/src/input/unit/theme_test.rs
use super::super::theme::*; use insta::assert_snapshot; use std::path::{Path, PathBuf}; fn theme_test_dir(theme: String) -> PathBuf { let root = Path::new(env!("CARGO_MANIFEST_DIR")); let theme_dir = root.join("src/input/unit/fixtures/themes"); theme_dir.join(theme) } #[test] fn dracula_theme_from_file() ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/input/unit/keybinds_test.rs
zellij-utils/src/input/unit/keybinds_test.rs
use super::super::actions::*; use super::super::keybinds::*; use crate::data::{BareKey, Direction, KeyWithModifier}; use crate::input::config::Config; use insta::assert_snapshot; use strum::IntoEnumIterator; #[test] fn can_define_keybindings_in_configfile() { let config_contents = r#" keybinds { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/kdl/kdl_layout_parser.rs
zellij-utils/src/kdl/kdl_layout_parser.rs
use crate::input::{ command::RunCommand, config::ConfigError, layout::{ FloatingPaneLayout, Layout, LayoutConstraint, PercentOrFixed, PluginUserConfiguration, Run, RunPluginOrAlias, SplitDirection, SplitSize, SwapFloatingLayout, SwapTiledLayout, TiledPaneLayout, }, }; use kdl::*...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/kdl/mod.rs
zellij-utils/src/kdl/mod.rs
mod kdl_layout_parser; use crate::data::{ BareKey, Direction, FloatingPaneCoordinates, InputMode, KeyWithModifier, LayoutInfo, MultiplayerColors, Palette, PaletteColor, PaneId, PaneInfo, PaneManifest, PermissionType, Resize, SessionInfo, StyleDeclaration, Styling, TabInfo, WebSharing, DEFAULT_STYLES, }; use...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost_web_server/web_server_contract.rs
zellij-utils/assets/prost_web_server/web_server_contract.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InstructionForWebServer { #[prost(oneof="instruction_for_web_server::Instruction", tags="1")] pub instruction: ::core::option::Option<instruction_for_web_server::Instruction>, } /// Nested message and enum ty...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost_web_server/generated_web_server_api.rs
zellij-utils/assets/prost_web_server/generated_web_server_api.rs
pub mod web_server_contract { include!("web_server_contract.rs"); }
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.pipe_message.rs
zellij-utils/assets/prost/api.pipe_message.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PipeMessage { #[prost(enumeration="PipeSource", tag="1")] pub source: i32, #[prost(string, optional, tag="2")] pub cli_source_id: ::core::option::Option<::prost::alloc::string::String>, #[prost(ui...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/generated_plugin_api.rs
zellij-utils/assets/prost/generated_plugin_api.rs
pub mod api { pub mod action { include!("api.action.rs"); } pub mod command { include!("api.command.rs"); } pub mod event { include!("api.event.rs"); } pub mod file { include!("api.file.rs"); } pub mod input_mode { include!("api.input_mode.rs")...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.plugin_ids.rs
zellij-utils/assets/prost/api.plugin_ids.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PluginIds { #[prost(int32, tag="1")] pub plugin_id: i32, #[prost(int32, tag="2")] pub zellij_pid: i32, #[prost(string, tag="3")] pub initial_cwd: ::prost::alloc::string::String, #[prost(ui...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.resize.rs
zellij-utils/assets/prost/api.resize.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Resize { #[prost(enumeration="ResizeAction", tag="1")] pub resize_action: i32, #[prost(enumeration="ResizeDirection", optional, tag="2")] pub direction: ::core::option::Option<i32>, } #[allow(clippy::...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.style.rs
zellij-utils/assets/prost/api.style.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Style { #[deprecated] #[prost(message, optional, tag="1")] pub palette: ::core::option::Option<Palette>, #[prost(bool, tag="2")] pub rounded_corners: bool, #[prost(bool, tag="3")] pub hide...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.message.rs
zellij-utils/assets/prost/api.message.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Message { #[prost(string, tag="1")] pub name: ::prost::alloc::string::String, #[prost(string, tag="2")] pub payload: ::prost::alloc::string::String, #[prost(string, optional, tag="3")] pub wor...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.command.rs
zellij-utils/assets/prost/api.command.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Command { #[prost(string, tag="1")] pub path: ::prost::alloc::string::String, #[prost(string, repeated, tag="2")] pub args: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, #[prost(string...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.key.rs
zellij-utils/assets/prost/api.key.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Key { #[prost(enumeration="key::KeyModifier", optional, tag="1")] pub modifier: ::core::option::Option<i32>, #[prost(enumeration="key::KeyModifier", repeated, tag="4")] pub additional_modifiers: ::pro...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.input_mode.rs
zellij-utils/assets/prost/api.input_mode.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct InputModeMessage { #[prost(enumeration="InputMode", tag="1")] pub input_mode: i32, } #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum InputMode {...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.action.rs
zellij-utils/assets/prost/api.action.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PercentOrFixed { #[prost(oneof="percent_or_fixed::SizeType", tags="1, 2")] pub size_type: ::core::option::Option<percent_or_fixed::SizeType>, } /// Nested message and enum types in `PercentOrFixed`. pub mod p...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.event.rs
zellij-utils/assets/prost/api.event.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct EventNameList { #[prost(enumeration="EventType", repeated, tag="1")] pub event_types: ::prost::alloc::vec::Vec<i32>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Messag...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.plugin_command.rs
zellij-utils/assets/prost/api.plugin_command.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PluginCommand { #[prost(enumeration="CommandName", tag="1")] pub name: i32, #[prost(oneof="plugin_command::Payload", tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 2...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.plugin_permission.rs
zellij-utils/assets/prost/api.plugin_permission.rs
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)] #[repr(i32)] pub enum PermissionType { ReadApplicationState = 0, ChangeApplicationState = 1, OpenFiles = 2, RunCommands = 3, OpenTerminalsOrPlugins = 4, WriteToStdin = 5, WebAccess = 6, ReadCliPipes...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost/api.file.rs
zellij-utils/assets/prost/api.file.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct File { #[prost(string, tag="1")] pub path: ::prost::alloc::string::String, #[prost(int32, optional, tag="2")] pub line_number: ::core::option::Option<i32>, #[prost(string, optional, tag="3")] ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost_ipc/client_server_contract.rs
zellij-utils/assets/prost_ipc/client_server_contract.rs
#[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Size { #[prost(uint32, tag="1")] pub cols: u32, #[prost(uint32, tag="2")] pub rows: u32, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct Pixel...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/assets/prost_ipc/generated_client_server_api.rs
zellij-utils/assets/prost_ipc/generated_client_server_api.rs
pub mod client_server_contract { include!("client_server_contract.rs"); }
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/os_input_output.rs
zellij-client/src/os_input_output.rs
use anyhow::{Context, Result}; use async_trait::async_trait; use interprocess; use libc; use nix; use signal_hook; use zellij_utils::pane_size::Size; use interprocess::local_socket::LocalSocketStream; use mio::{unix::SourceFd, Events, Interest, Poll, Token}; use nix::pty::Winsize; use nix::sys::termios; use signal_hoo...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/lib.rs
zellij-client/src/lib.rs
pub mod os_input_output; pub mod cli_client; mod command_is_executing; mod input_handler; mod keyboard_parser; pub mod old_config_converter; #[cfg(feature = "web_server_capability")] pub mod remote_attach; mod stdin_ansi_parser; mod stdin_handler; #[cfg(feature = "web_server_capability")] pub mod web_client; use log:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/input_handler.rs
zellij-client/src/input_handler.rs
//! Main input logic. use crate::{ os_input_output::ClientOsApi, stdin_ansi_parser::AnsiStdinInstruction, ClientId, ClientInstruction, CommandIsExecuting, InputInstruction, }; use termwiz::input::{InputEvent, Modifiers, MouseButtons, MouseEvent as TermwizMouseEvent}; use zellij_utils::{ channels::{Receiver,...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/command_is_executing.rs
zellij-client/src/command_is_executing.rs
#![allow(clippy::mutex_atomic)] use std::sync::{Arc, Condvar, Mutex}; #[derive(Clone)] pub(crate) struct CommandIsExecuting { input_thread: Arc<(Mutex<bool>, Condvar)>, } impl CommandIsExecuting { pub fn new() -> Self { CommandIsExecuting { input_thread: Arc::new((Mutex::new(false), Condva...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/stdin_ansi_parser.rs
zellij-client/src/stdin_ansi_parser.rs
use std::time::{Duration, Instant}; const STARTUP_PARSE_DEADLINE_MS: u64 = 500; use lazy_static::lazy_static; use regex::Regex; use zellij_utils::{ consts::ZELLIJ_STDIN_CACHE_FILE, ipc::PixelDimensions, pane_size::SizeInPixels, }; use anyhow::Result; use serde::{Deserialize, Serialize}; use std::fs::{File, OpenOp...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/keyboard_parser.rs
zellij-client/src/keyboard_parser.rs
// for more info, please see: https://sw.kovidgoyal.net/kitty/keyboard-protocol use zellij_utils::data::KeyWithModifier; #[derive(Debug)] enum KittyKeysParsingState { Ground, ReceivedEscapeCharacter, ParsingNumber, ParsingModifiers, DoneParsingWithU, DoneParsingWithTilde, } #[derive(Debug)] pu...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/cli_client.rs
zellij-client/src/cli_client.rs
//! The `[cli_client]` is used to attach to a running server session //! and dispatch actions, that are specified through the command line. use std::collections::BTreeMap; use std::io::BufRead; use std::process; use std::{fs, path::PathBuf}; use crate::os_input_output::ClientOsApi; use uuid::Uuid; use zellij_utils::{ ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/stdin_handler.rs
zellij-client/src/stdin_handler.rs
use crate::keyboard_parser::KittyKeyboardParser; use crate::os_input_output::ClientOsApi; use crate::stdin_ansi_parser::StdinAnsiParser; use crate::InputInstruction; use std::sync::{Arc, Mutex}; use termwiz::input::{InputEvent, InputParser, MouseButtons}; use zellij_utils::channels::SenderWithContext; fn send_done_par...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/control_message.rs
zellij-client/src/web_client/control_message.rs
use serde::{Deserialize, Serialize}; use zellij_utils::{input::config::Config, pane_size::Size}; #[derive(Serialize, Deserialize, Debug, Clone)] pub struct WebClientToWebServerControlMessage { pub web_client_id: String, pub payload: WebClientToWebServerControlMessagePayload, } #[derive(Serialize, Deserialize...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/websocket_handlers.rs
zellij-client/src/web_client/websocket_handlers.rs
use crate::web_client::control_message::{ SetConfigPayload, WebClientToWebServerControlMessage, WebClientToWebServerControlMessagePayload, WebServerToWebClientControlMessage, }; use crate::web_client::message_handlers::{ parse_stdin, render_to_client, send_control_messages_to_client, }; use crate::web_clien...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/connection_manager.rs
zellij-client/src/web_client/connection_manager.rs
use crate::os_input_output::ClientOsApi; use crate::web_client::control_message::WebServerToWebClientControlMessage; use crate::web_client::types::{ClientChannels, ClientConnectionBus, ConnectionTable}; use axum::extract::ws::{CloseFrame, Message}; use tokio::sync::mpsc::UnboundedSender; use tokio_util::sync::Cancellat...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/message_handlers.rs
zellij-client/src/web_client/message_handlers.rs
use crate::input_handler::from_termwiz; use crate::keyboard_parser::KittyKeyboardParser; use crate::os_input_output::ClientOsApi; use crate::web_client::types::BRACKETED_PASTE_END; use crate::web_client::types::BRACKETED_PASTE_START; use zellij_utils::{ input::{actions::Action, cast_termwiz_key, mouse::MouseEvent}...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/server_listener.rs
zellij-client/src/web_client/server_listener.rs
use crate::os_input_output::ClientOsApi; use crate::web_client::control_message::{SetConfigPayload, WebServerToWebClientControlMessage}; use crate::web_client::session_management::{ build_initial_connection, create_first_message, create_ipc_pipe, }; use crate::web_client::types::{ClientConnectionBus, ConnectionTabl...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/types.rs
zellij-client/src/web_client/types.rs
use axum::extract::ws::Message; use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::sync::{Arc, Mutex}; use tokio::sync::mpsc::UnboundedSender; use tokio_util::sync::CancellationToken; use crate::os_input_output::ClientOsApi; use crate::web_client::session_management::spawn_new_session; use st...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/utils.rs
zellij-client/src/web_client/utils.rs
use axum::http::Request; use axum_extra::extract::cookie::Cookie; use std::collections::HashMap; use std::net::IpAddr; pub fn get_mime_type(ext: Option<&str>) -> &str { match ext { None => "text/plain", Some(ext) => match ext { "html" => "text/html", "css" => "text/css", ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/mod.rs
zellij-client/src/web_client/mod.rs
pub mod control_message; mod authentication; mod connection_manager; mod http_handlers; mod ipc_listener; mod message_handlers; mod server_listener; mod session_management; mod types; mod utils; mod websocket_handlers; use std::{ net::{IpAddr, Ipv4Addr}, path::PathBuf, sync::{Arc, Mutex}, thread, }; ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/ipc_listener.rs
zellij-client/src/web_client/ipc_listener.rs
use axum_server::Handle; use tokio::io::AsyncReadExt; use tokio::net::{UnixListener, UnixStream}; use zellij_utils::consts::WEBSERVER_SOCKET_PATH; use zellij_utils::prost::Message; use zellij_utils::web_server_commands::InstructionForWebServer; use zellij_utils::web_server_contract::web_server_contract::InstructionForW...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/authentication.rs
zellij-client/src/web_client/authentication.rs
use crate::web_client::utils::parse_cookies; use axum::body::Body; use axum::http::header::SET_COOKIE; use axum::{extract::Request, http::StatusCode, middleware::Next, response::Response}; use axum_extra::extract::cookie::{Cookie, SameSite}; use zellij_utils::web_authentication_tokens::{is_session_token_read_only, vali...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/http_handlers.rs
zellij-client/src/web_client/http_handlers.rs
use crate::web_client::types::{AppState, CreateClientIdResponse, LoginRequest, LoginResponse}; use crate::web_client::utils::{get_mime_type, parse_cookies}; use axum::{ extract::{Path as AxumPath, Request, State}, http::{header, StatusCode}, response::{Html, IntoResponse}, Json, }; use axum_extra::extra...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/session_management.rs
zellij-client/src/web_client/session_management.rs
use crate::os_input_output::ClientOsApi; use crate::spawn_server; use std::{fs, path::PathBuf}; use zellij_utils::{ consts::session_layout_cache_file_name, data::{ConnectToSession, LayoutInfo, WebSharing}, envs, input::{cli_assets::CliAssets, config::Config, options::Options}, ipc::{ClientAttribute...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/web_client/unit/web_client_tests.rs
zellij-client/src/web_client/unit/web_client_tests.rs
use super::serve_web_client; use super::*; use futures_util::{SinkExt, StreamExt}; use isahc::prelude::*; use serde_json; use std::collections::{HashMap, HashSet, VecDeque}; use std::sync::{Arc, Mutex}; use tokio::time::timeout; use tokio_tungstenite::tungstenite::http::Request; use tokio_tungstenite::{connect_async, t...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/old_layout.rs
zellij-client/src/old_config_converter/old_layout.rs
// This is a converter from the old yaml layout to the new KDL layout. // // It is supposed to be mostly self containing - please refrain from adding to it, importing // from it or changing it use super::old_config::{config_yaml_to_config_kdl, OldConfigFromYaml, OldRunCommand}; use serde::{Deserialize, Serialize}; use ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/convert_old_yaml_files.rs
zellij-client/src/old_config_converter/convert_old_yaml_files.rs
use super::{config_yaml_to_config_kdl, layout_yaml_to_layout_kdl}; use std::path::PathBuf; use zellij_utils::{ cli::CliArgs, home::{find_default_config_dir, get_layout_dir, get_theme_dir}, }; const OLD_CONFIG_NAME: &str = "config.yaml"; pub fn convert_old_yaml_files(opts: &CliArgs) { let config_dir = opts...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/old_config.rs
zellij-client/src/old_config_converter/old_config.rs
// This is a converter from the old yaml config to the new KDL config. // // It is supposed to be mostly self containing - please refrain from adding to it, importing // from it or changing it use std::fmt; use std::path::PathBuf; use serde::de::{Error, Visitor}; use serde::{Deserialize, Deserializer, Serialize}; use ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/mod.rs
zellij-client/src/old_config_converter/mod.rs
mod convert_old_yaml_files; mod old_config; mod old_layout; pub use convert_old_yaml_files::convert_old_yaml_files; pub use old_config::config_yaml_to_config_kdl; pub use old_layout::layout_yaml_to_layout_kdl;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
zellij-client/src/old_config_converter/unit/convert_layout_tests.rs
use crate::old_config_converter::layout_yaml_to_layout_kdl; use insta::assert_snapshot; use std::path::PathBuf; use std::{fs::File, io::prelude::*}; #[test] fn properly_convert_default_layout() -> Result<(), String> { let fixture = PathBuf::from(format!( "{}/src/old_config_converter/unit/fixtures/old_defau...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/old_config_converter/unit/convert_config_tests.rs
zellij-client/src/old_config_converter/unit/convert_config_tests.rs
use crate::old_config_converter::config_yaml_to_config_kdl; use insta::assert_snapshot; use std::path::PathBuf; use std::{fs::File, io::prelude::*}; #[test] fn properly_convert_default_config() -> Result<(), String> { let fixture = PathBuf::from(format!( "{}/src/old_config_converter/unit/fixtures/old_defau...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/unit/terminal_loop_tests.rs
zellij-client/src/unit/terminal_loop_tests.rs
use crate::os_input_output::{AsyncSignals, AsyncStdin, ClientOsApi, SignalEvent}; use crate::remote_attach::WebSocketConnections; use crate::run_remote_client_terminal_loop; use crate::web_client::control_message::{ WebClientToWebServerControlMessage, WebClientToWebServerControlMessagePayload, WebServerToWebCli...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/unit/mod.rs
zellij-client/src/unit/mod.rs
#[cfg(test)] #[cfg(feature = "web_server_capability")] mod terminal_loop_tests;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/config.rs
zellij-client/src/remote_attach/config.rs
use std::time::Duration; // API endpoints pub const LOGIN_ENDPOINT: &str = "/command/login"; pub const SESSION_ENDPOINT: &str = "/session"; pub const WS_TERMINAL_ENDPOINT: &str = "/ws/terminal"; pub const WS_CONTROL_ENDPOINT: &str = "/ws/control"; // Connection settings pub const CONNECTION_TIMEOUT_SECS: u64 = 30; p...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/http_client.rs
zellij-client/src/remote_attach/http_client.rs
use super::config::connection_timeout; use isahc::prelude::*; use isahc::{config::RedirectPolicy, AsyncBody, HttpClient, Request, Response}; use std::collections::HashMap; use std::sync::{Arc, Mutex}; pub fn create_http_client() -> Result<HttpClient, isahc::Error> { HttpClient::builder() .redirect_policy(R...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/websockets.rs
zellij-client/src/remote_attach/websockets.rs
use super::config::{WS_CONTROL_ENDPOINT, WS_TERMINAL_ENDPOINT}; use super::http_client::HttpClientWithCookies; use tokio::net::TcpStream; use tokio_tungstenite::{connect_async, MaybeTlsStream, WebSocketStream}; pub struct WebSocketConnections { pub terminal_ws: WebSocketStream<MaybeTlsStream<TcpStream>>, pub c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/auth.rs
zellij-client/src/remote_attach/auth.rs
use super::config::{LOGIN_ENDPOINT, SESSION_ENDPOINT}; use super::http_client::HttpClientWithCookies; use crate::RemoteClientError; use isahc::{AsyncReadResponseExt, Request}; use serde::{Deserialize, Serialize}; #[derive(Serialize)] struct LoginRequest { auth_token: String, remember_me: bool, } #[derive(Dese...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/mod.rs
zellij-client/src/remote_attach/mod.rs
mod auth; mod config; mod http_client; mod websockets; #[cfg(test)] mod unit; pub use websockets::WebSocketConnections; use crate::os_input_output::ClientOsApi; use crate::RemoteClientError; use tokio::runtime::Runtime; use zellij_utils::remote_session_tokens; // In tests, only attempt once (no retries) to avoid in...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/unit/mod.rs
zellij-client/src/remote_attach/unit/mod.rs
mod remote_attach_tests;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-client/src/remote_attach/unit/remote_attach_tests.rs
zellij-client/src/remote_attach/unit/remote_attach_tests.rs
use super::super::*; use crate::RemoteClientError; use serial_test::serial; use std::collections::HashMap; use std::sync::{Arc, Mutex}; use std::time::Duration; use zellij_utils::remote_session_tokens; // Mock server infrastructure #[cfg(feature = "web_server_capability")] mod mock_server { use super::*; use a...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/test.rs
xtask/src/test.rs
use crate::{build, flags, metadata, WorkspaceMember}; use anyhow::{anyhow, Context}; use std::path::Path; use xshell::{cmd, Shell}; pub fn test(sh: &Shell, flags: flags::Test) -> anyhow::Result<()> { let err_context = "failed to run task 'test'"; let _pdo = sh.push_dir(crate::project_root()); let cargo = ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/ci.rs
xtask/src/ci.rs
//! Tasks related to zellij CI use crate::{ build, flags::{self, CiCmd, Cross, E2e}, metadata, }; use anyhow::Context; use std::{ ffi::OsString, path::{Path, PathBuf}, }; use xshell::{cmd, Shell}; pub fn main(sh: &Shell, flags: flags::Ci) -> anyhow::Result<()> { let err_context = "failed to run...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/flags.rs
xtask/src/flags.rs
//! CLI flags for `cargo xtask` use std::ffi::OsString; use std::path::PathBuf; xflags::xflags! { src "./src/flags.rs" /// Custom build commands for zellij cmd xtask { /// Deprecation warning. Compatibility to transition from `cargo make`. cmd deprecated { repeated _args: OsStr...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/build.rs
xtask/src/build.rs
//! Subcommands for building. //! //! Currently has the following functions: //! //! - [`build`]: Builds general cargo projects (i.e. zellij components) with `cargo build` //! - [`manpage`]: Builds the manpage with `mandown` use crate::{flags, metadata, WorkspaceMember}; use anyhow::Context; use std::path::{Path, PathB...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/format.rs
xtask/src/format.rs
//! Handle running `cargo fmt` on the sources. use crate::{flags, WorkspaceMember}; use anyhow::Context; use std::path::{Path, PathBuf}; use xshell::{cmd, Shell}; pub fn format(sh: &Shell, flags: flags::Format) -> anyhow::Result<()> { let _pd = sh.push_dir(crate::project_root()); let cargo = check_rustfmt() ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/dist.rs
xtask/src/dist.rs
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/pipelines.rs
xtask/src/pipelines.rs
//! Composite pipelines for the build system. //! //! Defines multiple "pipelines" that run specific individual steps in sequence. use crate::{build, clippy, format, metadata, test}; use crate::{flags, WorkspaceMember}; use anyhow::Context; use xshell::{cmd, Shell}; /// Perform a default build. /// /// Runs the follow...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/main.rs
xtask/src/main.rs
//! See <https://github.com/matklad/cargo-xtask/>. //! //! This binary defines various auxiliary build commands, which are not expressible with just //! `cargo`. Notably, it provides tests via `cargo test -p xtask` for code generation and `cargo //! xtask install` for installation of rust-analyzer server and client. //...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/metadata.rs
xtask/src/metadata.rs
//! Helper functions for querying cargo metadata use anyhow::Context; use serde_json::Value; use xshell::{cmd, Shell}; /// Get cargo metadata for the workspace pub fn get_cargo_metadata(sh: &Shell) -> anyhow::Result<Value> { let cargo = crate::cargo().context("Failed to find cargo executable")?; let metadata_j...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/xtask/src/clippy.rs
xtask/src/clippy.rs
//! Handle running `cargo clippy` on the sources. use crate::{build, flags, WorkspaceMember}; use anyhow::Context; use std::path::{Path, PathBuf}; use xshell::{cmd, Shell}; pub fn clippy(sh: &Shell, _flags: flags::Clippy) -> anyhow::Result<()> { let _pd = sh.push_dir(crate::project_root()); build::build( ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/os_input_output.rs
zellij-server/src/os_input_output.rs
use crate::{panes::PaneId, ClientId}; use async_std::{fs::File as AsyncFile, io::ReadExt, os::unix::io::FromRawFd}; use interprocess::local_socket::LocalSocketStream; use nix::{ pty::{openpty, OpenptyResult, Winsize}, sys::{ signal::{kill, Signal}, termios, }, unistd, }; use async_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/background_jobs.rs
zellij-server/src/background_jobs.rs
use async_std::task; use zellij_utils::consts::{ session_info_cache_file_name, session_info_folder_for_session, session_layout_cache_file_name, VERSION, ZELLIJ_SESSION_INFO_CACHE_DIR, ZELLIJ_SOCK_DIR, }; use zellij_utils::data::{Event, HttpVerb, SessionInfo, WebServerStatus}; use zellij_utils::errors::{prelude:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/lib.rs
zellij-server/src/lib.rs
pub mod os_input_output; pub mod output; pub mod panes; pub mod tab; mod background_jobs; mod global_async_runtime; mod logging_pipe; mod pane_groups; mod plugins; mod pty; mod pty_writer; mod route; mod screen; mod session_layout_metadata; mod terminal_bytes; mod thread_bus; mod ui; pub use daemonize; use backgroun...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/global_async_runtime.rs
zellij-server/src/global_async_runtime.rs
use once_cell::sync::OnceCell; use tokio::runtime::Runtime; // Global tokio runtime for async I/O operations // Shared between plugin downloads, timers, and action completion tracking static TOKIO_RUNTIME: OnceCell<Runtime> = OnceCell::new(); pub fn get_tokio_runtime() -> &'static Runtime { TOKIO_RUNTIME.get_or_i...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/logging_pipe.rs
zellij-server/src/logging_pipe.rs
use std::{collections::VecDeque, io::Write}; use crate::plugins::PluginId; use log::{debug, error}; use zellij_utils::errors::prelude::*; use serde::{Deserialize, Serialize}; // 16kB log buffer const ZELLIJ_MAX_PIPE_BUFFER_SIZE: usize = 16_384; #[derive(Debug, Serialize, Deserialize)] pub struct LoggingPipe { bu...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/pane_groups.rs
zellij-server/src/pane_groups.rs
use std::collections::{HashMap, HashSet}; use zellij_utils::data::FloatingPaneCoordinates; use zellij_utils::input::layout::{RunPluginOrAlias, SplitSize}; use zellij_utils::pane_size::Size; use crate::{panes::PaneId, pty::PtyInstruction, thread_bus::ThreadSenders, ClientId}; pub struct PaneGroups { panes_in_grou...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/pty.rs
zellij-server/src/pty.rs
use crate::background_jobs::BackgroundJob; use crate::route::NotificationEnd; use crate::terminal_bytes::TerminalBytes; use crate::{ panes::PaneId, plugins::{PluginId, PluginInstruction}, screen::ScreenInstruction, session_layout_metadata::SessionLayoutMetadata, thread_bus::{Bus, ThreadSenders}, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/session_layout_metadata.rs
zellij-server/src/session_layout_metadata.rs
use crate::panes::PaneId; use crate::ClientId; use std::collections::{BTreeMap, HashMap}; use std::path::PathBuf; use zellij_utils::common_path::common_path_all; use zellij_utils::pane_size::PaneGeom; use zellij_utils::{ input::command::RunCommand, input::layout::{Layout, Run, RunPlugin, RunPluginOrAlias}, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/terminal_bytes.rs
zellij-server/src/terminal_bytes.rs
use crate::{ os_input_output::{AsyncReader, ServerOsApi}, screen::ScreenInstruction, thread_bus::ThreadSenders, }; use async_std::task; use std::{ os::unix::io::RawFd, time::{Duration, Instant}, }; use zellij_utils::{ errors::{get_current_ctx, prelude::*, ContextType}, logging::debug_to_file...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/route.rs
zellij-server/src/route.rs
use std::collections::{BTreeMap, HashSet, VecDeque}; use std::sync::{Arc, RwLock}; use tokio::sync::oneshot; use crate::global_async_runtime::get_tokio_runtime; use crate::thread_bus::ThreadSenders; use crate::{ os_input_output::ServerOsApi, panes::PaneId, plugins::PluginInstruction, pty::{ClientTabInd...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/thread_bus.rs
zellij-server/src/thread_bus.rs
//! Definitions and helpers for sending and receiving messages between threads. use crate::{ background_jobs::BackgroundJob, os_input_output::ServerOsApi, plugins::PluginInstruction, pty::PtyInstruction, pty_writer::PtyWriteInstruction, screen::ScreenInstruction, ServerInstruction, }; use zellij_utils::err...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/pty_writer.rs
zellij-server/src/pty_writer.rs
use zellij_utils::errors::{prelude::*, ContextType, PtyWriteContext}; use crate::thread_bus::Bus; // we separate these instruction to a different thread because some programs get deadlocked if // you write into their STDIN while reading from their STDOUT (I'm looking at you, vim) // while the same has not been observ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/screen.rs
zellij-server/src/screen.rs
//! Things related to [`Screen`]s. use std::cell::RefCell; use std::collections::{BTreeMap, HashMap, HashSet}; use std::net::{IpAddr, Ipv4Addr}; use std::path::PathBuf; use std::rc::Rc; use std::str; use std::time::{Duration, Instant}; use crate::route::NotificationEnd; use log::{debug, warn}; use zellij_utils::data...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/pinned_executor.rs
zellij-server/src/plugins/pinned_executor.rs
use crate::plugins::plugin_map::PluginMap; use crate::plugins::wasm_bridge::PluginCache; use crate::ClientId; use crate::ThreadSenders; use std::collections::{HashMap, HashSet}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::mpsc::{channel, Sender}; use std::sync::{Arc, Mutex}; use std::thread; use wasm...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/plugin_worker.rs
zellij-server/src/plugins/plugin_worker.rs
use crate::plugins::plugin_map::PluginEnv; use crate::plugins::zellij_exports::wasi_write_object; use wasmi::{Instance, Store}; use async_channel::{unbounded, Receiver, Sender}; use async_std::task; use prost::Message; use zellij_utils::errors::prelude::*; use zellij_utils::plugin_api::message::ProtobufMessage; pub s...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/plugin_loader.rs
zellij-server/src/plugins/plugin_loader.rs
use crate::plugins::plugin_map::{ PluginEnv, PluginMap, RunningPlugin, VecDequeInputStream, WriteOutputStream, }; use crate::plugins::plugin_worker::{plugin_worker, RunningWorker}; use crate::plugins::wasm_bridge::{LoadingContext, PluginCache}; use crate::plugins::zellij_exports::{wasi_write_object, zellij_exports}...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/zellij_exports.rs
zellij-server/src/plugins/zellij_exports.rs
use super::PluginInstruction; use crate::background_jobs::BackgroundJob; use crate::global_async_runtime::get_tokio_runtime; use crate::plugins::plugin_map::PluginEnv; use crate::plugins::wasm_bridge::handle_plugin_crash; use crate::pty::{ClientTabIndexOrPaneId, PtyInstruction}; use crate::route::route_action; use crat...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/pipes.rs
zellij-server/src/plugins/pipes.rs
use super::{PluginId, PluginInstruction}; use crate::plugins::plugin_map::RunningPlugin; use crate::plugins::wasm_bridge::PluginRenderAsset; use crate::plugins::zellij_exports::{wasi_read_string, wasi_write_object}; use std::collections::{HashMap, HashSet}; use zellij_utils::data::{PipeMessage, PipeSource}; use zellij_...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/mod.rs
zellij-server/src/plugins/mod.rs
mod pinned_executor; mod pipes; mod plugin_loader; mod plugin_map; mod plugin_worker; mod wasm_bridge; mod watch_filesystem; mod zellij_exports; use log::info; pub use pinned_executor::PinnedExecutor; use std::{ collections::{BTreeMap, HashMap, HashSet}, fs, path::PathBuf, time::Duration, }; use wasmi:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/watch_filesystem.rs
zellij-server/src/plugins/watch_filesystem.rs
use super::PluginInstruction; use std::path::PathBuf; use crate::thread_bus::ThreadSenders; use std::path::Path; use std::time::Duration; use notify_debouncer_full::{ new_debouncer, notify::{EventKind, RecommendedWatcher, RecursiveMode, Watcher}, DebounceEventResult, Debouncer, FileIdMap, }; 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/plugins/wasm_bridge.rs
zellij-server/src/plugins/wasm_bridge.rs
use super::{PinnedExecutor, PluginId, PluginInstruction}; use crate::global_async_runtime::get_tokio_runtime; use crate::plugins::pipes::{ apply_pipe_message_to_plugin, pipes_to_block_or_unblock, PendingPipes, PipeStateChange, }; use crate::plugins::plugin_loader::PluginLoader; use crate::plugins::plugin_map::{Atom...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/plugin_map.rs
zellij-server/src/plugins/plugin_map.rs
use crate::plugins::plugin_worker::MessageToWorker; use crate::plugins::PluginId; use std::io::Write; use std::{ collections::{BTreeMap, HashMap, HashSet, VecDeque}, path::PathBuf, sync::{Arc, Mutex}, }; use wasmi::{Instance, Store, StoreLimits}; use wasmi_wasi::WasiCtx; use crate::{thread_bus::ThreadSende...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-server/src/plugins/unit/plugin_tests.rs
zellij-server/src/plugins/unit/plugin_tests.rs
use super::plugin_thread_main; use crate::screen::ScreenInstruction; use crate::{channels::SenderWithContext, thread_bus::Bus, ServerInstruction}; use insta::assert_snapshot; use lazy_static::lazy_static; use std::collections::BTreeMap; use std::path::PathBuf; use tempfile::tempdir; use wasmi::Engine; use zellij_utils:...
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/active_panes.rs
zellij-server/src/panes/active_panes.rs
use crate::tab::Pane; use crate::{os_input_output::ServerOsApi, panes::PaneId, ClientId}; use std::collections::{BTreeMap, HashMap}; #[derive(Clone)] pub struct ActivePanes { active_panes: HashMap<ClientId, PaneId>, os_api: Box<dyn ServerOsApi>, } impl std::fmt::Debug for ActivePanes { fn fmt(&self, f: &...
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_pane.rs
zellij-server/src/panes/terminal_pane.rs
use crate::output::{CharacterChunk, SixelImageChunk}; use crate::panes::sixel::SixelImageStore; use crate::panes::LinkHandler; use crate::panes::{ grid::Grid, terminal_character::{render_first_run_banner, TerminalCharacter, EMPTY_TERMINAL_CHARACTER}, }; use crate::pty::VteBytes; use crate::route::NotificationEn...
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/link_handler.rs
zellij-server/src/panes/link_handler.rs
use std::collections::HashMap; use super::LinkAnchor; const TERMINATOR: &str = "\u{1b}\\"; #[derive(Debug, Clone)] pub struct LinkHandler { links: HashMap<u16, Link>, link_index: u16, } #[derive(Debug, Clone)] pub struct Link { pub id: Option<String>, pub uri: String, } impl LinkHandler { pub fn...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false