add up/down/pg keys for noteview

This commit is contained in:
2026-01-04 04:52:47 +00:00
parent 753380c965
commit c960397adc
+12
View File
@@ -82,6 +82,18 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case "a": case "a":
m.viewState = StateHints m.viewState = StateHints
m.vp.SetContent(m.renderNote()) m.vp.SetContent(m.renderNote())
case "up":
m.vp.ScrollUp(1)
return m, nil
case "down":
m.vp.ScrollDown(1)
return m, nil
case "pgup":
m.vp.PageUp()
return m, nil
case "pgdown":
m.vp.PageDown()
return m, nil
} }
var cmd tea.Cmd var cmd tea.Cmd
m.vp, cmd = m.vp.Update(msg) m.vp, cmd = m.vp.Update(msg)