diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 23:31:36 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-11 23:34:20 +0300 |
| commit | fe693f613a23452e68589a4337863f217cc57930 (patch) | |
| tree | 8d60f6c5b0d8b31426c6623cc8b0c2415d481000 /src/workspace.rs | |
| parent | 84c0d003ddb19a8e95e7ad5206771a663913605b (diff) | |
feat: add optional pane border labels
Diffstat (limited to 'src/workspace.rs')
| -rw-r--r-- | src/workspace.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/workspace.rs b/src/workspace.rs index e0513f65..54f94e38 100644 --- a/src/workspace.rs +++ b/src/workspace.rs @@ -408,6 +408,12 @@ impl Workspace { self.tabs.iter().find_map(|tab| tab.panes.get(&pane_id)) } + pub fn pane_state_mut(&mut self, pane_id: PaneId) -> Option<&mut PaneState> { + self.tabs + .iter_mut() + .find_map(|tab| tab.panes.get_mut(&pane_id)) + } + pub fn runtime(&self, pane_id: PaneId) -> Option<&PaneRuntime> { self.tabs.iter().find_map(|tab| tab.runtimes.get(&pane_id)) } |
