aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-17 23:02:06 +0200
committerlukeflo2024-10-17 23:02:06 +0200
commit1fb272e563aca3b90a82fcbef68ed1c28cb7b212 (patch)
tree8dc10dd07d80556d53ce7276cfddf47de1fec496 /src/frontend/app.rs
parent5abdd1822a1d388feb36b0d4e62316b4671bf406 (diff)
downloadbibiman-1fb272e563aca3b90a82fcbef68ed1c28cb7b212.tar.gz
bibiman-1fb272e563aca3b90a82fcbef68ed1c28cb7b212.zip
Implement sorting and remove unneccessary struct
- Implement sorting of list (by authors for now) - Remove hole BibiData struct - Create entry table content directly through iterator
Diffstat (limited to 'src/frontend/app.rs')
-rw-r--r--src/frontend/app.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/frontend/app.rs b/src/frontend/app.rs
index a035231..10cfa9b 100644
--- a/src/frontend/app.rs
+++ b/src/frontend/app.rs
@@ -53,8 +53,6 @@ pub struct App {
pub main_bibfile: PathBuf,
// main bibliography
pub main_biblio: BibiMain,
- // bibliographic data
- pub biblio_data: BibiData,
// search struct:
pub search_struct: BibiSearch,
// tag list
@@ -76,7 +74,6 @@ impl App {
let running = true;
let main_bibfile = args.bibfilearg;
let main_biblio = BibiMain::new(main_bibfile.clone());
- let biblio_data = BibiData::new(&main_biblio.bibliography, &main_biblio.citekeys);
let tag_list = TagList::new(main_biblio.keyword_list.clone());
let search_struct = BibiSearch::default();
let entry_table = EntryTable::new(&main_biblio.citekeys, &main_biblio.bibliography);
@@ -85,7 +82,6 @@ impl App {
running,
main_bibfile,
main_biblio,
- biblio_data,
tag_list,
search_struct,
entry_table,
@@ -129,8 +125,6 @@ impl App {
pub fn update_lists(&mut self) {
self.main_biblio = BibiMain::new(self.main_bibfile.clone());
- self.biblio_data =
- BibiData::new(&self.main_biblio.bibliography, &self.main_biblio.citekeys);
// self.tag_list = TagList::from_iter(self.main_biblio.keyword_list.clone());
self.tag_list = TagList::new(self.main_biblio.keyword_list.clone());
self.entry_table =