Skip to content

Commit 0017c0f

Browse files
committed
feat: add content for what happens if user tries to close a unsaved tab
1 parent 006c565 commit 0017c0f

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

docs/05-file-management.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ For inactive tabs, this button appears only when you hover over them.
8181

8282
**Phoenix Code** shows a small `` icon on tabs that have unsaved changes.
8383

84+
If you try to close a tab with unsaved changes, **Phoenix Code** displays a confirmation dialog with three options:
85+
* **Don't Save**: Closes the tab without saving changes. All unsaved changes will be lost.
86+
* **Save**: Saves the file and then closes the tab.
87+
* **Cancel**: Keeps the tab open and returns you to editing.
88+
89+
![Save File Dialog](./images/fileManagement/save-file-dialog.png "Save File Dialog")
90+
8491
When multiple tabs have the same filename, **Phoenix Code** displays their parent folder name so you can easily tell them apart.
8592
> Hovering over a tab will show a tooltip with its full path.
8693
50.8 KB
Loading

0 commit comments

Comments
 (0)