aboutsummaryrefslogtreecommitdiff
path: root/src/app/input
diff options
context:
space:
mode:
authorOgulcan Celik <ogulcancelik@gmail.com>2026-05-23 00:32:46 +0300
committerOgulcan Celik <ogulcancelik@gmail.com>2026-05-23 00:32:46 +0300
commit3de6ea799965a7d2aad0f7db2f23f54cd24cb039 (patch)
treec9233a7f3d432aed7761c9db9c0072fee4ff5de2 /src/app/input
parent0fec1199671becba511e03d98a4921e375a46fe3 (diff)
feat: configure new terminal cwd
Diffstat (limited to 'src/app/input')
-rw-r--r--src/app/input/mod.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs
index e357b33d..ef8b93f3 100644
--- a/src/app/input/mod.rs
+++ b/src/app/input/mod.rs
@@ -256,13 +256,17 @@ impl AppState {
let new_rows = (rows / 2).max(4);
let new_cols = (cols / 2).max(10);
- let cwd = self
+ let follow_cwd = self
.active
.and_then(|i| self.workspaces.get(i))
.and_then(|ws| {
let tab = ws.active_tab()?;
tab.cwd_for_pane(tab.layout.focused(), &self.terminals, terminal_runtimes)
});
+ let cwd = Some(super::creation::resolve_new_terminal_cwd(
+ &self.new_terminal_cwd,
+ follow_cwd,
+ ));
if let Some(ws) = self.active.and_then(|i| self.workspaces.get_mut(i)) {
if let Ok(new_pane) = ws.split_focused(