Skip to content

Commit c72e73f

Browse files
committed
refactor: fix file management docs inconsistencies
1 parent 5492885 commit c72e73f

File tree

4 files changed

+6
-71
lines changed

4 files changed

+6
-71
lines changed

docs/05-file-management.md

Lines changed: 6 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ It lists all files and folders in a hierarchical view.
1919
### File Tree Context Menu
2020

2121
When you right-click within the File Tree, a context menu appears which allows you to perform various operations.
22-
> All file and folder operations, such as creating, renaming, and deleting are generally performed through this context menu.
22+
> All file and folder operations, such as creating, renaming, deleting and many more are generally performed through this context menu.
2323
2424
The element you right-click in the File Tree becomes the selected context, meaning any operation performed will apply to that item. For example:
2525
- Right-click a **file** → the action applies to that file.
2626
- Right-click a **folder** → the action applies to or inside that folder (e.g., add file, create subfolder, delete contents).
2727
- Right-click on **empty space** → the action applies to the project’s root directory.
2828

29-
![File Tree Context Menu](./images/fileManagement/file-tree-context-menu.png "File Tree Context Menu")
30-
> In this example, `index.html` is selected as the context. Any action from the context menu will apply to that file.
29+
> In the image shown below, `index.html` is selected as the context. Any action from the context menu will apply to that file.
3130
32-
The File Tree updates automatically, but if files or folders appear missing, use `Refresh File Tree` option in the context menu to manually reload it. This option forces a full refresh of the tree view.
31+
![File Tree Keyboard Shortcuts](./images/fileManagement/file-tree-context-menu-key-shortcut.png "File Tree Keyboard Shortcuts")
32+
33+
You can also assign or update keyboard shortcuts for any File Tree action through the context menu using the keyboard button at the side.
3334

34-
You can also assign or update keyboard shortcuts for any File Tree action through the context menu.
3535
See the [Keyboard Shortcuts Guide](./Features/keyboard-shortcuts) for complete details.
3636

3737
### Sorting Files and Folders
@@ -131,30 +131,6 @@ Tabs can also be dragged between panes.
131131
When you right-click a tab, a context menu appears which has multiple options so that you can work with tabs easily.
132132

133133
![Tab bar context menu](./images/fileManagement/tab-bar-context-menu.png "Tab bar context menu")
134-
135-
#### Tab Bar Context Menu Options
136-
137-
* **Close Tab** — Closes the tab that was right-clicked.
138-
*For example, in the image, the `script.js` tab will be closed.*
139-
140-
* **Close Tabs to the Left** — Closes all tabs to the left of the selected one (excluding the right-clicked tab).
141-
*In the image, the `styles.css` tab will be closed.*
142-
143-
* **Close Tabs to the Right** — Closes all tabs to the right of the selected one (excluding the right-clicked tab).
144-
*In the image, the `index.html` tab will be closed.*
145-
146-
* **Close Saved Tabs** — Closes all tabs with saved content. *Tabs for files that have unsaved changes remain open.*
147-
148-
* **Close All Tabs** — Closes every tab currently open in the Tab Bar.
149-
150-
* **Rename** — Allows you to rename the file linked to the selected tab. *When you choose this option, Phoenix Code opens the File Tree (if it is closed) and highlights the file so you can rename it directly.*
151-
152-
* **Delete** — Deletes the file from the project and removes its tab from the Tab Bar.
153-
154-
* **Show in File Tree** – Highlights the selected file in the File Tree so you can locate it easily.
155-
156-
* **Reopen Closed File** — Reopens the most recently closed file or tab.
157-
158134
> These options provide quick access to common file operations directly from the Tab Bar.
159135
160136
### Git - Tab Bar
@@ -249,47 +225,6 @@ You can reorder files in Working Files by dragging and dropping them, just like
249225
When you right-click a file in Working Files, a context menu appears with various file operations.
250226

251227
![Working Files context menu](./images/fileManagement/working-files-context-menu.png "Working Files context menu")
252-
253-
#### Working Files Context Menu Options
254-
255-
* **Save File** — Saves the selected file if it has unsaved changes.
256-
257-
* **Show in File Tree** — Highlights the selected file in the File Tree so you can locate it easily.
258-
259-
* **Open In** — Opens the file or its location in external applications. *This option is available only in Desktop apps.*
260-
- **File Explorer** (Windows) / **File Manager** (Linux): Opens the file's location in the system file browser.
261-
- **Command Prompt** (Windows) / **Terminal** (Linux): Opens a terminal window at the file's directory.
262-
- **Default Application**: Opens the file in the system's default application for that file type.
263-
264-
* **Copy** — Copies the file name to the clipboard.
265-
266-
* **Copy Path** — Copies the file's full path to the clipboard.
267-
268-
* **Duplicate** — Creates a duplicate of the file with the same content. The duplicate is named with `(copy 1)` appended.
269-
*For example: `script.js` becomes `script(copy 1).js`.*
270-
271-
* **Download** — Downloads the file to your local system. *This option is available only in the browser version.*
272-
273-
* **Rename** — Allows you to rename the file. When you choose this option, **Phoenix Code** highlights the file in the File Tree so you can rename it directly.
274-
275-
* **Delete** — Deletes the file from the project and removes it from Working Files.
276-
277-
* **Find in...** — Opens the Find dialog to search for text within the selected file.
278-
279-
* **Replace in...** — Opens the Find and Replace dialog to search and replace text within the selected file.
280-
281-
* **Close** — Closes the selected file and removes it from Working Files.
282-
283-
* **Close Files Above** — Closes all files above the selected one in the Working Files list. *This option is disabled when there are no files above the selected file.*
284-
285-
* **Close Other Files** — Closes all files except the selected one. *This option is disabled when the selected file is the only open file.*
286-
287-
* **Close Files Below** — Closes all files below the selected one in the Working Files list. *This option is disabled when there are no files below the selected file.*
288-
289-
* **Add to .gitignore** — Adds the selected file to the `.gitignore` file, preventing it from being tracked by Git. *This option appears only when your project is a Git repository.*
290-
291-
* **Remove from .gitignore** — Removes the selected file from the `.gitignore` file, allowing it to be tracked by Git again. *This option appears only when your project is a Git repository.*
292-
293228
> These options provide quick access to common file operations directly from Working Files.
294229
295230
### Showing or Hiding Working Files
@@ -322,7 +257,7 @@ To customize the keyboard shortcut, refer to the [Keyboard Shortcuts Guide](./Fe
322257

323258
![Recent Files Dialog](./images/fileManagement/recent-files.png "Recent Files Dialog Box")
324259

325-
The dialog shows your recently opened files. Closed files appear in gray. Hover over them to see an `x` icon-click it to remove them from the list. The `Clear` button at the bottom removes all closed files at once.
260+
The dialog shows your recently opened files. Closed files appear in gray. Hover over them to see an `x` icon. Click it to remove them from the list. The `Clear` button at the bottom removes all closed files at once.
326261

327262
> Currently open files cannot be removed from this list. Close them first to remove them.
328263
49.6 KB
Loading
-66.6 KB
Binary file not shown.
-19.2 KB
Loading

0 commit comments

Comments
 (0)