Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add zed: get merch command palette action (#60330)
Miguel Raz Guzmán Macedo0346a17d097e
diff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex 7e07e7f0f3f..22ba7cee3d4 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<crashes::Client>);@@ -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.rsindex 8b2d0d45df7..a11eca78e0b 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.