diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-09-16 21:02:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-16 21:02:04 +0200 |
| commit | d78f3586dd3de75b0ae6a71500b6f15a1ef8d71d (patch) | |
| tree | 6e12313db4515a03f7653c099d1239e34ae4eb86 /zellij-utils/src/plugin_api/plugin_command.proto | |
| parent | docs(readme): update sponsors (diff) | |
| download | sl0ppij-d78f3586dd3de75b0ae6a71500b6f15a1ef8d71d.tar.gz sl0ppij-d78f3586dd3de75b0ae6a71500b6f15a1ef8d71d.tar.xz sl0ppij-d78f3586dd3de75b0ae6a71500b6f15a1ef8d71d.zip | |
feat(plugins): APIs to break multiple panes into a new tab or an existing tab (#3610)
* feat(plugins): break multiple panes to a new tab
* fix(layouts): properly ignore run instructions when breaking panes
* feat(plugins): break multiple panes to existing tab
* feat(apis): allow these methods to also specify whether they want focus changed to the tab
* various fixes
* allow specifying name for the new tab when breaking out panes
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/plugin_command.proto')
| -rw-r--r-- | zellij-utils/src/plugin_api/plugin_command.proto | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/plugin_command.proto b/zellij-utils/src/plugin_api/plugin_command.proto index 6e77643b..758d4e77 100644 --- a/zellij-utils/src/plugin_api/plugin_command.proto +++ b/zellij-utils/src/plugin_api/plugin_command.proto @@ -119,6 +119,8 @@ enum CommandName { TogglePaneIdFullscreen = 105; TogglePaneEmbedOrEjectForPaneId = 106; CloseTabWithIndex = 107; + BreakPanesToNewTab = 108; + BreakPanesToTabWithIndex = 109; } message PluginCommand { @@ -197,9 +199,23 @@ message PluginCommand { 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; + BreakPanesToNewTabPayload break_panes_to_new_tab_payload = 84; + BreakPanesToTabWithIndexPayload break_panes_to_tab_with_index_payload = 85; } } +message BreakPanesToTabWithIndexPayload { + repeated PaneId pane_ids = 1; + uint32 tab_index = 2; + bool should_change_focus_to_target_tab = 3; +} + +message BreakPanesToNewTabPayload { + repeated PaneId pane_ids = 1; + bool should_change_focus_to_new_tab = 2; + optional string new_tab_name = 3; +} + message MovePaneWithPaneIdPayload { PaneId pane_id = 1; } |
