Insert new tabs below active tab

This commit is contained in:
2026-05-07 18:53:24 -04:00
parent b787486f8e
commit e9ef92c41b
4 changed files with 60 additions and 12 deletions
+13
View File
@@ -51,6 +51,19 @@ impl UrlText {
.and_then(|url| url.host_str().map(str::to_string))
.unwrap_or_else(|| self.value.clone())
}
#[must_use]
pub fn display_url(&self) -> String {
let Ok(url) = Url::parse(&self.value) else {
return self.value.clone();
};
if url.scheme() == "ely" {
return self.value.clone();
}
url.host_str().map(str::to_string).unwrap_or_else(|| self.value.clone())
}
}
impl fmt::Display for UrlText {