add space to cycle bw note states
This commit is contained in:
@@ -111,11 +111,15 @@ func (m *NoteView) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||||||
m.textarea.Focus()
|
m.textarea.Focus()
|
||||||
return m, textarea.Blink
|
return m, textarea.Blink
|
||||||
}
|
}
|
||||||
case "d", "right":
|
case " ":
|
||||||
m.viewState = StateContent
|
switch m.viewState {
|
||||||
m.vp.SetContent(m.renderNote())
|
case StateTitleOnly:
|
||||||
case "a", "left":
|
m.viewState = StateHints
|
||||||
m.viewState = StateHints
|
case StateHints:
|
||||||
|
m.viewState = StateContent
|
||||||
|
case StateContent:
|
||||||
|
m.viewState = StateTitleOnly
|
||||||
|
}
|
||||||
m.vp.SetContent(m.renderNote())
|
m.vp.SetContent(m.renderNote())
|
||||||
case "pgup":
|
case "pgup":
|
||||||
m.vp.PageUp()
|
m.vp.PageUp()
|
||||||
|
|||||||
Reference in New Issue
Block a user