diff options
| author | Jae-Heon Ji <32578710+jaeheonji@users.noreply.github.com> | 2023-11-02 21:09:18 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-02 13:09:18 +0100 |
| commit | c87ff8cb2e6667648fc773dd2a811c25579c4ca0 (patch) | |
| tree | 8757e0a0e69390e9ec6fea67b4eedcce44ff9c8b /zellij-utils/src/input/plugins.rs | |
| parent | docs(changelog): plugin ui components (diff) | |
| download | sl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.tar.gz sl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.tar.xz sl0ppij-c87ff8cb2e6667648fc773dd2a811c25579c4ca0.zip | |
feat: load plugins from the web (#2863)
* feat: add basic downloader
* feat: add download progress bar
* feat: move crate location and some fix
* feat: add downloader in layout
* chore: remove comment
* Revert "feat: add downloader in layout"
This reverts commit ac4efb937e88cdb31fe7f18919f9fbe3857054b0.
* feat: change http request module to surf
* feat: add some function
* feat: add plugin download in wasm
* feat: add error handling
* test: update unittest
* feat: change hash library from ring to highway
* fix: openssl-sys issue for surf-client
* minor adjustments
* style(fmt): rustfmt
* move openssl-sys back to dependencies
---------
Co-authored-by: Aram Drevekenin <aram@poor.dev>
Diffstat (limited to 'zellij-utils/src/input/plugins.rs')
| -rw-r--r-- | zellij-utils/src/input/plugins.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/zellij-utils/src/input/plugins.rs b/zellij-utils/src/input/plugins.rs index f12aba2a..2a262222 100644 --- a/zellij-utils/src/input/plugins.rs +++ b/zellij-utils/src/input/plugins.rs @@ -55,6 +55,13 @@ impl PluginsConfig { userspace_configuration: run.configuration.clone(), ..plugin }), + RunPluginLocation::Remote(_) => Some(PluginConfig { + path: PathBuf::new(), + run: PluginType::Pane(None), + _allow_exec_host_cmd: run._allow_exec_host_cmd, + location: run.location.clone(), + userspace_configuration: run.configuration.clone(), + }), } } @@ -231,7 +238,7 @@ pub enum PluginsConfigError { DuplicatePlugins(PluginTag), #[error("Failed to parse url: {0:?}")] InvalidUrl(#[from] url::ParseError), - #[error("Only 'file:' and 'zellij:' url schemes are supported for plugin lookup. '{0}' does not match either.")] + #[error("Only 'file:', 'http(s):' and 'zellij:' url schemes are supported for plugin lookup. '{0}' does not match either.")] InvalidUrlScheme(Url), #[error("Could not find plugin at the path: '{0:?}'")] InvalidPluginLocation(PathBuf), |
