aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-05 22:54:22 +0200
committerlukeflo2024-10-05 22:54:22 +0200
commitb97b9c1eb64cb4c22724293a36f488b46354a3ee (patch)
treeb965da29f741715550624a9f77e7c3cac9728583 /src/frontend/app.rs
parenteeb8f1b39d965157ed3ea5f7bffae421cce435b3 (diff)
downloadbibiman-b97b9c1eb64cb4c22724293a36f488b46354a3ee.tar.gz
bibiman-b97b9c1eb64cb4c22724293a36f488b46354a3ee.zip
move search fn to entries.rs
Diffstat (limited to 'src/frontend/app.rs')
-rw-r--r--src/frontend/app.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/frontend/app.rs b/src/frontend/app.rs
index 4bd46be..fc04f74 100644
--- a/src/frontend/app.rs
+++ b/src/frontend/app.rs
@@ -219,23 +219,6 @@ impl App {
self.search_struct.search_string.clear();
}
- // Search entry list
- pub fn search_entries(&mut self) {
- let orig_list = {
- if self.search_struct.inner_search {
- let orig_list = &self.search_struct.filtered_entry_list;
- orig_list
- } else {
- let orig_list = &self.biblio_data.entry_list.bibentries;
- orig_list
- }
- };
- let filtered_list =
- BibiSearch::search_entry_list(&mut self.search_struct.search_string, orig_list.clone());
- //search::search_entry_list(&self.search_string, orig_list.clone());
- self.entry_table = EntryTable::from_iter(filtered_list)
- }
-
// Remove last char from search pattern and filter list immidiately
pub fn search_pattern_pop(&mut self) {
self.search_struct.search_string.pop();