diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-02 14:24:33 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-02 14:24:33 +0300 |
| commit | 6c0bb273d5d5405a00985621b17e36f8b4d64609 (patch) | |
| tree | ceef5ea8adf337bf3c1e977b133e76cb763c6f1b /src/app/ids.rs | |
| parent | cc88b3b8e5bb9f7d9f23ed6ae85a52fd7b5b9ed6 (diff) | |
feat: support independent multi-client tab views (#3526)
Diffstat (limited to 'src/app/ids.rs')
| -rw-r--r-- | src/app/ids.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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<String> { + pub(crate) fn public_tab_id(&self, ws_idx: usize, tab_idx: usize) -> Option<String> { 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<usize> { + pub(crate) fn parse_workspace_id(&self, id: &str) -> Option<usize> { self.state .workspaces .iter() @@ -66,7 +66,7 @@ impl App { .or_else(|| id.parse::<usize>().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)?; |
