summaryrefslogtreecommitdiffstats
path: root/zellij-utils
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-06-17 14:41:49 +0200
committerGitHub <noreply@github.com>2023-06-17 14:41:49 +0200
commit63e3a1eae2e727a808084d9fe9ff6eca7816ef7e (patch)
tree445840cba9b3193eca8d5fc73e9cffa610f510ca /zellij-utils
parent044519f53740d02b6feabe379bc618a1ce5c4ec2 (diff)
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')
-rw-r--r--zellij-utils/src/errors.rs3
-rw-r--r--zellij-utils/src/input/actions.rs7
2 files changed, 10 insertions, 0 deletions
diff --git a/zellij-utils/src/errors.rs b/zellij-utils/src/errors.rs
index 78468891d..e434067e5 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 f6e080d80..c2071846e 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 {