summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/plugins/zellij_exports.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-02-21 10:17:06 +0100
committerAram Drevekenin <aram@poor.dev>2024-02-21 10:17:06 +0100
commit46886c12d41fbad151a4c5712c7188c4c985459a (patch)
treeabe83aa29fdf3ab3526b36e28e41ef4503f7737a /zellij-server/src/plugins/zellij_exports.rs
parent8183fe1f1cef448aecc57a1024d63d24b89c0763 (diff)
style(code): cleanups
Diffstat (limited to 'zellij-server/src/plugins/zellij_exports.rs')
-rw-r--r--zellij-server/src/plugins/zellij_exports.rs12
1 files changed, 1 insertions, 11 deletions
diff --git a/zellij-server/src/plugins/zellij_exports.rs b/zellij-server/src/plugins/zellij_exports.rs
index 89fe8fcb8..c0c5e5999 100644
--- a/zellij-server/src/plugins/zellij_exports.rs
+++ b/zellij-server/src/plugins/zellij_exports.rs
@@ -27,8 +27,6 @@ use zellij_utils::{
ipc::{ClientToServerMsg, IpcSenderWithContext},
};
-use url::Url;
-
use crate::{panes::PaneId, screen::ScreenInstruction};
use zellij_utils::{
@@ -41,7 +39,7 @@ use zellij_utils::{
input::{
actions::Action,
command::{RunCommand, RunCommandAction, TerminalAction},
- layout::{Layout, PluginUserConfiguration, RunPlugin, RunPluginOrAlias, RunPluginLocation},
+ layout::{Layout, RunPluginOrAlias},
plugins::PluginType,
},
plugin_api::{
@@ -1226,14 +1224,6 @@ fn start_or_reload_plugin(env: &ForeignFunctionEnv, url: &str) -> Result<()> {
)
};
let cwd = std::env::current_dir().unwrap_or_else(|_| PathBuf::from("."));
- // let url = Url::parse(&url).map_err(|e| anyhow!("Failed to parse url: {}", e))?;
-// let run_plugin_location = RunPluginLocation::parse(url.as_str(), Some(cwd))
-// .map_err(|e| anyhow!("Failed to parse plugin location: {}", e))?;
-// let run_plugin = RunPlugin {
-// location: run_plugin_location,
-// _allow_exec_host_cmd: false,
-// configuration: PluginUserConfiguration::new(BTreeMap::new()), // TODO: allow passing configuration
-// };
let run_plugin_or_alias = RunPluginOrAlias::from_url(url, &None, None, Some(cwd))
.map_err(|e| anyhow!("Failed to parse plugin location: {}", e))?;
let action = Action::StartOrReloadPlugin(run_plugin_or_alias);