From bf6b6d779a63d8952d8db0a7de5daa3454984620 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sun, 29 Mar 2026 19:54:52 +0300 Subject: feat(api): use compact public workspace and pane ids --- src/cli.rs | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 724a8f57..6ce6853e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -662,24 +662,10 @@ fn send_request(request: &Request) -> std::io::Result { } fn normalize_workspace_id(value: &str) -> String { - if value.starts_with("w_") { - return value.to_string(); - } - if let Ok(number) = value.parse::() { - return format!("w_{number}"); - } value.to_string() } fn normalize_pane_id(value: &str) -> String { - if value.starts_with("p_") { - return value.to_string(); - } - if let Some((workspace, pane)) = value.split_once('-') { - if workspace.parse::().is_ok() && pane.parse::().is_ok() { - return format!("p_{workspace}_{pane}"); - } - } value.to_string() } -- cgit v1.2.3