mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-26 12:17:19 +02:00
Add recur and wait relative times
This commit is contained in:
parent
922be0cdf1
commit
52c234f4a9
1 changed files with 16 additions and 0 deletions
|
@ -214,6 +214,10 @@ impl TaskReportTable {
|
||||||
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
},
|
},
|
||||||
|
"until" => match task.until() {
|
||||||
|
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
||||||
|
None => "".to_string(),
|
||||||
|
},
|
||||||
"until.remaining" => match task.until() {
|
"until.remaining" => match task.until() {
|
||||||
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
|
@ -282,6 +286,18 @@ impl TaskReportTable {
|
||||||
.join(","),
|
.join(","),
|
||||||
None => "".to_string(),
|
None => "".to_string(),
|
||||||
},
|
},
|
||||||
|
"recur" => match task.recur() {
|
||||||
|
Some(v) => v.clone(),
|
||||||
|
None => "".to_string(),
|
||||||
|
},
|
||||||
|
"wait" => match task.wait() {
|
||||||
|
Some(v) => vague_format_date_time(NaiveDateTime::new(v.date(), v.time()), Local::now().naive_utc()),
|
||||||
|
None => "".to_string(),
|
||||||
|
},
|
||||||
|
"wait.remaining" => match task.wait() {
|
||||||
|
Some(v) => vague_format_date_time(Local::now().naive_utc(), NaiveDateTime::new(v.date(), v.time())),
|
||||||
|
None => "".to_string(),
|
||||||
|
},
|
||||||
"description.count" => {
|
"description.count" => {
|
||||||
let c = match task.annotations() {
|
let c = match task.annotations() {
|
||||||
Some(a) => format!("[{}]", a.len()),
|
Some(a) => format!("[{}]", a.len()),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue