diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-18 09:32:18 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-01-18 09:34:07 +0100 |
| commit | f73635159598119a67533fda394e49830506cd85 (patch) | |
| tree | 78f3c2b0052af68d4bdcd8b31e548af613d34814 /src/bin | |
| parent | chore: update cargo deps (diff) | |
| download | sl0pstatus-f73635159598119a67533fda394e49830506cd85.tar.gz sl0pstatus-f73635159598119a67533fda394e49830506cd85.tar.xz sl0pstatus-f73635159598119a67533fda394e49830506cd85.zip | |
feat: add pipe widget
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/zjstatus.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/zjstatus.rs b/src/bin/zjstatus.rs index 30a40b0..c4d5267 100644 --- a/src/bin/zjstatus.rs +++ b/src/bin/zjstatus.rs @@ -12,6 +12,7 @@ use zjstatus::{ datetime::DateTimeWidget, mode::ModeWidget, notification::NotificationWidget, + pipe::PipeWidget, session::SessionWidget, swap_layout::SwapLayoutWidget, tabs::TabsWidget, @@ -90,6 +91,7 @@ impl ZellijPlugin for State { self.state = ZellijState { cols: 0, command_results: BTreeMap::new(), + pipe_results: BTreeMap::new(), mode: ModeInfo::default(), panes: PaneManifest::default(), plugin_uuid: uid.to_string(), @@ -307,6 +309,7 @@ fn register_widgets(configuration: &BTreeMap<String, String>) -> BTreeMap<String "datetime".to_owned(), Arc::new(DateTimeWidget::new(configuration)), ); + widget_map.insert("pipe".to_owned(), Arc::new(PipeWidget::new(configuration))); widget_map.insert( "swap_layout".to_owned(), Arc::new(SwapLayoutWidget::new(configuration)), |
