Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T02:59:39.942Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

svg_preview.rs

25 lines · 554 B · rust
1use gpui::{App, actions};
2use workspace::Workspace;
3
4pub mod svg_preview_view;
5
6pub use zed_actions::preview::svg::{OpenPreview, OpenPreviewToTheSide};
7
8actions!(
9    svg,
10    [
11        /// Opens a following SVG preview that syncs with the editor.
12        OpenFollowingPreview
13    ]
14);
15
16pub fn init(cx: &mut App) {
17    cx.observe_new(|workspace: &mut Workspace, window, cx| {
18        let Some(window) = window else {
19            return;
20        };
21        crate::svg_preview_view::SvgPreviewView::register(workspace, window, cx);
22    })
23    .detach();
24}
25
Served at tenant.openagents/omega Member data and write actions are omitted.