From 4daeb53dbab84d047f32aeea5e342022992c2973 Mon Sep 17 00:00:00 2001 From: Ali Houssain Sareini Date: Mon, 14 Oct 2024 19:36:51 -0400 Subject: [PATCH] feat: Add support for the 'zed' URL scheme --- crates/gitbutler-tauri/src/open.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/gitbutler-tauri/src/open.rs b/crates/gitbutler-tauri/src/open.rs index 4e806fdf9..d0c839402 100644 --- a/crates/gitbutler-tauri/src/open.rs +++ b/crates/gitbutler-tauri/src/open.rs @@ -6,7 +6,7 @@ use url::Url; pub(crate) fn open_that(path: &str) -> anyhow::Result<()> { let target_url = Url::parse(path).with_context(|| format!("Invalid path format: '{path}'"))?; - if !["http", "https", "mailto", "vscode", "vscodium"].contains(&target_url.scheme()) { + if !["http", "https", "mailto", "vscode", "vscodium", "zed"].contains(&target_url.scheme()) { bail!("Invalid path scheme: {}", target_url.scheme()); }