pub fn parse_target(value: &str) -> Result<BrowserTarget>Expand description
Parse a positional <browser>[/<tab>] argument.
Parse precedence — first match wins:
- URL scheme (
ws://,wss://,http://,https://) →BrowserSelector::Url, no tab. - Absolute path that exists →
BrowserSelector::ExecutablePath, no tab. - Value containing
/after position 0 → split on first/: left is parsed as a bare selector, right is validated as a tab name. - Matches a
Kind→BrowserSelector::Kind, no tab. - Otherwise
BrowserSelector::Name, no tab.
Backward compat: any value without an embedded / parses identically
to parse.