pub struct GlobalConfig {
pub tabs: Vec<String>,
pub projects: Vec<ProjectEntry>,
pub exclude_worktree_paths: Vec<String>,
pub mobile_detach_key: Option<String>,
}Fields§
§tabs: Vec<String>§projects: Vec<ProjectEntry>§exclude_worktree_paths: Vec<String>Worktree paths containing any of these substrings are hidden. Defaults to [“.claude/worktrees”] to exclude Claude agent worktrees.
mobile_detach_key: Option<String>Extra no-prefix tmux key bound to detach-client when –mobile is set. Example: “C-q”. Unset by default (use prefix + d as normal).
Implementations§
Source§impl GlobalConfig
impl GlobalConfig
pub fn config_path() -> Option<PathBuf>
Sourcepub fn load() -> Result<(Self, Option<String>)>
pub fn load() -> Result<(Self, Option<String>)>
Returns (config, warning). On TOML parse error, falls back to defaults
and sets warning so the caller can surface it in the TUI status bar.
pub fn save(&self) -> Result<()>
pub fn is_worktree_excluded(&self, path: &PathBuf) -> bool
Sourcepub fn ordered_tabs(&self) -> Vec<Option<&str>>
pub fn ordered_tabs(&self) -> Vec<Option<&str>>
Returns tab order as [None, Some(“work”), …]. None = default tab (always first).
pub fn tab_exists(&self, name: &str) -> bool
Sourcepub fn project_tab<'a>(&'a self, path: &Path) -> Option<&'a str>
pub fn project_tab<'a>(&'a self, path: &Path) -> Option<&'a str>
Returns the tab name for the project at path, or None if unassigned.
Sourcepub fn move_project_tab(&mut self, path: &PathBuf, tab: Option<String>)
pub fn move_project_tab(&mut self, path: &PathBuf, tab: Option<String>)
Set or clear the tab assignment for the project at path.
pub fn add_project(&mut self, name: String, path: PathBuf)
pub fn remove_project(&mut self, path: &PathBuf)
pub fn set_alias(&mut self, project_path: &PathBuf, branch: &str, alias: &str)
Trait Implementations§
Source§impl Clone for GlobalConfig
impl Clone for GlobalConfig
Source§fn clone(&self) -> GlobalConfig
fn clone(&self) -> GlobalConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalConfig
impl Debug for GlobalConfig
Source§impl Default for GlobalConfig
impl Default for GlobalConfig
Source§impl<'de> Deserialize<'de> for GlobalConfig
impl<'de> Deserialize<'de> for GlobalConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalConfig
impl RefUnwindSafe for GlobalConfig
impl Send for GlobalConfig
impl Sync for GlobalConfig
impl Unpin for GlobalConfig
impl UnsafeUnpin for GlobalConfig
impl UnwindSafe for GlobalConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more