From a8f6d5bfbf19c998d3d41026f998a66d80f8ede0 Mon Sep 17 00:00:00 2001 From: ruinivist Date: Sun, 4 Jan 2026 05:43:05 +0000 Subject: [PATCH] add space to cycle bw note states --- notes.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/notes.go b/notes.go index 5853935..635121e 100644 --- a/notes.go +++ b/notes.go @@ -111,11 +111,15 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) { m.textarea.Focus() return m, textarea.Blink } - case "d", "right": - m.viewState = StateContent - m.vp.SetContent(m.renderNote()) - case "a", "left": - m.viewState = StateHints + case " ": + switch m.viewState { + case StateTitleOnly: + m.viewState = StateHints + case StateHints: + m.viewState = StateContent + case StateContent: + m.viewState = StateTitleOnly + } m.vp.SetContent(m.renderNote()) case "pgup": m.vp.PageUp()