mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 08:47:18 +02:00
Update completion options
This commit is contained in:
parent
a5aa6e9687
commit
c3a8bd506d
1 changed files with 16 additions and 0 deletions
16
src/app.rs
16
src/app.rs
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue