2 Commits

Author SHA1 Message Date
github-actions[bot]
41b7caa50f chore(master): release 1.4.1 2026-02-19 21:19:58 +02:00
1b803786b8 fix: pgup/pgdown scroll 2026-02-09 23:03:06 +02:00
3 changed files with 32 additions and 1 deletions

View File

@@ -1,5 +1,12 @@
# Changelog
## [1.4.1](https://github.com/chenasraf/tx/compare/v1.4.0...v1.4.1) (2026-02-09)
### Bug Fixes
* pgup/pgdown scroll ([1b80378](https://github.com/chenasraf/tx/commit/1b803786b82ffecf8cd0691ea4605dac8246ed68))
## [1.4.0](https://github.com/chenasraf/tx/compare/v1.3.0...v1.4.0) (2026-02-09)

View File

@@ -111,6 +111,30 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
return m, nil
case tea.KeyPgUp:
half := (m.height - 1) / 2
if half < 1 {
half = 1
}
m.cursor += half
if m.cursor >= len(m.filtered) {
m.cursor = len(m.filtered) - 1
}
m.clampScroll()
return m, nil
case tea.KeyPgDown:
half := (m.height - 1) / 2
if half < 1 {
half = 1
}
m.cursor -= half
if m.cursor < 0 {
m.cursor = 0
}
m.clampScroll()
return m, nil
case tea.KeyRunes:
m.query += string(msg.Runes)
m.refilter()

View File

@@ -1 +1 @@
1.4.0
1.4.1