fragment: dome doc + save as fragment mode

This commit is contained in:
bordun 2021-04-15 16:24:54 +02:00
parent f35c3cf523
commit 44f43cb144
13 changed files with 85 additions and 5 deletions

View file

@ -7,6 +7,7 @@
- Open: browse session files on the server
- Open recent: open a recent session on the server
- Save / Save as: save session file on the server
- Fragment mode: when enabled, the session will be saved as a fragment file (only the root's first child will be saved)
- Import: import a session file from the client's filesystem
- Export: export a session file to the client's filesystem
- State

View file

@ -28,6 +28,7 @@ Right clicking on a widget displays a menu with the following actions
- `Clone` : create a clone widget targetting the copied widget
- `Add widget`: create a new widget in selected container
- `Add tab`: create a new tab in selected container
- `Export`: export as fragment file
- `Delete`: delete selected tab or widget

View file

@ -12,7 +12,7 @@
- Clear: clear console
- Autoscrell: enable/disable console autoscroll
- Check for update at startup: enable/disable this feature
- Always on top: pin the launcher window above other the windows
The "play/stop" icon can be used to start and stop the server without opening the menu.

View file

@ -0,0 +1,15 @@
# Fragments
Fragments allow breaking sessions into multiple files and reusable components made of multiple widgets.
## Fragment files
When right-clicking on a widget in the editor mode, it is possible to export it as a fragment file.
Fragment files have the same extension as session files (`.json`) and can be opened like regular sessions. When doing so, keep in mind that only the first child of the root widget will be saved. It is possible to save a fragment file as a session file (and vice versa) by toggling the `Fragment mode` in the main menu.
## Fragment widgets
Fragment widgets work like clone widget except their source widget are loaded from fragment files or session files. When the sources files are modified, the fragment widgets are updated automatically.