Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

docs: Better wording for `terminal.working_directory` setting (#43388)

Kunall Banerjeef8729f6ea071
diff --git a/assets/settings/default.json b/assets/settings/default.json
index ba79f0ccbcc..c8ffd31617d 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 c54ebe2d1c5..cd01eb14fa5 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 cf86a0a6e7a..2d866677650 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]
{