diff options
| author | lukeflo | 2024-12-25 22:32:42 +0100 |
|---|---|---|
| committer | lukeflo | 2024-12-25 22:32:42 +0100 |
| commit | 0312b8b31160297033e8a435c00e7c92eaa371e6 (patch) | |
| tree | 0d78fdde06103c175f13b4ef70a3119ca52f1c43 /src/tui/commands.rs | |
| parent | dc537b3865b59da28de0e754fe9a79efcaf618f6 (diff) | |
| download | bibiman-0312b8b31160297033e8a435c00e7c92eaa371e6.tar.gz bibiman-0312b8b31160297033e8a435c00e7c92eaa371e6.zip | |
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
Diffstat (limited to 'src/tui/commands.rs')
| -rw-r--r-- | src/tui/commands.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tui/commands.rs b/src/tui/commands.rs index 0e00f95..08ee677 100644 --- a/src/tui/commands.rs +++ b/src/tui/commands.rs @@ -57,6 +57,8 @@ pub enum CmdAction { Confirm, // Sort table/list SortList, + // + SortById, // Yank selected item YankItem, // Edit file @@ -153,6 +155,8 @@ impl From<KeyEvent> for CmdAction { KeyCode::Char('y') => Self::YankItem, // Sort entry table by selected col KeyCode::Char('s') => Self::SortList, + // Sort entry table by position in file + KeyCode::Char('S') => Self::SortById, // Show help popup KeyCode::Char('?') => Self::ShowHelp, // Else do nothing |
