mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 15:44:17 +02:00
Add memo key to stash help + change memo keys to 'm'
This commit is contained in:
parent
5019331dff
commit
ea12614a53
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"}...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue