summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/ui/table.go14
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, "; ")),
}
}