* basic functionality * close and reopen scratch terminal working * embed/float and resize whole tab for floating and static floating panes * move focus working * fix focus change in floating panes * move pane with mouse * floating z indices * tests and better resize algorithm * starting to work on performance * some performance experimentations * new render engine * reverse painters algorithm for floating panes * fix frame buffering * improve ux situation * handle multiple new panes on screen without overlap * adjust keybindings * adjust key hints * fix multiuser frame ui * fix various floating/multiuser bugs * remove stuff * wide characters under floating panes * fix wide character frame override * fix non-frame boundaries interactions with floating panes * fix selection character width * fix title frame wide char overflow * fix existing tests * add tests * refactor output out of tab * refactor floating panes out of tab * refactor tab * moar refactoring * refactorings and bring back terminal window title setting * add frame vte output * remove more unused stuff * remove even more unused stuff * you know the drill * refactor floating panes and remove more stuffs * refactor pane grids * remove unused output caching * refactor output * remove unused stuff * rustfmt * some formatting * rustfmt * reduce clippy to normal * remove comment * remove unused * fix closign pane * fix tests
26 lines
646 B
Rust
26 lines
646 B
Rust
/// Uniformly operates ZELLIJ* environment variables
|
|
use anyhow::Result;
|
|
use std::env::{set_var, var};
|
|
|
|
pub const ZELLIJ_ENV_KEY: &str = "ZELLIJ";
|
|
pub fn get_zellij() -> Result<String> {
|
|
Ok(var(ZELLIJ_ENV_KEY)?)
|
|
}
|
|
pub fn set_zellij(v: String) {
|
|
set_var(ZELLIJ_ENV_KEY, v);
|
|
}
|
|
|
|
pub const SESSION_NAME_ENV_KEY: &str = "ZELLIJ_SESSION_NAME";
|
|
|
|
pub fn get_session_name() -> Result<String> {
|
|
Ok(var(SESSION_NAME_ENV_KEY)?)
|
|
}
|
|
|
|
pub fn set_session_name(v: String) {
|
|
set_var(SESSION_NAME_ENV_KEY, v);
|
|
}
|
|
|
|
pub const SOCKET_DIR_ENV_KEY: &str = "ZELLIJ_SOCKET_DIR";
|
|
pub fn get_socket_dir() -> Result<String> {
|
|
Ok(var(SOCKET_DIR_ENV_KEY)?)
|
|
}
|