diff options
| author | Aram Drevekenin <aram@poor.dev> | 2023-06-17 14:41:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-17 14:41:49 +0200 |
| commit | 63e3a1eae2e727a808084d9fe9ff6eca7816ef7e (patch) | |
| tree | 445840cba9b3193eca8d5fc73e9cffa610f510ca /zellij-utils/src | |
| parent | docs(changelog): debounced watcher (diff) | |
| download | sl0ppij-63e3a1eae2e727a808084d9fe9ff6eca7816ef7e.tar.gz sl0ppij-63e3a1eae2e727a808084d9fe9ff6eca7816ef7e.tar.xz sl0ppij-63e3a1eae2e727a808084d9fe9ff6eca7816ef7e.zip | |
feat(plugins): more plugin api methods (#2550)
* feat(plugins): close, focus, rename pane, rename tab and show_self api methods
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src')
| -rw-r--r-- | zellij-utils/src/errors.rs | 3 | ||||
| -rw-r--r-- | zellij-utils/src/input/actions.rs | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/zellij-utils/src/errors.rs b/zellij-utils/src/errors.rs index 78468891..e434067e 100644 --- a/zellij-utils/src/errors.rs +++ b/zellij-utils/src/errors.rs @@ -335,6 +335,9 @@ pub enum ScreenContext { RequestStateUpdateForPlugins, LaunchOrFocusPlugin, SuppressPane, + FocusPaneWithId, + RenamePane, + RenameTab, } /// Stack call representations corresponding to the different types of [`PtyInstruction`]s. diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs index f6e080d8..c2071846 100644 --- a/zellij-utils/src/input/actions.rs +++ b/zellij-utils/src/input/actions.rs @@ -233,6 +233,13 @@ pub enum Action { NewTiledPluginPane(RunPluginLocation, Option<String>), // String is an optional name NewFloatingPluginPane(RunPluginLocation, Option<String>), // String is an optional name StartOrReloadPlugin(RunPlugin), + CloseTerminalPane(u32), + ClosePluginPane(u32), + FocusTerminalPaneWithId(u32, bool), // bool is should_float_if_hidden + FocusPluginPaneWithId(u32, bool), // bool is should_float_if_hidden + RenameTerminalPane(u32, Vec<u8>), + RenamePluginPane(u32, Vec<u8>), + RenameTab(u32, Vec<u8>), } impl Action { |
