From 0312b8b31160297033e8a435c00e7c92eaa371e6 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Wed, 25 Dec 2024 22:32:42 +0100 Subject: Minor Feature: Sort entries by position in/of file + Hitting now sorts the entries by position in file or position of files + Can be helpful to detect entries newly added via DOI which are appended to EOF --- src/app.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/app.rs') diff --git a/src/app.rs b/src/app.rs index 2240e8f..977cb6c 100644 --- a/src/app.rs +++ b/src/app.rs @@ -280,6 +280,9 @@ impl App { self.bibiman.entry_table.sort_entry_table(true); } } + CmdAction::SortById => { + self.bibiman.entry_table.sort_by_id(); + } CmdAction::YankItem => { if let CurrentArea::EntryArea = self.bibiman.current_area { let citekey: &str = &self.bibiman.entry_table.entry_table_items[self -- cgit v1.2.3