aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-01-22 16:13:28 +0100
committerGitHub <noreply@github.com>2026-01-22 16:13:28 +0100
commite094673f1460fe1ee6848e8ad1c3406581164439 (patch)
treecc0996479082a371eb21d68f6b7a6b0ed3a7affb /zellij-utils
parentAllow disabling OSC8 link generation (#4624) (diff)
downloadsl0ppij-e094673f1460fe1ee6848e8ad1c3406581164439.tar.gz
sl0ppij-e094673f1460fe1ee6848e8ad1c3406581164439.tar.xz
sl0ppij-e094673f1460fe1ee6848e8ad1c3406581164439.zip
fix: sessions started from the session manager will now default to the current cwd (#4625)
* fix: properly set cwd for new sessions and filepicker when none is specified * rustfmt * add pr * fix tests * rustfmt
Diffstat (limited to 'zellij-utils')
-rw-r--r--zellij-utils/src/data.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/zellij-utils/src/data.rs b/zellij-utils/src/data.rs
index 0440fd41..68d15725 100644
--- a/zellij-utils/src/data.rs
+++ b/zellij-utils/src/data.rs
@@ -2674,6 +2674,12 @@ impl MessageToPlugin {
new_plugin_args.should_focus = Some(true);
self
}
+ pub fn has_cwd(&self) -> bool {
+ self.new_plugin_args
+ .as_ref()
+ .map(|n| n.cwd.is_some())
+ .unwrap_or(false)
+ }
}
#[derive(Debug, Default, Clone, Serialize, Deserialize, PartialEq)]