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
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/routing.rs
crates/openapi/src/routes/routing.rs
#[cfg(feature = "v1")] /// Routing - Create /// /// Create a routing config #[utoipa::path( post, path = "/routing", request_body = RoutingConfigRequest, responses( (status = 200, description = "Routing config created", body = RoutingDictionaryRecord), (status = 400, description = "Reque...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/webhook_events.rs
crates/openapi/src/routes/webhook_events.rs
/// Events - List /// /// List all Events associated with a Merchant Account or Profile. #[utoipa::path( post, path = "/events/{merchant_id}", params( ( "merchant_id" = String, Path, description = "The unique identifier for the Merchant Account." ), ),...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/customers.rs
crates/openapi/src/routes/customers.rs
/// Customers - Create /// /// Creates a customer object and stores the customer details to be reused for future payments. /// Incase the customer already exists in the system, this API will respond with the customer details. #[utoipa::path( post, path = "/customers", request_body ( content = Custo...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/poll.rs
crates/openapi/src/routes/poll.rs
/// Poll - Retrieve Poll Status #[utoipa::path( get, path = "/poll/status/{poll_id}", params( ("poll_id" = String, Path, description = "The identifier for poll") ), responses( (status = 200, description = "The poll status was retrieved successfully", body = PollResponse), (st...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/disputes.rs
crates/openapi/src/routes/disputes.rs
/// Disputes - Retrieve Dispute /// Retrieves a dispute #[utoipa::path( get, path = "/disputes/{dispute_id}", params( ("dispute_id" = String, Path, description = "The identifier for dispute"), ("force_sync" = Option<bool>, Query, description = "Decider to enable or disable the connector call...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/revenue_recovery.rs
crates/openapi/src/routes/revenue_recovery.rs
#[cfg(feature = "v2")] /// Revenue Recovery - Retrieve /// /// Retrieve the Revenue Recovery Payment Info #[utoipa::path( get, path = "/v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}", params( ("recovery_recovery_id" = String, Path, description = "The payment intent id"), ),...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/profile_acquirer.rs
crates/openapi/src/routes/profile_acquirer.rs
#[cfg(feature = "v1")] /// Profile Acquirer - Create /// /// Create a new Profile Acquirer for accessing our APIs from your servers. #[utoipa::path( post, path = "/profile_acquirers", request_body = ProfileAcquirerCreate, responses( (status = 200, description = "Profile Acquirer created", body =...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/payment_link.rs
crates/openapi/src/routes/payment_link.rs
/// Payments Link - Retrieve /// /// To retrieve the properties of a Payment Link. This may be used to get the status of a previously initiated payment or next action for an ongoing payment #[utoipa::path( get, path = "/payment_link/{payment_link_id}", params( ("payment_link_id" = String, Path, desc...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/three_ds_decision_rule.rs
crates/openapi/src/routes/three_ds_decision_rule.rs
/// 3DS Decision - Execute #[utoipa::path( post, path = "/three_ds_decision/execute", request_body = ThreeDsDecisionRuleExecuteRequest, responses( (status = 200, description = "3DS Decision Rule Executed Successfully", body = ThreeDsDecisionRuleExecuteResponse), (status = 400, descriptio...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/platform.rs
crates/openapi/src/routes/platform.rs
#[cfg(feature = "v1")] /// Platform - Create /// /// Create a new platform account #[utoipa::path( post, path = "/user/create_platform", request_body( content = PlatformAccountCreateRequest, description = "Create a platform account with organization_name", examples( ( ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/organization.rs
crates/openapi/src/routes/organization.rs
#[cfg(feature = "v1")] /// Organization - Create /// /// Create a new organization #[utoipa::path( post, path = "/organization", request_body( content = OrganizationCreateRequest, examples( ( "Create an organization with organization_name" = ( ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/merchant_account.rs
crates/openapi/src/routes/merchant_account.rs
#[cfg(feature = "v1")] /// Merchant Account - Create /// /// Create a new account for a *merchant* and the *merchant* could be a seller or retailer or client who likes to receive and send payments. #[utoipa::path( post, path = "/accounts", request_body( content = MerchantAccountCreate, examp...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/relay.rs
crates/openapi/src/routes/relay.rs
/// Relay - Create /// /// Creates a relay request. #[utoipa::path( post, path = "/relay", request_body( content = RelayRequest, examples(( "Create a relay request" = ( value = json!({ "connector_resource_id": "7256228702616471803954", ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/merchant_connector_account.rs
crates/openapi/src/routes/merchant_connector_account.rs
/// Merchant Connector - Create /// /// Creates a new Merchant Connector for the merchant account. The connector could be a payment processor/facilitator/acquirer or a provider of specialized services like Fraud/Accounting etc. #[cfg(feature = "v1")] #[utoipa::path( post, path = "/account/{account_id}/connector...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/payment_method.rs
crates/openapi/src/routes/payment_method.rs
/// PaymentMethods - Create /// /// Creates and stores a payment method against a customer. /// In case of cards, this API should be used only by PCI compliant merchants. #[utoipa::path( post, path = "/payment_methods", request_body ( content = PaymentMethodCreate, examples (( "Save a card"...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/payouts.rs
crates/openapi/src/routes/payouts.rs
/// Payouts - Create #[utoipa::path( post, path = "/payouts/create", request_body=PayoutsCreateRequest, responses( (status = 200, description = "Payout created", body = PayoutCreateResponse), (status = 400, description = "Missing Mandatory fields") ), tag = "Payouts", operati...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/gsm.rs
crates/openapi/src/routes/gsm.rs
/// Gsm - Create /// /// Creates a GSM (Global Status Mapping) Rule. A GSM rule is used to map a connector's error message/error code combination during a particular payments flow/sub-flow to Hyperswitch's unified status/error code/error message combination. It is also used to decide the next action in the flow - retry...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/subscriptions.rs
crates/openapi/src/routes/subscriptions.rs
use serde_json::json; /// Subscription - Create and Confirm /// /// Creates and confirms a subscription in a single request. #[utoipa::path( post, path = "/subscriptions", request_body( content = CreateAndConfirmSubscriptionRequest, examples(( "Create and confirm subscription" =...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/authentication.rs
crates/openapi/src/routes/authentication.rs
/// Authentication - Create /// /// Create a new authentication for accessing our APIs from your servers. /// #[utoipa::path( post, path = "/authentication", request_body = AuthenticationCreateRequest, responses( (status = 200, description = "Authentication created", body = AuthenticationRespons...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/proxy.rs
crates/openapi/src/routes/proxy.rs
#[cfg(feature = "v2")] ///Proxy /// /// Create a proxy request #[utoipa::path( post, path = "/proxy", request_body( content = ProxyRequest, examples(( "Create a proxy request" = ( value = json!({ "request_body": { "sourc...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/payments.rs
crates/openapi/src/routes/payments.rs
/// Payments - Create /// /// Creates a payment resource, which represents a customer's intent to pay. /// This endpoint is the starting point for various payment flows: /// #[utoipa::path( post, path = "/payments", request_body( content = PaymentsCreateRequest, examples( ( ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
true
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/profile.rs
crates/openapi/src/routes/profile.rs
// ******************************************** V1 profile routes ******************************************** // #[cfg(feature = "v1")] /// Profile - Create /// /// Creates a new *profile* for a merchant #[utoipa::path( post, path = "/account/{account_id}/business_profile", params ( ("account_id" ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/openapi/src/routes/tokenization.rs
crates/openapi/src/routes/tokenization.rs
use serde_json::json; use utoipa::OpenApi; /// Tokenization - Create /// /// Create a token with customer_id #[cfg(feature = "v2")] #[utoipa::path( post, path = "/v2/tokenize", request_body( content = GenericTokenizationRequest, examples(("Create a token with customer_id" = ( va...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/consts.rs
crates/pm_auth/src/consts.rs
pub const REQUEST_TIME_OUT: u64 = 30; // will timeout after the mentioned limit pub const REQUEST_TIMEOUT_ERROR_CODE: &str = "TIMEOUT"; // timeout error code pub const REQUEST_TIMEOUT_ERROR_MESSAGE: &str = "Connector did not respond in specified time"; // error message for timed out request pub const NO_ERROR_CODE: &st...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/lib.rs
crates/pm_auth/src/lib.rs
pub mod connector; pub mod consts; pub mod core; pub mod types;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/connector.rs
crates/pm_auth/src/connector.rs
pub mod plaid; pub use self::plaid::Plaid;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/core.rs
crates/pm_auth/src/core.rs
pub mod errors;
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/types.rs
crates/pm_auth/src/types.rs
pub mod api; use std::marker::PhantomData; use api::auth_service::{BankAccountCredentials, ExchangeToken, LinkToken, RecipientCreate}; use api_models::enums as api_enums; use common_enums::{CountryAlpha2, PaymentMethod, PaymentMethodType}; use common_utils::{id_type, types}; use masking::Secret; #[derive(Debug, Clon...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/connector/plaid.rs
crates/pm_auth/src/connector/plaid.rs
pub mod transformers; use std::fmt::Debug; use common_utils::{ ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use error_stack::ResultExt; use masking::{Mask, Maskable}; use transformers as plaid; use crate::{ core::errors, types::{ self as auth_types, ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/connector/plaid/transformers.rs
crates/pm_auth/src/connector/plaid/transformers.rs
use std::collections::HashMap; use common_enums::{PaymentMethod, PaymentMethodType}; use common_utils::{id_type, types as util_types}; use masking::{PeekInterface, Secret}; use serde::{Deserialize, Serialize}; use crate::{core::errors, types}; #[derive(Debug, Serialize, Eq, PartialEq)] #[serde(rename_all = "snake_ca...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/types/api.rs
crates/pm_auth/src/types/api.rs
pub mod auth_service; use std::fmt::Debug; use common_utils::{ errors::CustomResult, request::{Request, RequestContent}, }; use masking::Maskable; use crate::{ core::errors::ConnectorError, types::{ self as auth_types, api::auth_service::{AuthService, PaymentInitiation}, }, }; #[...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/types/api/auth_service.rs
crates/pm_auth/src/types/api/auth_service.rs
use crate::types::{ BankAccountCredentialsRequest, BankAccountCredentialsResponse, ExchangeTokenRequest, ExchangeTokenResponse, LinkTokenRequest, LinkTokenResponse, RecipientCreateRequest, RecipientCreateResponse, }; pub trait AuthService: super::ConnectorCommon + AuthServiceLinkToken + AuthSer...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
juspay/hyperswitch
https://github.com/juspay/hyperswitch/blob/4201e04a8f0f1d46b57f24868f4f943a9be50bda/crates/pm_auth/src/core/errors.rs
crates/pm_auth/src/core/errors.rs
#[derive(Debug, thiserror::Error, PartialEq)] pub enum ConnectorError { #[error("Failed to obtain authentication type")] FailedToObtainAuthType, #[error("Missing required field: {field_name}")] MissingRequiredField { field_name: &'static str }, #[error("Failed to execute a processing step: {0:?}")] ...
rust
Apache-2.0
4201e04a8f0f1d46b57f24868f4f943a9be50bda
2026-01-04T15:31:59.475325Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile-utils/src/lib.rs
zellij-tile-utils/src/lib.rs
#[macro_export] macro_rules! rgb { ($a:expr) => { ansi_term::Color::Rgb($a.0, $a.1, $a.2) }; } #[macro_export] macro_rules! palette_match { ($palette_color:expr) => { match $palette_color { PaletteColor::Rgb((r, g, b)) => RGB(r, g, b), PaletteColor::EightBit(color) =...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/commands.rs
src/commands.rs
use dialoguer::Confirm; use std::net::IpAddr; use std::{fs::File, io::prelude::*, path::PathBuf, process, time::Duration}; #[cfg(feature = "web_server_capability")] use isahc::{config::RedirectPolicy, prelude::*, HttpClient, Request}; use nix; use zellij_client::{ old_config_converter::{ config_yaml_to_co...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/main.rs
src/main.rs
mod commands; #[cfg(test)] mod tests; use clap::Parser; use zellij_utils::{ cli::{CliAction, CliArgs, Command, Sessions}, consts::{create_config_and_cache_folders, VERSION}, data::UnblockCondition, envs, input::config::Config, logging::*, setup::Setup, shared::web_server_base_url_from_c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/tests/mod.rs
src/tests/mod.rs
pub mod e2e;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/tests/e2e/mod.rs
src/tests/e2e/mod.rs
pub mod cases; mod remote_runner; mod steps;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/tests/e2e/steps.rs
src/tests/e2e/steps.rs
use super::cases::{ MOVE_FOCUS_LEFT_IN_NORMAL_MODE, MOVE_TAB_LEFT, MOVE_TAB_RIGHT, NEW_TAB_IN_TAB_MODE, SECOND_TAB_CONTENT, TAB_MODE, }; use super::remote_runner::{RemoteTerminal, Step}; pub fn new_tab() -> Step { Step { name: "Open new tab", instruction: |mut remote_terminal: RemoteTermina...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/tests/e2e/remote_runner.rs
src/tests/e2e/remote_runner.rs
use std::collections::HashMap; use std::sync::atomic::{AtomicBool, Ordering}; use std::sync::{Arc, Mutex}; use vte; use zellij_server::panes::sixel::SixelImageStore; use zellij_server::panes::{LinkHandler, TerminalPane}; use zellij_utils::data::{Palette, Style}; use zellij_utils::pane_size::{Dimension, PaneGeom, Size,...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/src/tests/e2e/cases.rs
src/tests/e2e/cases.rs
#![allow(unused)] use ::insta::assert_snapshot; use zellij_utils::{ pane_size::Size, position::{Column, Line, Position}, }; use rand::Rng; use regex::Regex; use std::fmt::Write; use std::path::Path; use crate::tests::e2e::steps::{ check_focus_on_second_tab, check_second_tab_opened, check_third_tab_is_le...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/prelude.rs
zellij-tile/src/prelude.rs
pub use crate::shim::*; pub use crate::*; pub use zellij_utils::consts::VERSION; pub use zellij_utils::data::*; pub use zellij_utils::errors::prelude::*; pub use zellij_utils::input::actions;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/lib.rs
zellij-tile/src/lib.rs
//! The zellij-tile crate acts as the Rust API for developing plugins for Zellij. //! //! To read more about Zellij plugins: //! [https://zellij.dev/documentation/plugins](https://zellij.dev/documentation/plugins) //! //! ### Interesting things in this libary: //! - The [`ZellijPlugin`] trait for implementing plugins c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/shim.rs
zellij-tile/src/shim.rs
use serde::{de::DeserializeOwned, Serialize}; use std::collections::{BTreeMap, HashSet}; use std::{ io, path::{Path, PathBuf}, }; use zellij_utils::data::*; use zellij_utils::errors::prelude::*; use zellij_utils::input::actions::Action; pub use zellij_utils::plugin_api; use zellij_utils::plugin_api::event::Prot...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/ui_components/table.rs
zellij-tile/src/ui_components/table.rs
use super::Text; /// render a table with arbitrary data #[derive(Debug, Clone)] pub struct Table { contents: Vec<Vec<Text>>, } impl Table { pub fn new() -> Self { Table { contents: vec![] } } pub fn add_row(mut self, row: Vec<impl ToString>) -> Self { self.contents .push(ro...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/ui_components/text.rs
zellij-tile/src/ui_components/text.rs
use std::ops::Bound; use std::ops::RangeBounds; #[derive(Debug, Default, Clone)] pub struct Text { text: String, selected: bool, opaque: bool, indices: Vec<Vec<usize>>, } impl Text { pub fn new<S: AsRef<str>>(content: S) -> Self where S: ToString, { Text { text:...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/ui_components/mod.rs
zellij-tile/src/ui_components/mod.rs
mod nested_list; mod ribbon; mod table; mod text; pub use prost::{self, *}; pub use zellij_utils::plugin_api; pub use nested_list::*; pub use ribbon::*; pub use table::*; pub use text::*;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/ui_components/nested_list.rs
zellij-tile/src/ui_components/nested_list.rs
use super::Text; use std::borrow::Borrow; use std::ops::RangeBounds; #[derive(Debug, Default, Clone)] pub struct NestedListItem { indentation_level: usize, content: Text, } impl NestedListItem { pub fn new<S: AsRef<str>>(text: S) -> Self where S: ToString, { NestedListItem { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-tile/src/ui_components/ribbon.rs
zellij-tile/src/ui_components/ribbon.rs
use super::Text; use std::borrow::Borrow; pub fn print_ribbon(text: Text) { print!("\u{1b}Pzribbon;{}\u{1b}\\", text.serialize()); } pub fn print_ribbon_with_coordinates( text: Text, x: usize, y: usize, width: Option<usize>, height: Option<usize>, ) { let width = width.map(|w| w.to_string(...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/setup.rs
zellij-utils/src/setup.rs
#[cfg(not(target_family = "wasm"))] use crate::consts::ASSET_MAP; use crate::input::theme::Themes; #[allow(unused_imports)] use crate::{ cli::{CliArgs, Command, SessionCommand, Sessions}, consts::{ FEATURES, SYSTEM_DEFAULT_CONFIG_DIR, SYSTEM_DEFAULT_DATA_DIR_PREFIX, VERSION, ZELLIJ_CACHE_DIR, ZE...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/errors.rs
zellij-utils/src/errors.rs
//! Error context system based on a thread-local representation of the call stack, itself based on //! the instructions that are sent between threads. //! //! # Help wanted //! //! There is an ongoing endeavor to improve the state of error handling in zellij. Currently, many //! functions rely on [`unwrap`]ing [`Result...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/consts.rs
zellij-utils/src/consts.rs
//! Zellij program-wide constants. use crate::home::find_default_config_dir; use directories::ProjectDirs; use include_dir::{include_dir, Dir}; use lazy_static::lazy_static; use std::{path::PathBuf, sync::OnceLock}; use uuid::Uuid; pub const ZELLIJ_CONFIG_FILE_ENV: &str = "ZELLIJ_CONFIG_FILE"; pub const ZELLIJ_CONFIG...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/common_path.rs
zellij-utils/src/common_path.rs
// The following license refers to code in this file and this file only. // We chose to vendor this dependency rather than depend on it through crates.io in order to facilitate // packaging. This license was copied verbatim from: https://docs.rs/crate/common-path/1.0.0/source/LICENSE-MIT // // MIT License // // Copyrig...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/session_serialization.rs
zellij-utils/src/session_serialization.rs
use kdl::{KdlDocument, KdlEntry, KdlNode, KdlValue}; use std::collections::{BTreeMap, HashMap, HashSet}; use std::path::PathBuf; use crate::{ input::layout::PluginUserConfiguration, input::layout::{ FloatingPaneLayout, Layout, LayoutConstraint, PercentOrFixed, Run, RunPluginOrAlias, SplitDirect...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/web_server_commands.rs
zellij-utils/src/web_server_commands.rs
use crate::consts::WEBSERVER_SOCKET_PATH; use crate::errors::prelude::*; use crate::web_server_contract::web_server_contract::InstructionForWebServer as ProtoInstructionForWebServer; use interprocess::local_socket::LocalSocketStream; use prost::Message; use serde::{Deserialize, Serialize}; use std::fs; use std::io::{Bu...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/lib.rs
zellij-utils/src/lib.rs
pub mod cli; pub mod client_server_contract; pub mod consts; pub mod data; pub mod envs; pub mod errors; pub mod home; pub mod input; pub mod kdl; pub mod pane_size; pub mod plugin_api; pub mod position; pub mod session_serialization; pub mod setup; pub mod shared; // The following modules can't be used when targeting...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/channels.rs
zellij-utils/src/channels.rs
//! Definitions and helpers for sending and receiving messages between threads. use async_std::task_local; use std::cell::RefCell; use crate::errors::{get_current_ctx, ErrorContext}; pub use crossbeam::channel::{ bounded, unbounded, Receiver, RecvError, Select, SendError, Sender, TrySendError, }; /// An [MPSC](m...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/pane_size.rs
zellij-utils/src/pane_size.rs
use serde::{Deserialize, Serialize}; use std::{ fmt::Display, hash::{Hash, Hasher}, }; use crate::data::FloatingPaneCoordinates; use crate::input::layout::{SplitDirection, SplitSize}; use crate::position::Position; /// Contains the position and size of a [`Pane`], or more generally of any terminal, measured /...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/cli.rs
zellij-utils/src/cli.rs
use crate::data::{Direction, InputMode, Resize, UnblockCondition}; use crate::setup::Setup; use crate::{ consts::{ZELLIJ_CONFIG_DIR_ENV, ZELLIJ_CONFIG_FILE_ENV}, input::{layout::PluginUserConfiguration, options::Options}, }; use clap::{Args, Parser, Subcommand}; use serde::{Deserialize, Serialize}; use std::net...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/home.rs
zellij-utils/src/home.rs
//! //! # This module contain everything you'll need to access local system paths //! containing configuration and layouts use crate::consts::{SYSTEM_DEFAULT_DATA_DIR_PREFIX, ZELLIJ_PROJ_DIR}; #[cfg(not(test))] use crate::consts::SYSTEM_DEFAULT_CONFIG_DIR; use directories::BaseDirs; use std::{path::Path, path::PathB...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/downloader.rs
zellij-utils/src/downloader.rs
use async_std::sync::Mutex; use async_std::{ fs, io::{ReadExt, WriteExt}, stream::StreamExt, }; use isahc::prelude::*; use isahc::{config::RedirectPolicy, HttpClient, Request}; use std::collections::HashMap; use std::path::PathBuf; use std::sync::Arc; use thiserror::Error; use url::Url; #[derive(Error, Deb...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/remote_session_tokens.rs
zellij-utils/src/remote_session_tokens.rs
use crate::consts::ZELLIJ_PROJ_DIR; use crate::shared::set_permissions; use rusqlite::Connection; use std::path::PathBuf; #[derive(Debug)] pub enum TokenError { Database(rusqlite::Error), Io(std::io::Error), InvalidPath, } impl std::fmt::Display for TokenError { fn fmt(&self, f: &mut std::fmt::Formatt...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/web_authentication_tokens.rs
zellij-utils/src/web_authentication_tokens.rs
// TODO: GATE THIS WHOLE FILE AND RELEVANT DEPS BEHIND web_server_capability use crate::consts::ZELLIJ_PROJ_DIR; use rusqlite::Connection; use sha2::{Digest, Sha256}; use std::path::PathBuf; use std::time::{SystemTime, UNIX_EPOCH}; use uuid::Uuid; #[derive(Debug)] pub struct TokenInfo { pub name: String, pub c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/sessions.rs
zellij-utils/src/sessions.rs
use crate::{ consts::{ session_info_folder_for_session, session_layout_cache_file_name, ZELLIJ_SESSION_INFO_CACHE_DIR, ZELLIJ_SOCK_DIR, }, envs, input::layout::Layout, ipc::{ClientToServerMsg, IpcReceiverWithContext, IpcSenderWithContext, ServerToClientMsg}, }; use anyhow; use humant...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/logging.rs
zellij-utils/src/logging.rs
//! Zellij logging utility functions. use std::{ fs, io::{self, prelude::*}, os::unix::io::RawFd, path::{Path, PathBuf}, }; use log::LevelFilter; use log4rs::append::rolling_file::{ policy::compound::{ roll::fixed_window::FixedWindowRoller, trigger::size::SizeTrigger, CompoundPolicy, ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/shared.rs
zellij-utils/src/shared.rs
//! Some general utility functions. use std::net::{IpAddr, Ipv4Addr}; use std::{iter, str::from_utf8}; use crate::data::{Palette, PaletteColor, PaletteSource, ThemeHue}; use crate::envs::get_session_name; use crate::input::options::Options; use colorsys::{Ansi256, Rgb}; use strip_ansi_escapes::strip; use unicode_widt...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/position.rs
zellij-utils/src/position.rs
use serde::{Deserialize, Serialize}; #[derive(Debug, Hash, Copy, Clone, PartialEq, Eq, PartialOrd, Deserialize, Serialize)] pub struct Position { pub line: Line, pub column: Column, } impl Position { pub fn new(line: i32, column: u16) -> Self { Self { line: Line(line as isize), ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/data.rs
zellij-utils/src/data.rs
use crate::home::default_layout_dir; use crate::input::actions::{Action, RunCommandAction}; use crate::input::config::ConversionError; use crate::input::keybinds::Keybinds; use crate::input::layout::{RunPlugin, RunPluginOrAlias, SplitSize}; use crate::pane_size::PaneGeom; use crate::position::Position; use crate::share...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/envs.rs
zellij-utils/src/envs.rs
/// Uniformly operates ZELLIJ* environment variables use anyhow::Result; use serde::{Deserialize, Serialize}; use std::{ collections::{BTreeMap, HashMap}, env::{set_var, var}, }; use std::fmt; pub const ZELLIJ_ENV_KEY: &str = "ZELLIJ"; pub fn get_zellij() -> Result<String> { Ok(var(ZELLIJ_ENV_KEY)?) } pub...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc.rs
zellij-utils/src/ipc.rs
//! IPC stuff for starting to split things into a client and server model. use crate::{ data::{ClientId, ConnectToSession, KeyWithModifier, Style}, errors::{prelude::*, ErrorContext}, input::{actions::Action, cli_assets::CliAssets}, pane_size::{Size, SizeInPixels}, }; use interprocess::local_socket::Loc...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/web_server_contract/protobuf_conversion.rs
zellij-utils/src/web_server_contract/protobuf_conversion.rs
use crate::errors::prelude::*; use crate::web_server_commands::InstructionForWebServer as RustInstructionForWebServer; use crate::web_server_contract::web_server_contract::{ instruction_for_web_server, InstructionForWebServer as ProtoInstructionForWebServer, ShutdownWebServerMsg, }; // Convert Rust Instruction...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/web_server_contract/mod.rs
zellij-utils/src/web_server_contract/mod.rs
include!(concat!( env!("CARGO_MANIFEST_DIR"), "/assets/prost_web_server/generated_web_server_api.rs" )); mod protobuf_conversion;
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/event.rs
zellij-utils/src/plugin_api/event.rs
pub use super::generated_api::api::{ action::{Action as ProtobufAction, Position as ProtobufPosition}, event::{ event::Payload as ProtobufEventPayload, pane_scrollback_response, ActionCompletePayload as ProtobufActionCompletePayload, ClientInfo as ProtobufClientInfo, ClientPaneHistory as...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/key.rs
zellij-utils/src/plugin_api/key.rs
pub use super::generated_api::api::key::{ key::{ KeyModifier as ProtobufKeyModifier, MainKey as ProtobufMainKey, NamedKey as ProtobufNamedKey, }, Key as ProtobufKey, }; use crate::data::{BareKey, KeyModifier, KeyWithModifier}; use std::collections::BTreeSet; use std::convert::TryFrom; impl...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/command.rs
zellij-utils/src/plugin_api/command.rs
pub use super::generated_api::api::command::Command as ProtobufCommand; use crate::data::CommandToRun; use std::convert::TryFrom; use std::path::PathBuf; impl TryFrom<ProtobufCommand> for CommandToRun { type Error = &'static str; fn try_from(protobuf_command: ProtobufCommand) -> Result<Self, &'static str> { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/pipe_message.rs
zellij-utils/src/plugin_api/pipe_message.rs
pub use super::generated_api::api::pipe_message::{ Arg as ProtobufArg, PipeMessage as ProtobufPipeMessage, PipeSource as ProtobufPipeSource, }; use crate::data::{PipeMessage, PipeSource}; use std::convert::TryFrom; impl TryFrom<ProtobufPipeMessage> for PipeMessage { type Error = &'static str; fn try_from(...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/file.rs
zellij-utils/src/plugin_api/file.rs
pub use super::generated_api::api::file::File as ProtobufFile; use crate::data::FileToOpen; use std::convert::TryFrom; use std::path::PathBuf; impl TryFrom<ProtobufFile> for FileToOpen { type Error = &'static str; fn try_from(protobuf_file: ProtobufFile) -> Result<Self, &'static str> { let path = Path...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/plugin_command.rs
zellij-utils/src/plugin_api/plugin_command.rs
pub use super::generated_api::api::{ action::{Action as ProtobufAction, PaneIdAndShouldFloat, SwitchToModePayload}, event::{EventNameList as ProtobufEventNameList, Header}, input_mode::InputMode as ProtobufInputMode, plugin_command::{ get_pane_pid_response, plugin_command::Payload, BreakPanesToN...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/mod.rs
zellij-utils/src/plugin_api/mod.rs
pub mod action; pub mod command; pub mod event; pub mod file; pub mod input_mode; pub mod key; pub mod message; pub mod pipe_message; pub mod plugin_command; pub mod plugin_ids; pub mod plugin_permission; pub mod resize; pub mod style; // NOTE: This code is currently out of order. // Refer to [the PR introducing this c...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/style.rs
zellij-utils/src/plugin_api/style.rs
use super::generated_api::api::style::{ color::Payload as ProtobufColorPayload, Color as ProtobufColor, ColorType as ProtobufColorType, Palette as ProtobufPalette, RgbColorPayload as ProtobufRgbColorPayload, Style as ProtobufStyle, Styling as ProtobufStyling, ThemeHue as ProtobufThemeHue, }; use crate::data...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/plugin_ids.rs
zellij-utils/src/plugin_api/plugin_ids.rs
pub use super::generated_api::api::plugin_ids::{ PluginIds as ProtobufPluginIds, ZellijVersion as ProtobufZellijVersion, }; use crate::data::PluginIds; use std::convert::TryFrom; use std::path::PathBuf; impl TryFrom<ProtobufPluginIds> for PluginIds { type Error = &'static str; fn try_from(protobuf_plugin_...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/input_mode.rs
zellij-utils/src/plugin_api/input_mode.rs
pub use super::generated_api::api::input_mode::{ InputMode as ProtobufInputMode, InputModeMessage as ProtobufInputModeMessage, }; use crate::data::InputMode; use std::convert::TryFrom; impl TryFrom<ProtobufInputMode> for InputMode { type Error = &'static str; fn try_from(protobuf_input_mode: ProtobufInput...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/action.rs
zellij-utils/src/plugin_api/action.rs
pub use super::generated_api::api::{ action::{ action::OptionalPayload, command_or_plugin::CommandOrPluginType, pane_run::RunType, run_plugin_location_data::LocationData, run_plugin_or_alias::PluginType, Action as ProtobufAction, ActionName as ProtobufActionNa...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/message.rs
zellij-utils/src/plugin_api/message.rs
pub use super::generated_api::api::message::Message as ProtobufMessage; use crate::data::PluginMessage; use std::convert::TryFrom; impl TryFrom<ProtobufMessage> for PluginMessage { type Error = &'static str; fn try_from(protobuf_message: ProtobufMessage) -> Result<Self, &'static str> { let name = prot...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/resize.rs
zellij-utils/src/plugin_api/resize.rs
pub use super::generated_api::api::resize::{ MoveDirection as ProtobufMoveDirection, Resize as ProtobufResize, ResizeAction, ResizeDirection, ResizeDirection as ProtobufResizeDirection, }; use crate::data::{Direction, Resize, ResizeStrategy}; use std::convert::TryFrom; impl TryFrom<ProtobufResize> for Resize ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/plugin_api/plugin_permission.rs
zellij-utils/src/plugin_api/plugin_permission.rs
pub use super::generated_api::api::plugin_permission::PermissionType as ProtobufPermissionType; use crate::data::PermissionType; use std::convert::TryFrom; impl TryFrom<ProtobufPermissionType> for PermissionType { type Error = &'static str; fn try_from(protobuf_permission: ProtobufPermissionType) -> Result<Se...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/client_server_contract/mod.rs
zellij-utils/src/client_server_contract/mod.rs
include!(concat!( env!("CARGO_MANIFEST_DIR"), "/assets/prost_ipc/generated_client_server_api.rs" ));
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc/enum_conversions.rs
zellij-utils/src/ipc/enum_conversions.rs
use crate::{ client_server_contract::client_server_contract::{ BareKey as ProtoBareKey, KeyModifier as ProtoKeyModifier, }, data::{BareKey, KeyModifier}, errors::prelude::*, }; // BareKey conversions impl From<BareKey> for ProtoBareKey { fn from(key: BareKey) -> Self { match key { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc/protobuf_conversion.rs
zellij-utils/src/ipc/protobuf_conversion.rs
use crate::{ client_server_contract::client_server_contract::{ client_to_server_msg, server_to_client_msg, ActionMsg, AttachClientMsg, AttachWatcherClientMsg, BackgroundColorMsg, CliPipeOutputMsg, ClientExitedMsg, ClientToServerMsg as ProtoClientToServerMsg, ColorRegistersMsg, ConfigFileUpda...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc/tests/roundtrip_tests.rs
zellij-utils/src/ipc/tests/roundtrip_tests.rs
use super::test_framework::*; use crate::data::{ BareKey, CommandOrPlugin, ConnectToSession, Direction, FloatingPaneCoordinates, InputMode, KeyModifier, KeyWithModifier, LayoutInfo, OriginatingPlugin, PaneId, PluginTag, Resize, WebSharing, }; use crate::input::actions::{Action, SearchDirection, SearchOption...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
true
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc/tests/test_framework.rs
zellij-utils/src/ipc/tests/test_framework.rs
/// Macro for testing round-trip conversion for ClientToServerMsg variants macro_rules! test_client_roundtrip { ($msg:expr) => {{ let original: crate::ipc::ClientToServerMsg = $msg; let proto: crate::client_server_contract::client_server_contract::ClientToServerMsg = original.clone().int...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false
zellij-org/zellij
https://github.com/zellij-org/zellij/blob/3fe48a972c55537502128779116d38d8f8aedb7e/zellij-utils/src/ipc/tests/mod.rs
zellij-utils/src/ipc/tests/mod.rs
mod roundtrip_tests; mod test_framework;
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/config.rs
zellij-utils/src/input/config.rs
use crate::data::Styling; use miette::{Diagnostic, LabeledSpan, NamedSource, SourceCode}; use serde::{Deserialize, Serialize}; use std::collections::HashSet; use std::fs::File; use std::io::{self, Read}; use std::path::PathBuf; use thiserror::Error; use std::convert::TryFrom; use super::keybinds::Keybinds; use super:...
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/cli_assets.rs
zellij-utils/src/input/cli_assets.rs
use crate::data::LayoutInfo; use crate::input::options::Options; use crate::pane_size::Size; use crate::{ home::find_default_config_dir, input::{config::Config, layout::Layout, theme::Themes}, setup::{get_default_themes, get_theme_dir}, }; use serde::{Deserialize, Serialize}; use std::path::PathBuf; #[deri...
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/web_client.rs
zellij-utils/src/input/web_client.rs
use kdl::{KdlDocument, KdlNode, KdlValue}; use serde::{Deserialize, Serialize}; use crate::{ data::PaletteColor, kdl_children_or_error, kdl_first_entry_as_string, kdl_get_child, kdl_get_child_entry_bool_value, kdl_get_child_entry_string_value, }; use super::config::ConfigError; #[derive(Debug, Default, Clone...
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/command.rs
zellij-utils/src/input/command.rs
//! Trigger a command use crate::data::{Direction, OriginatingPlugin}; use serde::{Deserialize, Serialize}; use std::path::PathBuf; #[derive(Debug, Clone)] pub enum TerminalAction { OpenFile(OpenFilePayload), RunCommand(RunCommand), } impl TerminalAction { pub fn change_cwd(&mut self, new_cwd: 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/theme.rs
zellij-utils/src/input/theme.rs
use serde::{ de::{Error, Visitor}, Deserialize, Deserializer, Serialize, Serializer, }; use std::{ collections::{BTreeMap, HashMap}, fmt, }; use crate::data::Styling; #[derive(Debug, Default, Clone, Copy, PartialEq, Deserialize, Serialize)] pub struct UiConfig { pub pane_frames: FrameConfig, } im...
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/mouse.rs
zellij-utils/src/input/mouse.rs
use serde::{Deserialize, Serialize}; use crate::position::Position; #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, Deserialize, Serialize)] /// A mouse event can have any number of buttons (including no /// buttons) pressed or released. pub struct MouseEvent { /// A mouse event can current be a Press, Release,...
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/options.rs
zellij-utils/src/input/options.rs
//! Handles cli and configuration options use crate::cli::Command; use crate::data::{InputMode, WebSharing}; use clap::{ArgEnum, Args}; use serde::{Deserialize, Serialize}; use std::path::PathBuf; use std::str::FromStr; use std::net::IpAddr; #[derive(Copy, Clone, Debug, PartialEq, Deserialize, Serialize, ArgEnum)] pu...
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/mod.rs
zellij-utils/src/input/mod.rs
pub mod actions; pub mod cli_assets; pub mod command; pub mod config; pub mod keybinds; pub mod layout; pub mod mouse; pub mod options; pub mod permission; pub mod plugins; pub mod theme; pub mod web_client; #[cfg(not(target_family = "wasm"))] pub use not_wasm::*; #[cfg(not(target_family = "wasm"))] mod not_wasm { ...
rust
MIT
3fe48a972c55537502128779116d38d8f8aedb7e
2026-01-04T15:35:12.838106Z
false