Merge pull request #29 from surdaft/bugfix/23

#23: Fix missing short help on view mod info scene
This commit is contained in:
Rob B 2023-07-09 22:13:37 -05:00 committed by GitHub
commit 5188ba2169
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,14 +72,14 @@ func NewModInfo(root components.RootModel, parent tea.Model, mod utils.Mod) tea.
ready: false,
help: help.New(),
keys: modInfoKeyMap{
Up: key.NewBinding(key.WithHelp("↑/k", "move up")),
UpHalf: key.NewBinding(key.WithHelp("u", "up half page")),
UpPage: key.NewBinding(key.WithHelp("pgup/b", "page up")),
Down: key.NewBinding(key.WithHelp("↓/j", "move down")),
DownHalf: key.NewBinding(key.WithHelp("d", "down half page")),
DownPage: key.NewBinding(key.WithHelp("pgdn/ /f", "page down")),
Help: key.NewBinding(key.WithHelp("?", "toggle help")),
Back: key.NewBinding(key.WithHelp("q", "back")),
Up: key.NewBinding(key.WithKeys("up", "k"), key.WithHelp("↑/k", "move up")),
UpHalf: key.NewBinding(key.WithKeys("u"), key.WithHelp("u", "up half page")),
UpPage: key.NewBinding(key.WithKeys("pgup", "b"), key.WithHelp("pgup/b", "page up")),
Down: key.NewBinding(key.WithKeys("down", "j"), key.WithHelp("↓/j", "move down")),
DownHalf: key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "down half page")),
DownPage: key.NewBinding(key.WithKeys("pgdn", "f"), key.WithHelp("pgdn/f", "page down")),
Help: key.NewBinding(key.WithKeys("?"), key.WithHelp("?", "toggle help")),
Back: key.NewBinding(key.WithKeys("q"), key.WithHelp("q", "back")),
},
}