diff options
| author | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 18:23:58 +0300 |
|---|---|---|
| committer | Paul Bütow <1224732+snonux@users.noreply.github.com> | 2025-06-20 18:23:58 +0300 |
| commit | b4f8385f57024aa951a9f37df8d1f8046bdee7d8 (patch) | |
| tree | b3725bd4db77a543413144ea3c4cd69e43d62cdc /internal | |
| parent | afad8eec02ca5f0dfd37917c1d4f07399d773604 (diff) | |
Reorder task table columns
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/ui/table.go | 14 |
1 files 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, "; ")), } } |
