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: Document the `--existing` CLI option (#61979)

Mohammad Adnaan9c7a5c948566
diff --git a/docs/src/reference/cli.md b/docs/src/reference/cli.md
index d5c84dd3b9b..c906b46e94d 100644
--- a/docs/src/reference/cli.md
+++ b/docs/src/reference/cli.md
@@ -85,7 +85,15 @@ Reuse an existing window, replacing its current workspace with the new paths:
zed -r ~/projects/different-project
```
-By default (without `-n`, `-a`, or `-r`), directories open in the current window's sidebar. You can change this default with the `cli_default_open_behavior` setting. See [Windows & Projects](../windows-and-projects.md) for more details.
+### `-e`, `--existing`
+
+Open paths in an existing Zed window instead of creating a new one:
+
+```sh
+zed -e myfile.txt
+```
+
+By default (without `-n`, `-a`, `-r`, or `-e`), directories open in the current window's sidebar. You can change this default with the `cli_default_open_behavior` setting. See [Windows & Projects](../windows-and-projects.md) for more details.
### `--diff <OLD_PATH> <NEW_PATH>`