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/state.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/app/state.rs') diff --git a/src/app/state.rs b/src/app/state.rs index ff039c14..5d4fb67d 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -1,4 +1,4 @@ -use crate::config::{Keybinds, SoundConfig, ToastConfig, ToastDelivery}; +use crate::config::{Keybinds, NewTerminalCwdConfig, SoundConfig, ToastConfig, ToastDelivery}; use crossterm::event::{KeyCode, KeyModifiers}; use ratatui::layout::{Direction, Rect}; use ratatui::style::Color; @@ -1075,6 +1075,7 @@ pub struct AppState { pub cjk_ime_cursor_shape: u8, pub kitty_graphics_enabled: bool, pub default_shell: String, + pub new_terminal_cwd: NewTerminalCwdConfig, pub pane_scrollback_limit_bytes: usize, #[allow(dead_code)] // kept for backward compat; palette.accent is the source of truth pub accent: Color, @@ -1362,6 +1363,7 @@ impl AppState { cjk_ime_cursor_shape: 2, // steady_block kitty_graphics_enabled: false, default_shell: String::new(), + new_terminal_cwd: NewTerminalCwdConfig::Follow, pane_scrollback_limit_bytes: crate::config::DEFAULT_SCROLLBACK_LIMIT_BYTES, accent: Color::Cyan, sound: SoundConfig { -- cgit v1.2.3