diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-29 19:54:52 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-03-29 19:54:52 +0300 |
| commit | bf6b6d779a63d8952d8db0a7de5daa3454984620 (patch) | |
| tree | 06776548463ce0b70177f85ace997d6e33f07533 /src/cli.rs | |
| parent | a5847a8039d2754dd2908a13e4625b31f7404d9a (diff) | |
feat(api): use compact public workspace and pane ids
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -662,24 +662,10 @@ fn send_request(request: &Request) -> std::io::Result<serde_json::Value> { } fn normalize_workspace_id(value: &str) -> String { - if value.starts_with("w_") { - return value.to_string(); - } - if let Ok(number) = value.parse::<usize>() { - 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::<usize>().is_ok() && pane.parse::<u32>().is_ok() { - return format!("p_{workspace}_{pane}"); - } - } value.to_string() } |
