From b4f8385f57024aa951a9f37df8d1f8046bdee7d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Fri, 20 Jun 2025 18:23:58 +0300 Subject: Reorder task table columns --- internal/ui/table.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/internal/ui/table.go b/internal/ui/table.go index 1136428..dda6406 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -50,13 +50,12 @@ func New(filter string) (Model, error) { func newTable(rows []atable.Row) atable.Model { cols := []atable.Column{ {Title: "ID", Width: 4}, - {Title: "Task", Width: 45}, - {Title: "Age", Width: 6}, {Title: "Pri", Width: 4}, - {Title: "Tags", Width: 15}, - {Title: "Recur", Width: 6}, + {Title: "Age", Width: 6}, {Title: "Due", Width: 10}, {Title: "Urg", Width: 5}, + {Title: "Tags", Width: 15}, + {Title: "Description", Width: 45}, {Title: "Annotations", Width: 20}, } t := atable.New( @@ -211,13 +210,12 @@ func taskToRow(t task.Task) atable.Row { return atable.Row{ style.Render(strconv.Itoa(t.ID)), - style.Render(t.Description), - style.Render(age), formatPriority(t.Priority), - style.Render(tags), - style.Render(t.Recur), + style.Render(age), formatDue(t.Due), style.Render(urg), + style.Render(tags), + style.Render(t.Description), style.Render(strings.Join(anns, "; ")), } } -- cgit v1.2.3