From 3de6ea799965a7d2aad0f7db2f23f54cd24cb039 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 23 May 2026 00:32:46 +0300 Subject: feat: configure new terminal cwd --- src/app/input/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/app/input') 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( -- cgit v1.2.3