aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-03-13 16:33:25 +0100
committerGitHub <noreply@github.com>2026-03-13 16:33:25 +0100
commitaa5ca34d4b84254c4f22787e671e34dcd376ad17 (patch)
treef21cf7f58854dd741d6c91f6c49a323ec19dc3f7 /zellij-utils/src/plugin_api
parentFix debug-mode stack overflow on Windows (#4843) (diff)
downloadsl0ppij-aa5ca34d4b84254c4f22787e671e34dcd376ad17.tar.gz
sl0ppij-aa5ca34d4b84254c4f22787e671e34dcd376ad17.tar.xz
sl0ppij-aa5ca34d4b84254c4f22787e671e34dcd376ad17.zip
Add `--pane-id` and `--tab-id` to all relevant CLI commands (#4846)
* add missing pane-id and tab-id arguments to all cli actions * rustfmt * fix tests * update e2e snapshots * add pr
Diffstat (limited to 'zellij-utils/src/plugin_api')
-rw-r--r--zellij-utils/src/plugin_api/action.rs43
1 files changed, 33 insertions, 10 deletions
diff --git a/zellij-utils/src/plugin_api/action.rs b/zellij-utils/src/plugin_api/action.rs
index aef9d881..9117bee5 100644
--- a/zellij-utils/src/plugin_api/action.rs
+++ b/zellij-utils/src/plugin_api/action.rs
@@ -1065,8 +1065,33 @@ impl TryFrom<Action> for ProtobufAction {
| Action::Paste { .. }
| Action::GoToTabById { .. }
| Action::CloseTabById { .. }
- | Action::RenameTabById { .. } => {
- Err("WriteToPaneId, WriteCharsToPaneId, Paste, GoToTabById, CloseTabById, and RenameTabById are CLI-only actions, not available in keybindings")
+ | Action::RenameTabById { .. }
+ | Action::ScrollUpByPaneId { .. }
+ | Action::ScrollDownByPaneId { .. }
+ | Action::ScrollToTopByPaneId { .. }
+ | Action::ScrollToBottomByPaneId { .. }
+ | Action::PageScrollUpByPaneId { .. }
+ | Action::PageScrollDownByPaneId { .. }
+ | Action::HalfPageScrollUpByPaneId { .. }
+ | Action::HalfPageScrollDownByPaneId { .. }
+ | Action::ResizeByPaneId { .. }
+ | Action::MovePaneByPaneId { .. }
+ | Action::MovePaneBackwardsByPaneId { .. }
+ | Action::ClearScreenByPaneId { .. }
+ | Action::EditScrollbackByPaneId { .. }
+ | Action::ToggleFocusFullscreenByPaneId { .. }
+ | Action::TogglePaneEmbedOrFloatingByPaneId { .. }
+ | Action::CloseFocusByPaneId { .. }
+ | Action::RenamePaneByPaneId { .. }
+ | Action::UndoRenamePaneByPaneId { .. }
+ | Action::TogglePanePinnedByPaneId { .. }
+ | Action::UndoRenameTabByTabId { .. }
+ | Action::ToggleActiveSyncTabByTabId { .. }
+ | Action::ToggleFloatingPanesByTabId { .. }
+ | Action::PreviousSwapLayoutByTabId { .. }
+ | Action::NextSwapLayoutByTabId { .. }
+ | Action::MoveTabByTabId { .. } => {
+ Err("These are CLI-only actions, not available in keybindings")
},
Action::SwitchToMode { input_mode } => {
let input_mode: ProtobufInputMode = input_mode.try_into()?;
@@ -1157,14 +1182,12 @@ impl TryFrom<Action> for ProtobufAction {
let dump_to_stdout = file_path.is_none();
Ok(ProtobufAction {
name: ProtobufActionName::DumpScreen as i32,
- optional_payload: Some(OptionalPayload::DumpScreenPayload(
- DumpScreenPayload {
- file_path: file_path.unwrap_or_default(),
- include_scrollback,
- pane_id: pane_id.and_then(|p| p.try_into().ok()),
- dump_to_stdout,
- },
- )),
+ optional_payload: Some(OptionalPayload::DumpScreenPayload(DumpScreenPayload {
+ file_path: file_path.unwrap_or_default(),
+ include_scrollback,
+ pane_id: pane_id.and_then(|p| p.try_into().ok()),
+ dump_to_stdout,
+ })),
})
},
Action::EditScrollback => Ok(ProtobufAction {