From ea12614a53e248926ba23d20ddae176f18faba05 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 3 Jun 2020 14:24:40 -0400 Subject: [PATCH] Add memo key to stash help + change memo keys to 'm' --- ui/pager.go | 2 +- ui/stash.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/pager.go b/ui/pager.go index 2a31b7e..c577b23 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -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 diff --git a/ui/stash.go b/ui/stash.go index b635012..9bad91d 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -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"}...) }