docs(core): finish pointing the last session.json references at views.json

This commit is contained in:
l0ng-ai
2026-07-30 00:42:16 +08:00
parent bdb53a7c59
commit 978e1cc67d
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -951,7 +951,7 @@ pub fn default_config_dir() -> Option<PathBuf> {
}
/// 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<PathBuf> {
Some(config_dir()?.join(file))
}
+1 -1
View File
@@ -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<String>, host: impl Into<String>, port: u16) -> RemoteTarget {
RemoteTarget::Direct {
user: user.into(),
+1 -1
View File
@@ -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 —