diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-02-08 17:35:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-08 17:35:55 +0100 |
| commit | 326c8cd3c6566e8fa4acd3a9369c718ce96f6625 (patch) | |
| tree | 805ded9e78a35e9cd1ae91594358c8888a53abe2 /zellij-utils/src/plugin_api/plugin_command.proto | |
| parent | docs(changelog): cwd fixes (diff) | |
| download | sl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.tar.gz sl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.tar.xz sl0ppij-326c8cd3c6566e8fa4acd3a9369c718ce96f6625.zip | |
feat(panes): allow specifying coordinates for a new floating pane through the CLI or plugins (#3122)
* working
* add tests
* add coordinates to all the places
* refactor: move things around:
* style(fmt): rustfmt
* style(code): cleanups
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index b02dd73f..725714f0 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -209,10 +209,12 @@ message UnsubscribePayload { message OpenFilePayload { file.File file_to_open = 1; + optional FloatingPaneCoordinates floating_pane_coordinates = 2; } message OpenCommandPanePayload { command.Command command_to_run = 1; + optional FloatingPaneCoordinates floating_pane_coordinates = 2; } message SwitchTabToPayload { @@ -275,3 +277,20 @@ message IdAndNewName { uint32 id = 1; // pane id or tab index string new_name = 2; } + +message FloatingPaneCoordinates { + optional FixedOrPercentValue x = 1; + optional FixedOrPercentValue y = 2; + optional FixedOrPercentValue width = 3; + optional FixedOrPercentValue height = 4; +} + +message FixedOrPercentValue { + FixedOrPercent type = 1; + uint32 value = 2; +} + +enum FixedOrPercent { + Fixed = 0; + Percent = 1; +} |
