diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-06-09 12:33:16 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2025-06-09 12:34:38 +0200 |
| commit | 6967ffaa713c424e980720568c528b8a3fe79988 (patch) | |
| tree | 6a62b06f0b83e464778b8dd570cc7853b33282f7 /src/widgets/command.rs | |
| parent | chore(deps): update flake deps (diff) | |
| download | sl0pstatus-6967ffaa713c424e980720568c528b8a3fe79988.tar.gz sl0pstatus-6967ffaa713c424e980720568c528b8a3fe79988.tar.xz sl0pstatus-6967ffaa713c424e980720568c528b8a3fe79988.zip | |
chore(deps): update to rust 1.87.0
Diffstat (limited to '')
| -rw-r--r-- | src/widgets/command.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/widgets/command.rs b/src/widgets/command.rs index c5a902f..40ced99 100644 --- a/src/widgets/command.rs +++ b/src/widgets/command.rs @@ -64,6 +64,20 @@ impl CommandWidget { impl Widget for CommandWidget { fn process(&self, name: &str, state: &ZellijState) -> String { + let active_tab = state.tabs.iter().find(|t| t.active); + let active_tab = active_tab.as_ref().unwrap(); + let active_pane = state + .panes + .panes + .get(&active_tab.position) + .cloned() + .unwrap() + .into_iter() + .find(|p| p.is_focused) + .unwrap(); + + tracing::debug!("{:?}", active_pane.encode_to_kdl()); + let command_config = match self.config.get(name) { Some(cc) => cc, None => { |
