From 5cd82e85818ca6351a9612e0c61001be5f10bd3d Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 21 Nov 2024 23:59:30 +0100 Subject: [PATCH] enhance: display more accurate time tracking prefixes --- src/main.rs | 2 +- src/tasks.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 3670c15..eee81d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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), diff --git a/src/tasks.rs b/src/tasks.rs index 8d877ef..b5e3e26 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -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()), ) }