From 6c0bb273d5d5405a00985621b17e36f8b4d64609 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 2 Sep 2026 14:24:33 +0300 Subject: feat: support independent multi-client tab views (#3526) --- src/app/ids.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/app/ids.rs') diff --git a/src/app/ids.rs b/src/app/ids.rs index c33a5fff..df273250 100644 --- a/src/app/ids.rs +++ b/src/app/ids.rs @@ -12,11 +12,11 @@ impl App { .find_map(|(ws_idx, ws)| ws.pane_state(pane_id).map(|pane| (ws_idx, pane))) } - pub(super) fn public_workspace_id(&self, ws_idx: usize) -> String { + pub(crate) fn public_workspace_id(&self, ws_idx: usize) -> String { self.state.workspaces[ws_idx].id.clone() } - pub(super) fn public_tab_id(&self, ws_idx: usize, tab_idx: usize) -> Option { + pub(crate) fn public_tab_id(&self, ws_idx: usize, tab_idx: usize) -> Option { let ws = self.state.workspaces.get(ws_idx)?; let tab_number = ws.public_tab_number(tab_idx)?; Some(crate::workspace::public_tab_id_for_number( @@ -57,7 +57,7 @@ impl App { ) } - pub(super) fn parse_workspace_id(&self, id: &str) -> Option { + pub(crate) fn parse_workspace_id(&self, id: &str) -> Option { self.state .workspaces .iter() @@ -66,7 +66,7 @@ impl App { .or_else(|| id.parse::().ok()?.checked_sub(1)) } - pub(super) fn parse_tab_id(&self, id: &str) -> Option<(usize, usize)> { + pub(crate) fn parse_tab_id(&self, id: &str) -> Option<(usize, usize)> { if let Some(rest) = id.strip_prefix("t_") { let (ws_raw, tab_raw) = rest.rsplit_once('_')?; let ws_idx = self.parse_workspace_id(ws_raw)?; -- cgit v1.2.3