diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rs index 7e07e7f0f3..22ba7cee3d 100644 --- a/crates/zed/src/zed.rs +++ b/crates/zed/src/zed.rs @@ -101,12 +101,13 @@ use workspace::{ }; use workspace::{Pane, notifications::DetachAndPromptErr}; use zed_actions::{ - About, OpenAccountSettings, OpenBrowser, OpenDocs, OpenServerSettings, OpenSettingsFile, - OpenStatusPage, OpenZedUrl, Quit, + About, GetMerch, OpenAccountSettings, OpenBrowser, OpenDocs, OpenServerSettings, + OpenSettingsFile, OpenStatusPage, OpenZedUrl, Quit, }; const DOCS_URL: &str = "https://zed.dev/docs/"; const STATUS_URL: &str = "https://status.zed.dev"; +const MERCH_URL: &str = "https://merch.zed.dev/"; pub struct CrashHandler(pub Arc); @@ -887,6 +888,7 @@ fn register_actions( workspace .register_action(|_, _: &OpenDocs, _, cx| cx.open_url(DOCS_URL)) .register_action(|_, _: &OpenStatusPage, _, cx| cx.open_url(STATUS_URL)) + .register_action(|_, _: &GetMerch, _, cx| cx.open_url(MERCH_URL)) .register_action( |workspace: &mut Workspace, _: &input_latency_ui::DumpInputLatencyHistogram, diff --git a/crates/zed_actions/src/lib.rs b/crates/zed_actions/src/lib.rs index 8b2d0d45df..a11eca78e0 100644 --- a/crates/zed_actions/src/lib.rs +++ b/crates/zed_actions/src/lib.rs @@ -69,6 +69,8 @@ actions!( OpenLicenses, /// Opens the Zed status page. OpenStatusPage, + /// Opens the Zed merch store. + GetMerch, /// Opens the telemetry log. OpenTelemetryLog, /// Opens the performance profiler.