From 1f296d8f3bbc80bd46cfd5987dfba30918947509 Mon Sep 17 00:00:00 2001 From: xuoe Date: Thu, 12 Dec 2024 16:21:27 +0200 Subject: [PATCH] docs: Include `restore_on_startup` (#21918) Signed-off-by: xuoe --- docs/src/configuring-zed.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index e4caeaf43129c1f96464789da1dd5094ac60518a..031be6b1ca48ba32a8ec7964bba0afac61a76dfa 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -133,6 +133,38 @@ Define extensions which should be installed (`true`) or never installed (`false` } ``` +## Restore on Startup + +- Description: Controls session restoration on startup. +- Setting: `restore_on_startup` +- Default: `last_session` + +**Options** + +1. Restore all workspaces that were open when quitting Zed: + +```json +{ + "restore_on_startup": "last_session" +} +``` + +2. Restore the workspace that was closed last: + +```json +{ + "restore_on_startup": "last_workspace" +} +``` + +3. Always start with an empty editor: + +```json +{ + "restore_on_startup": "none" +} +``` + ## Autoscroll on Clicks - Description: Whether to scroll when clicking near the edge of the visible text area.