aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api/plugin_command.proto
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-08-29 17:35:21 +0200
committerGitHub <noreply@github.com>2024-08-29 17:35:21 +0200
commit1776d240dade5ef1d254651ba53d0ab6d99e10ff (patch)
treece86a9254abdd7d21682999d81111cf2443db09e /zellij-utils/src/plugin_api/plugin_command.proto
parentdocs(changelog): reload config options at runtime (diff)
downloadsl0ppij-1776d240dade5ef1d254651ba53d0ab6d99e10ff.tar.gz
sl0ppij-1776d240dade5ef1d254651ba53d0ab6d99e10ff.tar.xz
sl0ppij-1776d240dade5ef1d254651ba53d0ab6d99e10ff.zip
feat(plugins): add plugin APIs to affect other panes (#3576)
* resize_pane_with_id and close_pane_with_id * focus_pane_with_id and edit_scrollback_for_pane_with_id * write_to_pane_id and write_chars_to_pane_id * lots more commands * style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
-rw-r--r--zellij-utils/src/plugin_api/plugin_command.proto100
1 files changed, 100 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto
index be47f567..6e77643b 100644
--- a/zellij-utils/src/plugin_api/plugin_command.proto
+++ b/zellij-utils/src/plugin_api/plugin_command.proto
@@ -103,6 +103,22 @@ enum CommandName {
ShowPaneWithId = 89;
OpenCommandPaneBackground = 90;
RerunCommandPane = 91;
+ ResizePaneIdWithDirection = 92;
+ EditScrollbackForPaneWithId = 93;
+ WriteToPaneId = 94;
+ WriteCharsToPaneId = 95;
+ MovePaneWithPaneId = 96;
+ MovePaneWithPaneIdInDirection = 97;
+ ClearScreenForPaneId = 98;
+ ScrollUpInPaneId = 99;
+ ScrollDownInPaneId = 100;
+ ScrollToTopInPaneId = 101;
+ ScrollToBottomInPaneId = 102;
+ PageScrollUpInPaneId = 103;
+ PageScrollDownInPaneId = 104;
+ TogglePaneIdFullscreen = 105;
+ TogglePaneEmbedOrEjectForPaneId = 106;
+ CloseTabWithIndex = 107;
}
message PluginCommand {
@@ -165,9 +181,93 @@ message PluginCommand {
ShowPaneWithIdPayload show_pane_with_id_payload = 65;
OpenCommandPanePayload open_command_pane_background_payload = 66;
RerunCommandPanePayload rerun_command_pane_payload = 67;
+ ResizePaneIdWithDirectionPayload resize_pane_id_with_direction_payload = 68;
+ EditScrollbackForPaneWithIdPayload edit_scrollback_for_pane_with_id_payload = 69;
+ WriteToPaneIdPayload write_to_pane_id_payload = 70;
+ WriteCharsToPaneIdPayload write_chars_to_pane_id_payload = 71;
+ MovePaneWithPaneIdPayload move_pane_with_pane_id_payload = 72;
+ MovePaneWithPaneIdInDirectionPayload move_pane_with_pane_id_in_direction_payload = 73;
+ ClearScreenForPaneIdPayload clear_screen_for_pane_id_payload = 74;
+ ScrollUpInPaneIdPayload scroll_up_in_pane_id_payload = 75;
+ ScrollDownInPaneIdPayload scroll_down_in_pane_id_payload = 76;
+ ScrollToTopInPaneIdPayload scroll_to_top_in_pane_id_payload = 77;
+ ScrollToBottomInPaneIdPayload scroll_to_bottom_in_pane_id_payload = 78;
+ PageScrollUpInPaneIdPayload page_scroll_up_in_pane_id_payload = 79;
+ PageScrollDownInPaneIdPayload page_scroll_down_in_pane_id_payload = 80;
+ TogglePaneIdFullscreenPayload toggle_pane_id_fullscreen_payload = 81;
+ TogglePaneEmbedOrEjectForPaneIdPayload toggle_pane_embed_or_eject_for_pane_id_payload = 82;
+ CloseTabWithIndexPayload close_tab_with_index_payload = 83;
}
}
+message MovePaneWithPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message MovePaneWithPaneIdInDirectionPayload {
+ PaneId pane_id = 1;
+ resize.MoveDirection direction = 2;
+}
+
+message ClearScreenForPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message ScrollUpInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message ScrollDownInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message ScrollToTopInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message ScrollToBottomInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message PageScrollUpInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message PageScrollDownInPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message TogglePaneIdFullscreenPayload {
+ PaneId pane_id = 1;
+}
+
+message TogglePaneEmbedOrEjectForPaneIdPayload {
+ PaneId pane_id = 1;
+}
+
+message CloseTabWithIndexPayload {
+ uint32 tab_index = 1;
+}
+
+message WriteCharsToPaneIdPayload {
+ string chars_to_write = 1;
+ PaneId pane_id = 2;
+}
+
+message WriteToPaneIdPayload {
+ bytes bytes_to_write = 1;
+ PaneId pane_id = 2;
+}
+
+message EditScrollbackForPaneWithIdPayload {
+ PaneId pane_id = 1;
+}
+
+message ResizePaneIdWithDirectionPayload {
+ resize.Resize resize = 1;
+ PaneId pane_id = 2;
+}
+
message ReconfigurePayload {
string config = 1;
bool write_to_disk = 2;