summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2024-01-22 08:41:47 +0100
committerSebastian Thiel <sebastian.thiel@icloud.com>2024-01-22 08:46:11 +0100
commit67c5bdb74cfcf8cab647888afec26cd09ccf543a (patch)
tree41cef953fb52c383c4dfc1918daab83db9e7b4d7
parentc70ca81f007f925c7891340d0d0e763bcfc4114d (diff)
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.
-rw-r--r--src/interactive/app/eventloop.rs6
1 files changed, 1 insertions, 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 => {