diff options
| author | Aram Drevekenin <aram@poor.dev> | 2025-06-26 13:51:17 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-26 13:51:17 +0200 |
| commit | 11015c8fe4db1a8ffe77e0c569f0e026c53d9776 (patch) | |
| tree | 82c8513128e4be58cf6ac991b9872c9b44be5b46 /zellij-tile | |
| parent | docs(changelog): terminal performance (diff) | |
| download | sl0ppij-11015c8fe4db1a8ffe77e0c569f0e026c53d9776.tar.gz sl0ppij-11015c8fe4db1a8ffe77e0c569f0e026c53d9776.tar.xz sl0ppij-11015c8fe4db1a8ffe77e0c569f0e026c53d9776.zip | |
feat(plugin-api): allow replacing pane with existing pane (#4246)
* work
* make the api work
* some cleanups
* close pane
* style(fmt): rustfmt
Diffstat (limited to 'zellij-tile')
| -rw-r--r-- | zellij-tile/src/shim.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs index 4a0945ea..608fa2e7 100644 --- a/zellij-tile/src/shim.rs +++ b/zellij-tile/src/shim.rs @@ -1451,6 +1451,14 @@ pub fn clear_key_presses_intercepts() { unsafe { host_run_plugin_command() }; } +pub fn replace_pane_with_existing_pane(pane_id_to_replace: PaneId, existing_pane_id: PaneId) { + let plugin_command = + PluginCommand::ReplacePaneWithExistingPane(pane_id_to_replace, existing_pane_id); + let protobuf_plugin_command: ProtobufPluginCommand = plugin_command.try_into().unwrap(); + object_to_stdout(&protobuf_plugin_command.encode_to_vec()); + unsafe { host_run_plugin_command() }; +} + // Utility Functions #[allow(unused)] |
