From 978e1cc67d23d509ede68067ff1a278bf00c068e Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 30 Jul 2026 00:42:16 +0800 Subject: [PATCH] docs(core): finish pointing the last session.json references at views.json --- crates/tty7-core/src/core/config.rs | 2 +- crates/tty7-core/src/core/session.rs | 2 +- src/main.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/tty7-core/src/core/config.rs b/crates/tty7-core/src/core/config.rs index abcd940c..f0533b02 100644 --- a/crates/tty7-core/src/core/config.rs +++ b/crates/tty7-core/src/core/config.rs @@ -951,7 +951,7 @@ pub fn default_config_dir() -> Option { } /// Resolve a file under the config directory (no `dirs` dep). Shared by every -/// config-dir file (`config.json`, `session.json`, `history`). +/// config-dir file (`config.json`, `views.json`, `history`). pub fn config_path(file: &str) -> Option { Some(config_dir()?.join(file)) } diff --git a/crates/tty7-core/src/core/session.rs b/crates/tty7-core/src/core/session.rs index 14253780..aff17d16 100644 --- a/crates/tty7-core/src/core/session.rs +++ b/crates/tty7-core/src/core/session.rs @@ -239,7 +239,7 @@ impl RemoteTarget { /// /// The host is lowercased here *and* in [`connection_key`](Self::connection_key) /// — here so two equal targets compare equal, there so a hand-edited - /// `session.json` with `Box.Local` still derives the same id as `box.local`. + /// `views.json` with `Box.Local` still derives the same id as `box.local`. pub fn direct(user: impl Into, host: impl Into, port: u16) -> RemoteTarget { RemoteTarget::Direct { user: user.into(), diff --git a/src/main.rs b/src/main.rs index f7ea0ca8..7f5550af 100644 --- a/src/main.rs +++ b/src/main.rs @@ -423,7 +423,7 @@ fn main() { // Workspace" and the workspace picker need the identical path). // // Deliberately one window, not one per workspace that was open at - // quit: see `Workspaces::workspace_to_restore` for why, and + // quit: see `WindowViews::workspace_to_restore` for why, and // `WorkspaceStore::restore_one` for what happens to the others (they // are detached, not forgotten — panes keep running and the switcher // lists them). Quitting with every window closed — or a first run —