Skip to repository content24 lines · 899 B · rust
tenant.openagents/omega
No repository description is available.
OpenAgents Git authority 2026-07-28T06:08:32.533Z 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
render.rs
1use gpui::KeyContext;
2use ui::{Context, InteractiveElement, IntoElement, ParentElement, Render, Window, v_flex};
3
4use super::TextFinder;
5
6impl Render for TextFinder {
7 fn render(&mut self, _window: &mut Window, cx: &mut Context<Self>) -> impl IntoElement {
8 let mut key_context = KeyContext::new_with_defaults();
9 key_context.add("TextFinder");
10
11 v_flex()
12 .key_context(key_context)
13 .on_action(cx.listener(Self::to_project_search))
14 .on_action(cx.listener(Self::split_left))
15 .on_action(cx.listener(Self::split_right))
16 .on_action(cx.listener(Self::split_up))
17 .on_action(cx.listener(Self::split_down))
18 .on_action(cx.listener(Self::fold))
19 .on_action(cx.listener(Self::unfold))
20 .on_action(cx.listener(Self::toggle_fold_all))
21 .child(self.picker.clone())
22 }
23}
24