aboutsummaryrefslogtreecommitdiff
path: root/src/app.rs
diff options
context:
space:
mode:
authorlukeflo2025-06-30 21:49:53 +0200
committerlukeflo2025-06-30 21:49:53 +0200
commit9bd2f6fef0d835ffb97e18993161e6639c98d2d1 (patch)
tree1ff5038fbeda1fe8ee9643a1611b3009345779f5 /src/app.rs
parent3a40bbb367a79dc3660c12aa7f62e3efc378ea22 (diff)
downloadbibiman-9bd2f6fef0d835ffb97e18993161e6639c98d2d1.tar.gz
bibiman-9bd2f6fef0d835ffb97e18993161e6639c98d2d1.zip
align resource symbols, update README
Diffstat (limited to 'src/app.rs')
-rw-r--r--src/app.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/app.rs b/src/app.rs
index 18a97e6..f912614 100644
--- a/src/app.rs
+++ b/src/app.rs
@@ -16,15 +16,14 @@
/////
use crate::bibiman::CurrentArea;
-use crate::config::BibiConfig;
-use color_eyre::eyre::{Context, Ok, Result};
-use editor_command::EditorBuilder;
-// use super::Event;
use crate::cliargs::CLIArgs;
+use crate::config::BibiConfig;
use crate::tui::commands::InputCmdAction;
use crate::tui::popup::PopupKind;
use crate::tui::{self, Tui};
use crate::{bibiman::Bibiman, tui::commands::CmdAction};
+use color_eyre::eyre::{Context, Ok, Result};
+use crossterm::event::KeyCode;
use std::ffi::OsStr;
use std::path::PathBuf;
use std::process::{Command, Stdio};
@@ -84,6 +83,12 @@ impl App {
self.bibiman.popup_area.popup_kind
{
self.bibiman.fast_selection(cfg, &mut tui, key_event.code)?;
+ // if a fast match char was used, restart event-loop.
+ // otherwise, the fast match char will be executed as command
+ match key_event.code {
+ KeyCode::Char('o' | 'l' | 'n' | 'y') => continue,
+ _ => {}
+ }
}
let command = if self.input_mode {
CmdAction::Input(InputCmdAction::parse(key_event, &self.input))