mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
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:
commit
b029d9c32a
1 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue