diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-01-29 11:53:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-29 11:53:56 +0100 |
| commit | cdbdf2b6679c580d4b0c8332694cd8ee9117d49f (patch) | |
| tree | f262277077de2891c3952663f69f6906356c4e04 /zellij-utils/src/plugin_api/plugin_command.proto | |
| parent | fix: session creation time on musl (for "zellij ls") (#4645) (diff) | |
| download | sl0ppij-cdbdf2b6679c580d4b0c8332694cd8ee9117d49f.tar.gz sl0ppij-cdbdf2b6679c580d4b0c8332694cd8ee9117d49f.tar.xz sl0ppij-cdbdf2b6679c580d4b0c8332694cd8ee9117d49f.zip | |
Allow saving current session for resurrection on demand (#4654)
* initial implementation
* session manager ui and plugin api
* remove event
* cleanups and formatting
* add pr
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index 9c529013..6ef1ad34 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -178,6 +178,8 @@ enum CommandName { GetFocusedPaneInfo = 183; TogglePaneBorderless = 184; SetPaneBorderless = 185; + SaveSession = 186; + CurrentSessionLastSavedTime = 187; } message PluginCommand { @@ -305,6 +307,8 @@ message PluginCommand { GetFocusedPaneInfoPayload get_focused_pane_info_payload = 134; TogglePaneBorderlessPayload toggle_pane_borderless_payload = 135; SetPaneBorderlessPayload set_pane_borderless_payload = 136; + SaveSessionPayload save_session_payload = 137; + CurrentSessionLastSavedTimePayload current_session_last_saved_time_payload = 138; } } @@ -906,3 +910,18 @@ message FocusedPaneInfo { uint32 focused_tab_index = 1; PaneId focused_pane_id = 2; } + +message SaveSessionPayload {} + +message SaveSessionResponse { + oneof result { + bool success = 1; + string error = 2; + } +} + +message CurrentSessionLastSavedTimePayload {} + +message CurrentSessionLastSavedTimeResponse { + optional uint64 timestamp_millis = 1; // None if never saved, otherwise milliseconds elapsed since last save +} |
