From b08b3efa02af1d0e850f61c56dfc4c03a45288ae Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Wed, 21 Oct 2020 20:28:44 -0600 Subject: [PATCH] add a couple alternate key bindings to make the scrolling slightly more intuitive --- viewport/viewport.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewport/viewport.go b/viewport/viewport.go index 7827f11..77d8de2 100644 --- a/viewport/viewport.go +++ b/viewport/viewport.go @@ -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)