summaryrefslogtreecommitdiff
path: root/internal/tui/entries.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-05 22:20:48 +0200
committerPaul Buetow <paul@buetow.org>2026-03-05 22:20:48 +0200
commit80de1ea2e76ed1283d95b85d808b13ae4338015a (patch)
tree7c24eb61f7782f09c9082718f49ad87c556dda81 /internal/tui/entries.go
parent83ae6b0b19a1f5bb18069210700fc81d2f43278a (diff)
add page scrolling keys and bump version to v0.7.0v0.7.0
Diffstat (limited to 'internal/tui/entries.go')
-rw-r--r--internal/tui/entries.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/tui/entries.go b/internal/tui/entries.go
index 57255b1..46374ea 100644
--- a/internal/tui/entries.go
+++ b/internal/tui/entries.go
@@ -358,6 +358,14 @@ func (m *EntriesModel) updateNormalMode(keyMsg tea.KeyPressMsg) {
m.moveCursor(-m.halfPage())
m.pendingG = false
m.pendingD = false
+ case "pgdown":
+ m.moveCursor(m.pageSize())
+ m.pendingG = false
+ m.pendingD = false
+ case "pgup":
+ m.moveCursor(-m.pageSize())
+ m.pendingG = false
+ m.pendingD = false
case "ctrl+f":
m.moveCursor(m.pageSize())
m.pendingG = false
@@ -406,7 +414,7 @@ func (m *EntriesModel) View(styles Styles) string {
rows := m.renderTimelineTable(styles)
body := title + "\n\n" + rows
- body += "\n\n" + styles.Hint.Render("j/k rows, h/l columns, Enter edit cell, s save, / search, D day-off datepicker, dd delete")
+ body += "\n\n" + styles.Hint.Render("j/k rows, PgUp/PgDn page, h/l columns, Enter edit cell, s save, / search, D day-off datepicker, dd delete")
return styles.Body.Render(body + m.renderStatus(styles))
}