From 67c5bdb74cfcf8cab647888afec26cd09ccf543a Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 22 Jan 2024 08:41:47 +0100 Subject: fix: allow `/` (glob-mode) while scanning. This will possibly lead to incomplete results, but I find being able to use ones muscle-memory more important than preventing dealing with incomplete results. What happens to me is usually to type `/` followed by `target/` which tends to select all current entries for deletion. --- src/interactive/app/eventloop.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/interactive/app/eventloop.rs b/src/interactive/app/eventloop.rs index 4c83c9f..1053539 100644 --- a/src/interactive/app/eventloop.rs +++ b/src/interactive/app/eventloop.rs @@ -257,11 +257,7 @@ impl AppState { self.cycle_focus(window); } Char('/') if !glob_focussed => { - if self.scan.is_some() { - self.message = Some("glob search disabled during traversal".into()); - } else { - self.toggle_glob_search(window); - } + self.toggle_glob_search(window); } Char('?') if !glob_focussed => self.toggle_help_pane(window), Char('c') if key.modifiers.contains(KeyModifiers::CONTROL) && !glob_focussed => { -- cgit v1.2.3