mirror of
https://github.com/chenasraf/tx.git
synced 2026-05-18 01:29:08 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
41b7caa50f | ||
| 1b803786b8 |
@@ -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)
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.4.0
|
||||
1.4.1
|
||||
|
||||
Reference in New Issue
Block a user