From 5700c16b9dd2a964d071dcae4de5baa896bc2d20 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Sat, 28 Jun 2025 12:45:21 +0200 Subject: 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 --- src/app.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app.rs') 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)) -- cgit v1.2.3