diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-02-25 09:48:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-25 09:48:47 +0100 |
| commit | 6e0dd8e51cae440c1453c983740abc6869c46029 (patch) | |
| tree | 7b7a4aaef1fc5df6ad7c56e572aad50f19858f46 /zellij-utils/src/cli.rs | |
| parent | fix: respect user's cursor choice in web client even when terminal overrides ... (diff) | |
| download | sl0ppij-6e0dd8e51cae440c1453c983740abc6869c46029.tar.gz sl0ppij-6e0dd8e51cae440c1453c983740abc6869c46029.tar.xz sl0ppij-6e0dd8e51cae440c1453c983740abc6869c46029.zip | |
Atomic show hide floating panes (#4764)
* atomic show/hide floating panes (cli, plugin API, keybinding)
* rustfmt
* add pr
Diffstat (limited to 'zellij-utils/src/cli.rs')
| -rw-r--r-- | zellij-utils/src/cli.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/zellij-utils/src/cli.rs b/zellij-utils/src/cli.rs index 7b64e147..f8bf79ac 100644 --- a/zellij-utils/src/cli.rs +++ b/zellij-utils/src/cli.rs @@ -905,6 +905,20 @@ pub enum CliAction { TogglePaneEmbedOrFloating, /// Toggle the visibility of all floating panes in the current Tab, open one if none exist ToggleFloatingPanes, + /// Show all floating panes in the specified tab (or active tab if tab_id is not provided). + /// + /// Returns exit code 0 if state was changed, 2 if already visible, 1 if tab not found. + ShowFloatingPanes { + #[clap(short, long, value_parser)] + tab_id: Option<usize>, + }, + /// Hide all floating panes in the specified tab (or active tab if tab_id is not provided). + /// + /// Returns exit code 0 if state was changed, 2 if already hidden, 1 if tab not found. + HideFloatingPanes { + #[clap(short, long, value_parser)] + tab_id: Option<usize>, + }, /// Close the focused pane. ClosePane, /// Renames the focused pane |
