diff options
| author | lukeflo | 2025-06-30 21:49:53 +0200 |
|---|---|---|
| committer | lukeflo | 2025-06-30 21:49:53 +0200 |
| commit | 9bd2f6fef0d835ffb97e18993161e6639c98d2d1 (patch) | |
| tree | 1ff5038fbeda1fe8ee9643a1611b3009345779f5 /src/app.rs | |
| parent | 3a40bbb367a79dc3660c12aa7f62e3efc378ea22 (diff) | |
| download | bibiman-9bd2f6fef0d835ffb97e18993161e6639c98d2d1.tar.gz bibiman-9bd2f6fef0d835ffb97e18993161e6639c98d2d1.zip | |
align resource symbols, update README
Diffstat (limited to 'src/app.rs')
| -rw-r--r-- | src/app.rs | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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)) |
