Update completion options

This commit is contained in:
Dheepak Krishnamurthy 2021-04-06 05:32:46 -06:00
parent a5aa6e9687
commit c3a8bd506d

View file

@ -2502,6 +2502,22 @@ impl TaskwarriorTuiApp {
}
_ => {}
}
match self.mode {
AppMode::TaskModify | AppMode::TaskAdd | AppMode::TaskLog => {
for s in vec![
"+".to_string(),
"project:".to_string(),
"priority:".to_string(),
"due:".to_string(),
] {
if !self.completion_list.items.contains(&s) {
self.completion_list.items.push(s);
}
}
}
_ => {}
}
}
}