Add memo key to stash help + change memo keys to 'm'

This commit is contained in:
Christian Rocha 2020-06-03 14:24:40 -04:00 committed by Christian Muehlhaeuser
commit ea12614a53
2 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ func pagerUpdate(msg tea.Msg, m pagerModel) (pagerModel, tea.Cmd) {
m.state = pagerStateBrowse
return m, nil
}
case "n":
case "m":
// Users can't set the note on news markdown
if m.currentDocument.markdownType == newsMarkdown {
break

View file

@ -281,7 +281,7 @@ func stashUpdate(msg tea.Msg, m stashModel) (stashModel, tea.Cmd) {
)
// Set note
case "n":
case "m":
md := m.selectedMarkdown()
isUserMarkdown := md.markdownType == userMarkdown
isSettingNote := m.state == stashStateSettingNote
@ -512,7 +512,7 @@ func stashHelpView(m stashModel) string {
h = append(h, "h/l, ←/→: page")
}
if !isNews && len(m.markdowns) > 0 {
h = append(h, []string{"x: delete"}...)
h = append(h, []string{"x: delete", "m: set memo"}...)
}
h = append(h, []string{"esc: exit"}...)
}