aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorlukeflo2025-06-28 12:45:21 +0200
committerlukeflo2025-06-28 12:45:21 +0200
commit5700c16b9dd2a964d071dcae4de5baa896bc2d20 (patch)
tree9bf7e4416387839229174476e6c6c35ab6aa022c /src/app.rs
parent3bc409fa5627cb2fd2dd1bd885f471e4aab21478 (diff)
downloadbibiman-5700c16b9dd2a964d071dcae4de5baa896bc2d20.tar.gz
bibiman-5700c16b9dd2a964d071dcae4de5baa896bc2d20.zip
add shortcuts for opening files/links and yanking citekey
+ `o-o`|`o-l` -> shortcut for opening first file/link of current entry + `y-y` -> shortcut for yanking citekey of current entry
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app.rs b/src/app.rs
index f7e7891..d10e4f8 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -79,6 +79,10 @@ impl App {
} else if let Some(PopupKind::MessageError) = self.bibiman.popup_area.popup_kind
{
self.bibiman.close_popup()
+ } else if let Some(PopupKind::YankItem) | Some(PopupKind::OpenRes) =
+ self.bibiman.popup_area.popup_kind
+ {
+ self.bibiman.fast_selection(cfg, key_event.code)?;
}
let command = if self.input_mode {
CmdAction::Input(InputCmdAction::parse(key_event, &self.input))