summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-09-22 16:16:53 -0400
committerJay V <[email protected]>2025-09-23 17:34:52 -0400
commit8c9fbc771747f80713023d15bdefae01212f6576 (patch)
tree2b1b1e6859982ea1e922138def5a64a600238062
parent9d3fdda674cf52f5bf415dfe0d13d6ca9962aae2 (diff)
downloadopencode-8c9fbc771747f80713023d15bdefae01212f6576.tar.gz
opencode-8c9fbc771747f80713023d15bdefae01212f6576.zip
docs: edits
-rw-r--r--packages/web/src/content/docs/ide.mdx2
-rw-r--r--packages/web/src/content/docs/tui.mdx15
2 files changed, 13 insertions, 4 deletions
diff --git a/packages/web/src/content/docs/ide.mdx b/packages/web/src/content/docs/ide.mdx
index 2d33aef8c..47c030598 100644
--- a/packages/web/src/content/docs/ide.mdx
+++ b/packages/web/src/content/docs/ide.mdx
@@ -24,7 +24,7 @@ To install opencode on VS Code and popular forks like Cursor, Windsurf, VSCodium
2. Open the integrated terminal
3. Run `opencode` - the extension installs automatically
-If on the other hand you want to use your own IDE when you run `/editor` or `/export` from the TUI, you'll need to set `export EDITOR="code --wait"`. [Learn more](https://opencode.ai/docs/tui/#editor-setup).
+If on the other hand you want to use your own IDE when you run `/editor` or `/export` from the TUI, you'll need to set `export EDITOR="code --wait"`. [Learn more](/docs/tui/#editor-setup).
---
diff --git a/packages/web/src/content/docs/tui.mdx b/packages/web/src/content/docs/tui.mdx
index 19fafe822..743702eaa 100644
--- a/packages/web/src/content/docs/tui.mdx
+++ b/packages/web/src/content/docs/tui.mdx
@@ -185,6 +185,9 @@ Redo a previously undone message. Only available after using `/undo`.
Any file changes will also be restored.
:::
+Internally, this uses Git to manage the file changes. So your project **needs to
+be a Git repository**.
+
```bash frame="none"
/redo
```
@@ -237,6 +240,9 @@ Undo last message in the conversation. Removes the most recent user message, all
Any file changes made will also be reverted.
:::
+Internally, this uses Git to manage the file changes. So your project **needs to
+be a Git repository**.
+
```bash frame="none"
/undo
```
@@ -266,7 +272,8 @@ Both the `/editor` and `/export` commands use the editor specified in your `EDIT
export EDITOR=nano
export EDITOR=vim
- # For GUI editors (VS Code, Cursor, VSCodium, Windsurf, Zed, etc.) include --wait
+ # For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
+ # include --wait
export EDITOR="code --wait"
```
@@ -279,7 +286,8 @@ Both the `/editor` and `/export` commands use the editor specified in your `EDIT
```bash
set EDITOR=notepad
- # For GUI editors (VS Code, Cursor, VSCodium, Windsurf, Zed, etc.) include --wait
+ # For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
+ # include --wait
set EDITOR=code --wait
```
@@ -292,7 +300,8 @@ Both the `/editor` and `/export` commands use the editor specified in your `EDIT
```powershell
$env:EDITOR = "notepad"
- # For GUI editors (VS Code, Cursor, VSCodium, Windsurf, Zed, etc.) include --wait
+ # For GUI editors, VS Code, Cursor, VSCodium, Windsurf, Zed, etc.
+ # include --wait
$env:EDITOR = "code --wait"
```