diff options
author | Aram Drevekenin <aram@poor.dev> | 2023-11-08 10:37:13 +0100 |
---|---|---|
committer | Aram Drevekenin <aram@poor.dev> | 2023-11-08 10:37:13 +0100 |
commit | 445cadb71ac1e2bb421bbde7187a14d0f8c4f1f4 (patch) | |
tree | eefce17a8208e57a5a99811754b19e400495ec0f | |
parent | e0f7d8893ad04eb23c0b735b525e3baef57b1dce (diff) |
fmtcwd-tweaks
-rw-r--r-- | zellij-server/src/route.rs | 6 | ||||
-rw-r--r-- | zellij-server/src/screen.rs | 4 | ||||
-rw-r--r-- | zellij-utils/src/input/actions.rs | 6 | ||||
-rw-r--r-- | zellij-utils/src/plugin_api/action.rs | 6 |
4 files changed, 5 insertions, 17 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs index cbab1ffac..8c9da6b57 100644 --- a/zellij-server/src/route.rs +++ b/zellij-server/src/route.rs @@ -705,11 +705,7 @@ pub(crate) fn route_action( )) .with_context(err_context)?; }, - Action::LaunchPlugin( - run_plugin, - should_float, - should_open_in_place, - ) => { + Action::LaunchPlugin(run_plugin, should_float, should_open_in_place) => { senders .send_to_screen(ScreenInstruction::LaunchPlugin( run_plugin, diff --git a/zellij-server/src/screen.rs b/zellij-server/src/screen.rs index d89e7eb1d..31613de28 100644 --- a/zellij-server/src/screen.rs +++ b/zellij-server/src/screen.rs @@ -295,8 +295,8 @@ pub enum ScreenInstruction { RequestStateUpdateForPlugins, LaunchOrFocusPlugin(RunPlugin, bool, bool, bool, Option<PaneId>, ClientId), // bools are: should_float, move_to_focused_tab, should_open_in_place Option<PaneId> is the pane id to replace LaunchPlugin(RunPlugin, bool, bool, Option<PaneId>, ClientId), // bools are: should_float, should_open_in_place Option<PaneId> is the pane id to replace - SuppressPane(PaneId, ClientId), // bool is should_float - FocusPaneWithId(PaneId, bool, ClientId), // bool is should_float + SuppressPane(PaneId, ClientId), // bool is should_float + FocusPaneWithId(PaneId, bool, ClientId), // bool is should_float RenamePane(PaneId, Vec<u8>), RenameTab(usize, Vec<u8>), RequestPluginPermissions( diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs index d2ad37437..8fe0a3285 100644 --- a/zellij-utils/src/input/actions.rs +++ b/zellij-utils/src/input/actions.rs @@ -555,11 +555,7 @@ impl Action { _allow_exec_host_cmd: false, configuration: configuration.unwrap_or_default(), }; - Ok(vec![Action::LaunchPlugin( - run_plugin, - floating, - in_place, - )]) + Ok(vec![Action::LaunchPlugin(run_plugin, floating, in_place)]) }, CliAction::RenameSession { name } => Ok(vec![Action::RenameSession(name)]), } diff --git a/zellij-utils/src/plugin_api/action.rs b/zellij-utils/src/plugin_api/action.rs index 0cd0abc2a..dc8c29380 100644 --- a/zellij-utils/src/plugin_api/action.rs +++ b/zellij-utils/src/plugin_api/action.rs @@ -1022,11 +1022,7 @@ impl TryFrom<Action> for ProtobufAction { )), }) }, - Action::LaunchPlugin( - run_plugin, - should_float, - should_open_in_place, - ) => { + Action::LaunchPlugin(run_plugin, should_float, should_open_in_place) => { let url: Url = Url::from(&run_plugin.location); Ok(ProtobufAction { name: ProtobufActionName::LaunchPlugin as i32, |