summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 18:24:51 +0300
committerGitHub <noreply@github.com>2025-06-20 18:24:51 +0300
commitcf2299f9d3a1d2095141d4c1b80b1e7632252ed0 (patch)
tree09a07a799ea92049a77d6099442263cbf6ee1b93
parent0bb906061e6e9cc034134181bb07be3ea33ed093 (diff)
parentb4f8385f57024aa951a9f37df8d1f8046bdee7d8 (diff)
Merge pull request #21 from snonux/codex/rearrange-column-order-and-fix-header-alignment
Reorder table columns
-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 3f86376..51bd9e4 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -52,13 +52,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(
@@ -215,13 +214,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, "; ")),
}
}