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-server/src/plugins | |
| 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-server/src/plugins')
| -rw-r--r-- | zellij-server/src/plugins/zellij_exports.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/zellij-server/src/plugins/zellij_exports.rs b/zellij-server/src/plugins/zellij_exports.rs index d850145c..318b2acc 100644 --- a/zellij-server/src/plugins/zellij_exports.rs +++ b/zellij-server/src/plugins/zellij_exports.rs @@ -337,6 +337,8 @@ fn host_run_plugin_command(mut caller: Caller<'_, PluginEnv>) { PluginCommand::PageScrollUp => page_scroll_up(env), PluginCommand::PageScrollDown => page_scroll_down(env), PluginCommand::ToggleFocusFullscreen => toggle_focus_fullscreen(env), + PluginCommand::ToggleFocusNoUiFullscreen => toggle_focus_no_ui_fullscreen(env), + PluginCommand::FocusHostSession => focus_host_session(env), PluginCommand::TogglePaneFrames => toggle_pane_frames(env), PluginCommand::SetPaneFrameStyle(pane_frame_style) => { set_pane_frame_style(env, pane_frame_style) @@ -3158,6 +3160,24 @@ fn toggle_focus_fullscreen(env: &PluginEnv) { apply_action!(action, error_msg, env); } +fn toggle_focus_no_ui_fullscreen(env: &PluginEnv) { + let error_msg = || { + format!( + "failed to toggle no-ui full screen in plugin {}", + env.name() + ) + }; + let action = Action::ToggleFocusNoUiFullscreen; + apply_action!(action, error_msg, env); +} + +fn focus_host_session(env: &PluginEnv) { + env.senders + .send_to_screen(ScreenInstruction::FocusHostSession(env.client_id, None)) + .with_context(|| format!("failed to focus host session from plugin {}", env.name())) + .non_fatal(); +} + fn toggle_pane_frames(env: &PluginEnv) { let error_msg = || format!("failed to toggle full screen in plugin {}", env.name()); let action = Action::TogglePaneFrames; @@ -5535,6 +5555,8 @@ fn check_command_permission( | PluginCommand::PageScrollDown | PluginCommand::PageScrollDownInPaneId(..) | PluginCommand::ToggleFocusFullscreen + | PluginCommand::ToggleFocusNoUiFullscreen + | PluginCommand::FocusHostSession | PluginCommand::TogglePaneIdFullscreen(..) | PluginCommand::TogglePaneFrames | PluginCommand::SetPaneFrameStyle(..) |
