Implement FileFinder

This commit is contained in:
Conrad Irwin 2023-11-14 13:34:14 -07:00
parent f4ccff7b72
commit 3a4c5aa440
3 changed files with 1615 additions and 1655 deletions

View file

@ -146,6 +146,11 @@ impl<D: PickerDelegate> Picker<D> {
}
}
pub fn refresh(&mut self, cx: &mut ViewContext<Self>) {
let query = self.editor.read(cx).text(cx);
self.update_matches(query, cx);
}
pub fn update_matches(&mut self, query: String, cx: &mut ViewContext<Self>) {
let update = self.delegate.update_matches(query, cx);
self.matches_updated(cx);