aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api/plugin_command.proto
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-02-11 13:26:33 +0100
committerGitHub <noreply@github.com>2026-02-11 13:26:33 +0100
commit13a82eea6d74d8168e538b8755131ed793a7f054 (patch)
treebb8d2c1b6cd24bf46b84860360c48e6249e21ba1 /zellij-utils/src/plugin_api/plugin_command.proto
parentAllow writing characters, bytes and keys to specific panes from the CLI (#4691) (diff)
downloadsl0ppij-13a82eea6d74d8168e538b8755131ed793a7f054.tar.gz
sl0ppij-13a82eea6d74d8168e538b8755131ed793a7f054.tar.xz
sl0ppij-13a82eea6d74d8168e538b8755131ed793a7f054.zip
CLI commands to query tab ids, names and info (#4695)
* add equivalent tab_id commands to tab_position commands (cli and plugins) * add list-tabs and current-tab-info cli commands * rustfmt * add pr
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
-rw-r--r--zellij-utils/src/plugin_api/plugin_command.proto40
1 files changed, 40 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto
index b450c13f..a2a25f99 100644
--- a/zellij-utils/src/plugin_api/plugin_command.proto
+++ b/zellij-utils/src/plugin_api/plugin_command.proto
@@ -184,6 +184,11 @@ enum CommandName {
GetTabInfo = 189;
GetPaneRunningCommand = 190;
GetPaneCwd = 191;
+ SwitchTabToId = 192;
+ GoToTabWithId = 193;
+ CloseTabWithId = 194;
+ RenameTabWithId = 195;
+ BreakPanesToTabWithId = 196;
}
message PluginCommand {
@@ -317,6 +322,11 @@ message PluginCommand {
GetTabInfoPayload get_tab_info_payload = 140;
GetPaneRunningCommandPayload get_pane_running_command_payload = 141;
GetPaneCwdPayload get_pane_cwd_payload = 142;
+ SwitchTabToIdPayload switch_tab_to_id_payload = 143;
+ GoToTabWithIdPayload go_to_tab_with_id_payload = 144;
+ CloseTabWithIdPayload close_tab_with_id_payload = 145;
+ RenameTabWithIdPayload rename_tab_with_id_payload = 146;
+ BreakPanesToTabWithIdPayload break_panes_to_tab_with_id_payload = 147;
}
}
@@ -749,6 +759,36 @@ enum FixedOrPercent {
Percent = 1;
}
+message SwitchTabToIdPayload {
+ uint64 tab_id = 1;
+}
+
+message GoToTabWithIdPayload {
+ uint64 tab_id = 1;
+}
+
+message CloseTabWithIdPayload {
+ uint64 tab_id = 1;
+}
+
+message RenameTabWithIdPayload {
+ uint64 tab_id = 1;
+ string new_name = 2;
+}
+
+message BreakPanesToTabWithIdPayload {
+ repeated PaneId pane_ids = 1;
+ uint64 tab_id = 2;
+ bool should_change_focus_to_target_tab = 3;
+}
+
+message BreakPanesToTabWithIdResponse {
+ oneof result {
+ uint64 tab_id = 1;
+ bool none = 2;
+ }
+}
+
message CreateTokenResponse {
optional string token = 1;
optional string token_label = 2;