From d1228ab2c5af89a35929ce313c39db9eb076f3e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= <1224732+snonux@users.noreply.github.com> Date: Sat, 21 Jun 2025 20:15:48 +0300 Subject: Tighten annotation and priority column widths --- internal/ui/table.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/ui/table.go b/internal/ui/table.go index 02582f0..a78eeb9 100644 --- a/internal/ui/table.go +++ b/internal/ui/table.go @@ -23,13 +23,13 @@ var priorityOptions = []string{"H", "M", "L", ""} const ( idWidth = 4 - priWidth = 4 + priWidth = 1 ageWidth = 6 urgWidth = 5 dueWidth = 10 tagsWidth = 15 descWidth = 45 - annWidth = 20 + annWidth = 1 ) func init() { @@ -579,7 +579,7 @@ func taskToRow(t task.Task) atable.Row { annStr := "" if n := len(anns); n > 0 { - annStr = strconv.Itoa(n) + annStr = strconv.FormatInt(int64(n), 16) } return atable.Row{ @@ -729,7 +729,7 @@ func taskToRowSearch(t task.Task, re *regexp.Regexp, styles atable.Styles, selec annRaw := strings.Join(anns, "; ") annCount := "" if n := len(anns); n > 0 { - annCount = strconv.Itoa(n) + annCount = strconv.FormatInt(int64(n), 16) } annStr := highlightCellMatch(getStyle(6), re, annRaw, annCount) descStr := highlightCell(getStyle(7), re, t.Description) -- cgit v1.2.3