Merge pull request #202 from kdheepak/use-ctrl-r-to-set-filter-to-default-string

Use ctrl-r to set filter to default
This commit is contained in:
Dheepak Krishnamurthy 2021-04-30 14:11:57 -06:00 committed by GitHub
commit b029d9c32a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();