diff options
| author | zhugehyuk <icedac@users.noreply.github.com> | 2026-05-25 03:28:33 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-24 21:28:33 +0300 |
| commit | 43c6ca3a5dbdcefc6c6dc29be9ce81d990baf39e (patch) | |
| tree | 73be12f81129dab324ea08901c733a6a56ec0e61 /src/app/state.rs | |
| parent | 5ce738cf5397d0d8a50ed1aa6335297073cc0f0f (diff) | |
feat: persist pane history across restarts (#248)
refs #217
Co-authored-by: Can Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/app/state.rs')
| -rw-r--r-- | src/app/state.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/state.rs b/src/app/state.rs index 43d6e00f..422664ff 100644 --- a/src/app/state.rs +++ b/src/app/state.rs @@ -721,6 +721,7 @@ pub enum SettingsSection { Sound, Toast, PaneLabels, + Experiments, Integrations, } @@ -731,6 +732,7 @@ impl SettingsSection { Self::Toast, Self::PaneLabels, Self::Integrations, + Self::Experiments, ]; pub fn label(self) -> &'static str { @@ -739,6 +741,7 @@ impl SettingsSection { Self::Sound => "sound", Self::Toast => "toasts", Self::PaneLabels => "pane labels", + Self::Experiments => "experiments", Self::Integrations => "integrations", } } @@ -1116,6 +1119,7 @@ pub struct AppState { pub confirm_close: bool, pub prompt_new_tab_name: bool, pub show_agent_labels_on_pane_borders: bool, + pub pane_history_persistence: bool, /// Expose the focused pane's cursor anchor to the outer terminal even when /// the pane requested `?25l`. See `[experimental] reveal_hidden_cursor_for_cjk_ime`. pub reveal_hidden_cursor_for_cjk_ime: bool, @@ -1175,6 +1179,10 @@ impl AppState { self.show_agent_labels_on_pane_borders } + pub fn pane_history_persistence_enabled(&self) -> bool { + self.pane_history_persistence + } + pub(crate) fn integration_updates_available(&self) -> bool { self.integration_recommendations .iter() @@ -1410,6 +1418,7 @@ impl AppState { confirm_close: true, prompt_new_tab_name: true, show_agent_labels_on_pane_borders: false, + pane_history_persistence: false, reveal_hidden_cursor_for_cjk_ime: false, cjk_ime_agent_filter_configured: false, cjk_ime_agents: Vec::new(), |
