buffer_search.rs

 1use crate::prelude::*;
 2use crate::EditorPane;
 3
 4#[derive(Element)]
 5#[element(view_state = "EditorPane")]
 6pub struct BufferSearch {}
 7
 8impl BufferSearch {
 9    pub fn new() -> Self {
10        Self {}
11    }
12
13    fn render(
14        &mut self,
15        _view: &mut EditorPane,
16        cx: &mut ViewContext<EditorPane>,
17    ) -> impl Element<ViewState = EditorPane> {
18        div().child("This is where Buffer Search goes.")
19    }
20}