summaryrefslogtreecommitdiff
path: root/internal/ui/table.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-29 13:23:36 +0300
committerPaul Buetow <paul@buetow.org>2025-06-29 13:23:36 +0300
commit1c0f5ce0d07434cad0f82a80d08a08df50db38b7 (patch)
tree000506686871c1a6551bd20d76d72bfc086ff448 /internal/ui/table.go
parentf71ecf2b59417dadd68a14978ad6c95d9699200e (diff)
feat: add random task jump hotkeys and document navigation keys
- Add hotkey '1' to jump to a random pending task - Add hotkey '2' to jump to a random pending task without due date - Both hotkeys include visual feedback with blink animation - Document '0' key as synonym for 'g' and 'Home' in help screen - Update help screen navigation section with all new hotkeys 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/ui/table.go')
-rw-r--r--internal/ui/table.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/ui/table.go b/internal/ui/table.go
index a3157af..65837a6 100644
--- a/internal/ui/table.go
+++ b/internal/ui/table.go
@@ -684,8 +684,11 @@ func (m Model) buildHelpContent() string {
sections = append(sections, headerStyle.Render("Navigation"),
m.formatHelpLine("↑/k, ↓/j", "move up/down", keyStyle, descStyle),
m.formatHelpLine("←/h, →/l", "move left/right", keyStyle, descStyle),
- m.formatHelpLine("g/Home, G/End", "go to start/end", keyStyle, descStyle),
+ m.formatHelpLine("0, g, Home", "go to start", keyStyle, descStyle),
+ m.formatHelpLine("G, End", "go to end", keyStyle, descStyle),
m.formatHelpLine("pgup/pgdn, b", "page up/down", keyStyle, descStyle),
+ m.formatHelpLine("1", "jump to random task", keyStyle, descStyle),
+ m.formatHelpLine("2", "jump to random task (no due date)", keyStyle, descStyle),
"")
// Task Management section