From a277f28183112d8f28d06929248b406ce46c4c9c Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Fri, 30 Apr 2021 13:44:49 -0600 Subject: [PATCH] Use ctrl-r to set filter to default --- src/app.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/app.rs b/src/app.rs index 6e37ad1..6d190ea 100644 --- a/src/app.rs +++ b/src/app.rs @@ -2658,6 +2658,13 @@ impl TaskwarriorTuiApp { self.completion_list.previous(); } } + Key::Ctrl('r') => { + self.filter.update("", 0); + for c in self.config.filter.chars() { + self.filter.insert(c, 1); + } + self.dirty = true; + } _ => { handle_movement(&mut self.filter, input); self.update_input_for_completion();