enhance: display more accurate time tracking prefixes

This commit is contained in:
xeruf 2024-11-21 23:59:30 +01:00
parent eea8511a6e
commit 5cd82e8581
2 changed files with 3 additions and 3 deletions

View File

@ -386,7 +386,7 @@ async fn main() -> Result<()> {
match arg {
None => {
if let Some(task) = tasks.get_current_task() {
println!("Change History:");
println!("Change History for {}:", task.get_id());
for e in once(&task.event).chain(task.props.iter().rev()) {
println!("{} {} [{}]",
format_timestamp_full(&e.created_at),

View File

@ -279,12 +279,12 @@ impl TasksRelay {
}
// TODO show history for active tags
(
"Your Time-Tracking History:".to_string(),
format!("Time-Tracking History for {}:", self.get_displayname(&key)),
Box::from(full.into_iter()),
)
} else {
(
"You have nothing time-tracked yet".to_string(),
"Nothing time-tracked yet".to_string(),
Box::from(empty()),
)
}