From f8729f6ea0713a19a2388975b1a144ccd2a543e6 Mon Sep 17 00:00:00 2001 From: Kunall Banerjee <14703164+yeskunall@users.noreply.github.com> Date: Mon, 24 Nov 2025 06:24:05 -0500 Subject: [PATCH] docs: Better wording for `terminal.working_directory` setting (#43388) Initially this was just going to be a minor docs fix, but then I wondered if we could improve the copy in the editor as well. Release Notes: - N/A --- assets/settings/default.json | 2 +- crates/settings/src/settings_content/terminal.rs | 5 +++-- docs/src/configuring-zed.md | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/assets/settings/default.json b/assets/settings/default.json index ba79f0ccbc..c8ffd31617 100644 --- a/assets/settings/default.json +++ b/assets/settings/default.json @@ -1441,7 +1441,7 @@ "default_height": 320, // What working directory to use when launching the terminal. // May take 4 values: - // 1. Use the current file's project directory. Will Fallback to the + // 1. Use the current file's project directory. Fallback to the // first project directory strategy if unsuccessful // "working_directory": "current_project_directory" // 2. Use the first project in this workspace's directory diff --git a/crates/settings/src/settings_content/terminal.rs b/crates/settings/src/settings_content/terminal.rs index c54ebe2d1c..cd01eb14fa 100644 --- a/crates/settings/src/settings_content/terminal.rs +++ b/crates/settings/src/settings_content/terminal.rs @@ -222,10 +222,11 @@ pub enum Shell { #[strum_discriminants(derive(strum::VariantArray, strum::VariantNames, strum::FromRepr))] #[serde(rename_all = "snake_case")] pub enum WorkingDirectory { - /// Use the current file's project directory. Will Fallback to the + /// Use the current file's project directory. Fallback to the /// first project directory strategy if unsuccessful. CurrentProjectDirectory, - /// Use the first project in this workspace's directory. + /// Use the first project in this workspace's directory. Fallback to using + /// this platform's home directory. FirstProjectDirectory, /// Always use this platform's home directory (if it can be found). AlwaysHome, diff --git a/docs/src/configuring-zed.md b/docs/src/configuring-zed.md index cf86a0a6e7..2d86667765 100644 --- a/docs/src/configuring-zed.md +++ b/docs/src/configuring-zed.md @@ -4071,7 +4071,7 @@ Example command to set the title: `echo -e "\e]2;New Title\007";` **Options** -1. Use the current file's project directory. Will Fallback to the first project directory strategy if unsuccessful +1. Use the current file's project directory. Fallback to the first project directory strategy if unsuccessful. ```json [settings] { @@ -4081,7 +4081,7 @@ Example command to set the title: `echo -e "\e]2;New Title\007";` } ``` -2. Use the first project in this workspace's directory. Will fallback to using this platform's home directory. +2. Use the first project in this workspace's directory. Fallback to using this platform's home directory. ```json [settings] { @@ -4091,7 +4091,7 @@ Example command to set the title: `echo -e "\e]2;New Title\007";` } ``` -3. Always use this platform's home directory (if we can find it) +3. Always use this platform's home directory if it can be found. ```json [settings] {