From 84e46827cedf5e271236a59cbeb035be29e30d7a Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Sun, 25 Aug 2024 11:17:55 +0300 Subject: [PATCH] fix(tasks): temporary improved author formatting --- src/tasks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tasks.rs b/src/tasks.rs index 9583c14..385abcb 100644 --- a/src/tasks.rs +++ b/src/tasks.rs @@ -128,8 +128,8 @@ impl Tasks { "desc", ].into_iter().map(|s| s.to_string()).collect(), sorting: [ - "author", "state", + "author", "hashtags", "rtime", "name", @@ -490,7 +490,7 @@ impl Tasks { } "progress" => prog_string.clone(), - "author" => self.get_author(&task.event.pubkey), + "author" => format!("{:.6}", self.get_author(&task.event.pubkey)), // FIXME temporary until proper column alignment "path" => self.get_task_path(Some(task.event.id)), "rpath" => self.relative_path(task.event.id), // TODO format strings configurable