Skip to content

Commit

Permalink
show plugin name in plugin actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Zshoham committed Dec 7, 2024
1 parent c6e0d3c commit 24ac75e
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ pub fn actions_to_string(actions: Vec<Action>) -> String {
Action::LeftClick(position) => format!("LeftClick({:?})", position),
Action::RightClick(position) => format!("RightClick({:?})", position),
Action::MiddleClick(position) => format!("MiddleClick({:?})", position),
Action::LaunchOrFocusPlugin(_, _, _, _, _) => "LaunchOrFocusPlugin".to_string(),
Action::LaunchOrFocusPlugin(plugin, _, _, _, _) => {
format!("LaunchOrFocusPlugin({})", plugin.location_string())
}
Action::LaunchPlugin(_, _, _, _, _) => "LaunchPlugin".to_string(),
Action::LeftMouseRelease(position) => format!("LeftMouseRelease({:?})", position),
Action::RightMouseRelease(position) => format!("RightMouseRelease({:?})", position),
Expand All @@ -121,10 +123,18 @@ pub fn actions_to_string(actions: Vec<Action>) -> String {
Action::PreviousSwapLayout => "PreviousSwapLayout".to_string(),
Action::NextSwapLayout => "NextSwapLayout".to_string(),
Action::QueryTabNames => "QueryTabNames".to_string(),
Action::NewTiledPluginPane(_, _, _, _) => "NewTiledPluginPane".to_string(),
Action::NewFloatingPluginPane(_, _, _, _, _) => "NewFloatingPluginPane".to_string(),
Action::NewInPlacePluginPane(_, _, _) => "NewInPlacePluginPane".to_string(),
Action::StartOrReloadPlugin(_) => "StartOrReloadPlugin".to_string(),
Action::NewTiledPluginPane(plugin, _, _, _) => {
format!("NewTiledPluginPane({})", plugin.location_string())
}
Action::NewFloatingPluginPane(plugin, _, _, _, _) => {
format!("NewFloatingPluginPane({})", plugin.location_string())
}
Action::NewInPlacePluginPane(plugin, _, _) => {
format!("NewInPlacePluginPane({})", plugin.location_string())
}
Action::StartOrReloadPlugin(plugin) => {
format!("StartOrReloadPlugin({})", plugin.location_string())
}
Action::CloseTerminalPane(id) => format!("CloseTerminalPane({})", id),
Action::ClosePluginPane(id) => format!("ClosePluginPane({})", id),
Action::FocusTerminalPaneWithId(id, force) => {
Expand Down

0 comments on commit 24ac75e

Please sign in to comment.