aboutsummaryrefslogtreecommitdiff
path: root/src/persist.rs
blob: 0409511cb11d9285edc5b1672007e8d70656ea2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Session persistence — save/restore workspaces, layouts, and working directories.
//!
//! Stored at `~/.config/herdr/session.json`.
//! Optional pane screen history is stored separately at `session-history.json`.

mod io;
mod restore;
mod snapshot;

pub use self::io::{clear, clear_history, load, load_history, save};
pub use self::restore::restore;
#[cfg(unix)]
pub use self::restore::{restore_handoff, ImportedPaneRuntime};
pub use self::snapshot::{
    capture, capture_history, DirectionSnapshot, LayoutSnapshot, SessionHistorySnapshot,
    SessionSnapshot, TabSnapshot, WorkspaceSnapshot,
};