add a couple alternate key bindings to make the scrolling slightly more intuitive

This commit is contained in:
Will Bradley 2020-10-21 20:28:44 -06:00 committed by Christian Rocha
parent 83b6a2205f
commit b08b3efa02

View File

@ -304,14 +304,14 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
} }
// Down half page // Down half page
case "d": case "d", "ctrl+d":
lines := m.HalfViewDown() lines := m.HalfViewDown()
if m.HighPerformanceRendering { if m.HighPerformanceRendering {
cmd = ViewDown(m, lines) cmd = ViewDown(m, lines)
} }
// Up half page // Up half page
case "u": case "u", "ctrl+u":
lines := m.HalfViewUp() lines := m.HalfViewUp()
if m.HighPerformanceRendering { if m.HighPerformanceRendering {
cmd = ViewUp(m, lines) cmd = ViewUp(m, lines)