aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api/plugin_command.proto
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2025-01-30 17:04:36 +0100
committerGitHub <noreply@github.com>2025-01-30 17:04:36 +0100
commitc4cb9d3d8138346f3257fdcdd6a8f9967b88a402 (patch)
treeafafe8f7184e2c29bbfa1fe2f81d86c9d23a9fdc /zellij-utils/src/plugin_api/plugin_command.proto
parentdocs(changelog): stacked resize (diff)
downloadsl0ppij-c4cb9d3d8138346f3257fdcdd6a8f9967b88a402.tar.gz
sl0ppij-c4cb9d3d8138346f3257fdcdd6a8f9967b88a402.tar.xz
sl0ppij-c4cb9d3d8138346f3257fdcdd6a8f9967b88a402.zip
feat(plugins): API to change floating pane coordinates (#3958)
* basic functionality through the cli * added to plugin api * add display area and viewport size to TabInfo * fix tests and add new one * some cleanups * refactor: extract pane_id parsing logic * style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
-rw-r--r--zellij-utils/src/plugin_api/plugin_command.proto11
1 files changed, 11 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto
index 7572476d..d0d1841a 100644
--- a/zellij-utils/src/plugin_api/plugin_command.proto
+++ b/zellij-utils/src/plugin_api/plugin_command.proto
@@ -130,6 +130,7 @@ enum CommandName {
ChangeHostFolder = 114;
SetFloatingPanePinned = 115;
StackPanes = 116;
+ ChangeFloatingPanesCoordinates = 117;
}
message PluginCommand {
@@ -216,9 +217,14 @@ message PluginCommand {
ChangeHostFolderPayload change_host_folder_payload = 89;
SetFloatingPanePinnedPayload set_floating_pane_pinned_payload = 90;
StackPanesPayload stack_panes_payload = 91;
+ ChangeFloatingPanesCoordinatesPayload change_floating_panes_coordinates_payload = 92;
}
}
+message ChangeFloatingPanesCoordinatesPayload {
+ repeated PaneIdAndFloatingPaneCoordinates pane_ids_and_floating_panes_coordinates = 1;
+}
+
message StackPanesPayload {
repeated PaneId pane_ids = 1;
}
@@ -488,6 +494,11 @@ message MovePayload {
resize.MoveDirection direction = 1;
}
+message PaneIdAndFloatingPaneCoordinates {
+ PaneId pane_id = 1;
+ FloatingPaneCoordinates floating_pane_coordinates = 2;
+}
+
message IdAndNewName {
uint32 id = 1; // pane id or tab index
string new_name = 2;