aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app.rs
diff options
context:
space:
mode:
authorlukeflo2024-10-14 16:19:13 +0200
committerlukeflo2024-10-14 16:19:13 +0200
commitfc50bb8a5c5ae0037266efd15b0eaca0d58843b7 (patch)
tree14076c65879629c3b05c396a876d2ff50350a530 /src/frontend/app.rs
parentd996467fe899fa0012ef87bda2e7c210b5af8714 (diff)
parentc5040eac46d144a975bda7684b284a4a5bbd1536 (diff)
downloadbibiman-fc50bb8a5c5ae0037266efd15b0eaca0d58843b7.tar.gz
bibiman-fc50bb8a5c5ae0037266efd15b0eaca0d58843b7.zip
Merge branch 'footer-entrylist'
Implemented a status bar-like line under the entry list to show some infos: - basename of the currently loaded file - keyword by which the list is filtered, if active - currently selected entry and number of all entries in the current list
Diffstat (limited to 'src/frontend/app.rs')
-rw-r--r--src/frontend/app.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/frontend/app.rs b/src/frontend/app.rs
index 8eb2e65..8d6454d 100644
--- a/src/frontend/app.rs
+++ b/src/frontend/app.rs
@@ -77,7 +77,7 @@ impl App {
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::from_iter(main_biblio.keyword_list.clone());
+ let tag_list = TagList::new(main_biblio.keyword_list.clone());
let search_struct = BibiSearch::default();
let entry_table = EntryTable::from_iter(biblio_data.entry_list.bibentries.clone());
let current_area = CurrentArea::EntryArea;
@@ -131,7 +131,8 @@ impl App {
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::from_iter(self.main_biblio.keyword_list.clone());
+ self.tag_list = TagList::new(self.main_biblio.keyword_list.clone());
self.entry_table = EntryTable::from_iter(self.biblio_data.entry_list.bibentries.clone());
}
@@ -157,7 +158,7 @@ impl App {
pub fn reset_current_list(&mut self) {
self.entry_table = EntryTable::from_iter(self.biblio_data.entry_list.bibentries.clone());
- self.tag_list = TagList::from_iter(self.main_biblio.keyword_list.clone());
+ self.tag_list = TagList::new(self.main_biblio.keyword_list.clone());
if let CurrentArea::TagArea = self.current_area {
self.tag_list.tag_list_state.select(Some(0))
}