diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-07-27 18:24:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-27 18:24:37 +0200 |
| commit | ea07e2d5b6bbc9ea6f9c765b0838b3e91156a58d (patch) | |
| tree | 4a8fac8a9b27f2a8b32b3af61a3b5419b9937c81 /zellij-utils/src/plugin_api/action.rs | |
| parent | Switch from the unmaintained daemonize crate to a maintained fork (#4512) (diff) | |
| download | sl0ppij-ea07e2d5b6bbc9ea6f9c765b0838b3e91156a58d.tar.gz sl0ppij-ea07e2d5b6bbc9ea6f9c765b0838b3e91156a58d.tar.xz sl0ppij-ea07e2d5b6bbc9ea6f9c765b0838b3e91156a58d.zip | |
Nested session handling (#5417)
* fix: theme query and updated pixel dimensions
* add no-ui-fullscreen key/action/capability
* protocol core
* integration test harness
* fix integration tests
* fix flaky tests
* nested ui (dimming) and directional focus initial implementation
* integration tests for nested ui dimming and directional focus
* initial full screen nesteed implementation
* fix: keep hidden floating panes hidden across nested no-ui fullscreen
* fix integration tests
* no ui fullscreen integration tests
* hardening behavior/tests
* fix(nested): re-derive descend/dim on host tab switch and new-tab so clicking dimmed chrome ascends
* initial modal implementation
* initial ui improvements
* fix integration tests
* improve nested selection ui
* nested session modal refactoring and tests
* improve integration test speed somewhat
* some ui adjustments
* simplify full/auto nested session handling
* hints in compact-bar
* guest stdin leak fix
* allow floating panes to be fullscreen
* make nested session handling configurable
* protocol reannounce
* refactor: naming confusion
* improve ux somewhat
* rustfmt
* merge fixes
* improve integration test rate limiting (fix ci)
* add pr
Diffstat (limited to 'zellij-utils/src/plugin_api/action.rs')
| -rw-r--r-- | zellij-utils/src/plugin_api/action.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/action.rs b/zellij-utils/src/plugin_api/action.rs index f1d71222..c11b56f1 100644 --- a/zellij-utils/src/plugin_api/action.rs +++ b/zellij-utils/src/plugin_api/action.rs @@ -298,6 +298,12 @@ impl TryFrom<ProtobufAction> for Action { None => Ok(Action::ToggleFocusFullscreen), } }, + Some(ProtobufActionName::ToggleFocusNoUiFullscreen) => { + match protobuf_action.optional_payload { + Some(_) => Err("ToggleFocusNoUiFullscreen should not have a payload"), + None => Ok(Action::ToggleFocusNoUiFullscreen), + } + }, Some(ProtobufActionName::TogglePaneFrames) => match protobuf_action.optional_payload { Some(_) => Err("TogglePaneFrames should not have a payload"), None => Ok(Action::TogglePaneFrames), @@ -1092,6 +1098,20 @@ impl TryFrom<ProtobufAction> for Action { }, _ => Err("Wrong payload for Action::NewInPlacePane"), }, + Some(ProtobufActionName::FocusHostSession) => match protobuf_action.optional_payload { + Some(_) => Err("FocusHostSession should not have a payload"), + None => Ok(Action::FocusHostSession), + }, + Some(ProtobufActionName::FocusGuestSession) => match protobuf_action.optional_payload { + Some(_) => Err("FocusGuestSession should not have a payload"), + None => Ok(Action::FocusGuestSession), + }, + Some(ProtobufActionName::ToggleHostFullscreen) => { + match protobuf_action.optional_payload { + Some(_) => Err("ToggleHostFullscreen should not have a payload"), + None => Ok(Action::ToggleHostFullscreen), + } + }, _ => Err("Unknown Action"), } } @@ -1148,6 +1168,7 @@ impl TryFrom<Action> for ProtobufAction { | Action::ClearScreenByPaneId { .. } | Action::EditScrollbackByPaneId { .. } | Action::ToggleFocusFullscreenByPaneId { .. } + | Action::ToggleFocusNoUiFullscreenByPaneId { .. } | Action::TogglePaneEmbedOrFloatingByPaneId { .. } | Action::CloseFocusByPaneId { .. } | Action::RenamePaneByPaneId { .. } @@ -1323,6 +1344,10 @@ impl TryFrom<Action> for ProtobufAction { name: ProtobufActionName::ToggleFocusFullscreen as i32, optional_payload: None, }), + Action::ToggleFocusNoUiFullscreen => Ok(ProtobufAction { + name: ProtobufActionName::ToggleFocusNoUiFullscreen as i32, + optional_payload: None, + }), Action::TogglePaneFrames => Ok(ProtobufAction { name: ProtobufActionName::TogglePaneFrames as i32, optional_payload: None, @@ -1960,6 +1985,18 @@ impl TryFrom<Action> for ProtobufAction { )), }) }, + Action::FocusHostSession => Ok(ProtobufAction { + name: ProtobufActionName::FocusHostSession as i32, + optional_payload: None, + }), + Action::FocusGuestSession => Ok(ProtobufAction { + name: ProtobufActionName::FocusGuestSession as i32, + optional_payload: None, + }), + Action::ToggleHostFullscreen => Ok(ProtobufAction { + name: ProtobufActionName::ToggleHostFullscreen as i32, + optional_payload: None, + }), Action::NoOp | Action::Confirm | Action::NewInPlacePluginPane { |
