summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-21 20:15:48 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-21 20:15:48 +0300
commitd1228ab2c5af89a35929ce313c39db9eb076f3e6 (patch)
treeccd20b52b3ef2b192518688cf5850e113fe54e66
parentb79d58622fce06daf2be6438f6e5bcc35630f46a (diff)
Tighten annotation and priority column widths
-rw-r--r--internal/ui/table.go8
1 files 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)