diff options
| author | Aram Drevekenin <aram@poor.dev> | 2026-03-20 17:28:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-20 17:28:36 +0100 |
| commit | 4ba41c085ab9207ed31e72a1ba331bff2bebed99 (patch) | |
| tree | af832d3e2b1c4577525f0276bda83fc9a12612b3 /default-plugins/about/src/active_component.rs | |
| parent | adjust badges location in readme (diff) | |
| download | sl0ppij-4ba41c085ab9207ed31e72a1ba331bff2bebed99.tar.gz sl0ppij-4ba41c085ab9207ed31e72a1ba331bff2bebed99.tar.xz sl0ppij-4ba41c085ab9207ed31e72a1ba331bff2bebed99.zip | |
Release notes and fixes (#4879)
* release notes
* fix some link issues
* rustfmt
* fix click wording
Diffstat (limited to 'default-plugins/about/src/active_component.rs')
| -rw-r--r-- | default-plugins/about/src/active_component.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/default-plugins/about/src/active_component.rs b/default-plugins/about/src/active_component.rs index 6e6c716a..7041ca5a 100644 --- a/default-plugins/about/src/active_component.rs +++ b/default-plugins/about/src/active_component.rs @@ -55,6 +55,16 @@ impl ActiveComponent { run_command(&[&executable.borrow(), &link], Default::default()); None }, + Some(ClickAction::LaunchPlugin(plugin_url)) => { + open_plugin_pane_floating( + &plugin_url, + Default::default(), + None, + Default::default(), + ); + self.left_click_action = Some(ClickAction::LaunchPlugin(plugin_url)); + None + }, None => None, } } @@ -125,6 +135,7 @@ impl ComponentCoordinates { pub enum ClickAction { ChangePage(Box<dyn FnOnce() -> Page>), OpenLink(String, Rc<RefCell<String>>), // (destination, executable) + LaunchPlugin(String), // plugin URL (e.g. "zellij:share") } impl std::fmt::Debug for ClickAction { @@ -134,6 +145,9 @@ impl std::fmt::Debug for ClickAction { ClickAction::OpenLink(destination, executable) => { write!(f, "OpenLink: {}, {:?}", destination, executable) }, + ClickAction::LaunchPlugin(url) => { + write!(f, "LaunchPlugin: {}", url) + }, } } } @@ -148,4 +162,7 @@ impl ClickAction { pub fn new_open_link(destination: String, executable: Rc<RefCell<String>>) -> Self { ClickAction::OpenLink(destination, executable) } + pub fn new_launch_plugin(plugin_url: String) -> Self { + ClickAction::LaunchPlugin(plugin_url) + } } |
