diff --git a/src/task.rs b/src/task.rs index a95dbbb..d9280d5 100644 --- a/src/task.rs +++ b/src/task.rs @@ -141,7 +141,7 @@ impl Task { match property { "id" => Some(self.event.id.to_string()), "parentid" => self.parent_id().map(|i| i.to_string()), - "status" => Some(self.state_or_default().get_colored_label().to_string()), + "status" => Some(self.state_or_default().get_label()), "name" => Some(self.event.content.clone()), "desc" => self.descriptions().last().cloned(), "description" => Some(self.descriptions().join(" ")), diff --git a/src/tasks.rs b/src/tasks.rs index a5ff1c7..9d51444 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -127,6 +127,7 @@ impl Tasks { ], sorting: VecDeque::from([ "state".into(), + "rtime".into(), "name".into(), ]), position: None, // TODO persist position