From d35c642ef36ee5ac2afe7c1b18ad5a717bc807d8 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 13 Jun 2026 01:59:24 +0300 Subject: feat: add pane move api and cli refs #299 --- src/app/ids.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app/ids.rs') diff --git a/src/app/ids.rs b/src/app/ids.rs index 0ce02c1f..5e20c388 100644 --- a/src/app/ids.rs +++ b/src/app/ids.rs @@ -88,6 +88,10 @@ impl App { } pub(super) fn parse_pane_id(&self, id: &str) -> Option<(usize, crate::layout::PaneId)> { + if let Some(alias) = self.state.public_pane_id_aliases.get(id).copied() { + return self.find_pane(alias).map(|(ws_idx, _)| (ws_idx, alias)); + } + if let Some(rest) = id.strip_prefix("p_") { if let Some((ws_raw, pane_raw)) = rest.rsplit_once('_') { let ws_idx = self.parse_workspace_id(ws_raw)?; -- cgit v1.2.3