Skip to content

Commit

Permalink
add a couple alternate key bindings to make the scrolling slightly mo…
Browse files Browse the repository at this point in the history
…re intuitive
  • Loading branch information
Will Bradley authored and meowgorithm committed Oct 22, 2020
1 parent 83b6a22 commit b08b3ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions viewport/viewport.go
Original file line number Diff line number Diff line change
Expand Up @@ -304,14 +304,14 @@ func Update(msg tea.Msg, m Model) (Model, tea.Cmd) {
}

// Down half page
case "d":
case "d", "ctrl+d":
lines := m.HalfViewDown()
if m.HighPerformanceRendering {
cmd = ViewDown(m, lines)
}

// Up half page
case "u":
case "u", "ctrl+u":
lines := m.HalfViewUp()
if m.HighPerformanceRendering {
cmd = ViewUp(m, lines)
Expand Down

0 comments on commit b08b3ef

Please sign in to comment.