Skip to content

Commit 8906c57

Browse files
committed
feat: complete terminal docs
1 parent 8c5306a commit 8906c57

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

docs/08-Features/12-terminal.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,54 @@
22
title: Terminal
33
---
44

5+
import React from 'react';
6+
import VideoPlayer from '@site/src/components/Video/player';
7+
58
Phoenix Code has a built-in terminal so you can run commands without leaving the editor.
69

710
> The terminal is available only in desktop apps.
811
9-
<!-- Add an image here showing the terminal panel with a couple of tabs and a running command -->
12+
<!-- Add a workflow video here showing: opening the panel, running a command, multiple tabs, switching shells, closing -->
1013

1114
## Opening the Terminal
1215

13-
There are a few ways to open the terminal:
16+
Open the terminal in any of these ways:
1417

1518
- Click the **Tools** button *(grid icon)* in the bottom-right toolbar and select **Terminal**
1619
- Go to **View > Terminal** from the menu bar
1720
- Press `F4`
21+
- Right-click a file or folder in the project tree and choose **Integrated Terminal**. The terminal opens at that folder (or the file's containing folder)
22+
23+
<!-- Add an image of the project tree right-click menu showing the Integrated Terminal item -->
1824

1925
## Tabs
2026

2127
You can have multiple terminals open at the same time, each in its own tab. The tab sidebar shows the running process name for each terminal.
2228

2329
To create a new tab, click the **+** button at the bottom of the tab sidebar.
2430

25-
To close a tab, hover over it and click the **X** button. If a process is still running, Phoenix Code asks for confirmation before closing.
31+
To close a single tab, hover over it and click the **X** button. To close every terminal at once, click the panel's X button. Phoenix Code asks for confirmation if any process is still running.
32+
33+
When the terminal is focused and more than one tab is open, pressing `F4` cycles to the next tab.
2634

27-
<!-- Add an image here showing the tab sidebar with multiple terminal tabs -->
35+
<!-- Add an image of the tab sidebar with multiple terminal tabs -->
2836

2937
## Shell Selection
3038

31-
Click the **dropdown button** *(chevron icon)* next to the new tab button to pick a different shell. The available options depend on your operating system:
39+
Click the **dropdown button** *(chevron icon)* next to the new tab button to pick a different shell. The default options are:
3240

3341
- **macOS**: zsh, bash, fish
3442
- **Linux**: bash, zsh, fish
3543
- **Windows**: PowerShell, Command Prompt, Git Bash, WSL
3644

3745
Selecting a shell sets it as the default and opens a new terminal with it right away.
3846

39-
> Only shells that are installed on your system are shown.
40-
41-
## Right-Click Menu
42-
43-
Right-click inside the terminal to access:
44-
45-
- **Copy** - copy selected text
46-
- **Paste** - paste from clipboard
47-
- **Clear Terminal** - clear the terminal output
47+
> Only shells installed on your system are shown. Any other compatible shell on your system (for example, PowerShell Core on Windows) also appears in the list.
4848
4949
## Keyboard Shortcuts
5050

5151
| Action | Shortcut |
5252
|--------|----------|
53-
| Toggle terminal | `F4` |
53+
| Toggle terminal / cycle to next instance (when more than one is open) | `F4` |
5454
| Switch focus between editor and terminal | `Shift + Escape` |
5555
| Clear terminal buffer | `Ctrl/Cmd + K` |

0 commit comments

Comments
 (0)