diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-08-26 11:06:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-26 11:06:22 +0200 |
commit | 2dbee21d74e1822d7f852d868cb1956525cb8a22 (patch) | |
tree | 0f158ae0c6420d339f7dceede5f14d0c57d6f98d /zellij-server/src | |
parent | a819e9bf54e89be92f72b7f31cb0857a29b27d39 (diff) |
fix(plugins): various ui fixes (#2731)
Diffstat (limited to 'zellij-server/src')
-rw-r--r-- | zellij-server/src/panes/floating_panes/mod.rs | 5 | ||||
-rw-r--r-- | zellij-server/src/panes/plugin_pane.rs | 2 | ||||
-rw-r--r-- | zellij-server/src/plugins/zellij_exports.rs | 1 |
3 files changed, 2 insertions, 6 deletions
diff --git a/zellij-server/src/panes/floating_panes/mod.rs b/zellij-server/src/panes/floating_panes/mod.rs index 626ec811d..1f2d770bb 100644 --- a/zellij-server/src/panes/floating_panes/mod.rs +++ b/zellij-server/src/panes/floating_panes/mod.rs @@ -872,11 +872,6 @@ impl FloatingPanes { } pub fn get_plugin_pane_id(&self, run_plugin: &RunPlugin) -> Option<PaneId> { let run = Some(Run::Plugin(run_plugin.clone())); - let currently_running_invoked_with: Vec<Option<Run>> = self - .panes - .iter() - .map(|(_, p)| p.invoked_with().clone()) - .collect(); self.panes .iter() .find(|(_id, s_p)| s_p.invoked_with() == &run) diff --git a/zellij-server/src/panes/plugin_pane.rs b/zellij-server/src/panes/plugin_pane.rs index b4e3461e2..8cf428995 100644 --- a/zellij-server/src/panes/plugin_pane.rs +++ b/zellij-server/src/panes/plugin_pane.rs @@ -674,7 +674,7 @@ impl PluginPane { )); } else { messages.push_str(&format!( - "{} {}. {} {}\n", + "{} {}. {} {}", bold_white.paint("This plugin asks permission to:"), orange.paint( permissions diff --git a/zellij-server/src/plugins/zellij_exports.rs b/zellij-server/src/plugins/zellij_exports.rs index c00d1ea50..6ec50c3a5 100644 --- a/zellij-server/src/plugins/zellij_exports.rs +++ b/zellij-server/src/plugins/zellij_exports.rs @@ -1143,6 +1143,7 @@ fn check_command_permission( | PluginCommand::FocusPluginPane(..) | PluginCommand::RenameTerminalPane(..) | PluginCommand::RenamePluginPane(..) + | PluginCommand::SwitchSession(..) | PluginCommand::RenameTab(..) => PermissionType::ChangeApplicationState, _ => return (PermissionStatus::Granted, None), }; |