Skip to repository content17 lines · 467 B · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T05:38:02.529Z Public web read
NIP-34 coordinate
30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omegaMaintainersHidden in public view
References2 branches · 1 tag
Read-only clone
git clone https://openagents.com/git/tenant.openagents/omega.gitBrowse files
register_app_scheme.rs
1use gpui::{AsyncApp, actions};
2use release_channel::ReleaseChannel;
3
4actions!(
5 cli,
6 [
7 /// Registers the current Omega URL scheme handler.
8 #[action(deprecated_aliases = ["cli::RegisterZedScheme"])]
9 RegisterAppScheme
10 ]
11);
12
13pub async fn register_app_scheme(cx: &AsyncApp) -> anyhow::Result<()> {
14 let scheme = cx.update(|cx| ReleaseChannel::global(cx).protocol_scheme());
15 cx.update(|cx| cx.register_url_scheme(scheme)).await
16}
17