diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-19 23:52:20 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-19 23:56:07 +0300 |
| commit | 3f80947678a9723434aa7fddfe23750b5393e24c (patch) | |
| tree | 6f463797132acfc51dfb6e135820a052954b4f13 /src/app/ids.rs | |
| parent | f76f895efe5b9f19aa9db909354c6c0f2195630b (diff) | |
feat: make agent automation a first-class cli primitive
Diffstat (limited to 'src/app/ids.rs')
| -rw-r--r-- | src/app/ids.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/app/ids.rs b/src/app/ids.rs index 9dc4371e..4bebedc6 100644 --- a/src/app/ids.rs +++ b/src/app/ids.rs @@ -141,4 +141,12 @@ impl App { .find_map(|(pane_id, number)| (*number == pane_number).then_some(*pane_id))?; Some((ws_idx, pane_id)) } + + pub(crate) fn parse_current_public_pane_id( + &self, + id: &str, + ) -> Option<(usize, crate::layout::PaneId)> { + let (ws_idx, pane_id) = self.parse_pane_id(id)?; + (self.public_pane_id(ws_idx, pane_id).as_deref() == Some(id)).then_some((ws_idx, pane_id)) + } } |
