summaryrefslogtreecommitdiff
path: root/internal/ui/table_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-07 19:58:59 +0300
committerPaul Buetow <paul@buetow.org>2026-04-07 19:58:59 +0300
commita08c45e934bed5fded2708df535e1c8f8776fa23 (patch)
tree4f278c561f60df54e5cb2a2659b0c1788dae234b /internal/ui/table_test.go
parent51c66f392937aab1cb0909985217ced177c01b7a (diff)
ui: add r, o, space hotkeys to ultra mode
- r: set random due date - o: open URL from task description/annotations - space: refresh tasks (was previously page-down; pgdn/pgdown still work) Update ultra help screen and tests accordingly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/ui/table_test.go')
-rw-r--r--internal/ui/table_test.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/internal/ui/table_test.go b/internal/ui/table_test.go
index f3f2da3..74c7e70 100644
--- a/internal/ui/table_test.go
+++ b/internal/ui/table_test.go
@@ -803,8 +803,9 @@ func TestUltraHelpUsesUltraBindingsAndClosesBeforeLeavingUltra(t *testing.T) {
if !strings.Contains(view, "exit ultra mode") {
t.Fatalf("ultra help content missing ultra exit binding: %q", view)
}
- if strings.Contains(view, "open URL from description") {
- t.Fatalf("ultra help rendered normal-mode binding: %q", view)
+ // "open URL from description" is now available in ultra mode (o key).
+ if !strings.Contains(view, "open URL from description") {
+ t.Fatalf("ultra help missing o/open-URL binding: %q", view)
}
if strings.Contains(view, "edit current field") {
t.Fatalf("ultra help rendered normal-only inline edit binding: %q", view)
@@ -856,8 +857,9 @@ func TestUltraHelpSearchUsesUltraHelpLines(t *testing.T) {
step(tea.KeyPressMsg{Code: r, Text: string(r)})
}
step(tea.KeyPressMsg{Code: tea.KeyEnter})
- if got := len(m.helpSearchMatches); got != 0 {
- t.Fatalf("ultra help search matched normal help content, got %d matches", got)
+ // "URL" now appears in ultra help since the o key (open URL) is available.
+ if got := len(m.helpSearchMatches); got == 0 {
+ t.Fatalf("ultra help search for 'URL' should match (o key added), got 0 matches")
}
step(tea.KeyPressMsg{Code: '/', Text: "/"})