summaryrefslogtreecommitdiff
path: root/internal/ui
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 22:53:21 +0300
committerPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 22:53:21 +0300
commit42449043cf1903e0e72295b096274d26187a61b8 (patch)
treea709214f2e647ae086bb355a1c868b03e70dffcb /internal/ui
parent6a8198237706c47013c68f1036a307001f77cfa5 (diff)
Space separated tags and table column spacing
Diffstat (limited to 'internal/ui')
-rw-r--r--internal/ui/table.go6
-rw-r--r--internal/ui/table_test.go2
2 files changed, 4 insertions, 4 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index 530e813..2ba73c3 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -132,7 +132,7 @@ func (m *Model) reload() error {
for i, tsk := range tasks {
rows = append(rows, taskToRowSearch(tsk, m.searchRegex))
if m.searchRegex != nil {
- tags := strings.Join(tsk.Tags, ",")
+ tags := strings.Join(tsk.Tags, " ")
if m.searchRegex.MatchString(tags) {
m.searchMatches = append(m.searchMatches, cellMatch{row: i, col: 5})
}
@@ -508,7 +508,7 @@ func taskToRow(t task.Task) atable.Row {
age = fmt.Sprintf("%dd", days)
}
- tags := strings.Join(t.Tags, ",")
+ tags := strings.Join(t.Tags, " ")
urg := fmt.Sprintf("%.1f", t.Urgency)
var anns []string
@@ -597,7 +597,7 @@ func taskToRowSearch(t task.Task, re *regexp.Regexp) atable.Row {
age = fmt.Sprintf("%dd", days)
}
- tags := strings.Join(t.Tags, ",")
+ tags := strings.Join(t.Tags, " ")
urg := fmt.Sprintf("%.1f", t.Urgency)
var anns []string
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go
index d120337..d7ee19d 100644
--- a/internal/ui/table_test.go
+++ b/internal/ui/table_test.go
@@ -470,7 +470,7 @@ func TestEscClosesHelp(t *testing.T) {
t.Fatalf("New: %v", err)
}
- mv, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'?'}})
+ mv, _ := m.Update(tea.KeyMsg{Type: tea.KeyRunes, Runes: []rune{'h'}})
m = mv.(Model)
if !m.showHelp {
t.Fatalf("help not shown")