1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add generate_cheatsheet script

script is generating markdown document with small cheatsheet
in selected language
This commit is contained in:
Dawid Dziurla
2018-09-01 16:50:22 +02:00
parent 1fa55875e2
commit 359636c1aa
3 changed files with 58 additions and 13 deletions

View File

@ -14,7 +14,7 @@ type Binding struct {
Description string
}
func (gui *Gui) getKeybindings() []Binding {
func (gui *Gui) GetKeybindings() []Binding {
bindings := []Binding{
{
ViewName: "",
@ -379,7 +379,7 @@ func (gui *Gui) getKeybindings() []Binding {
}
func (gui *Gui) keybindings(g *gocui.Gui) error {
bindings := gui.getKeybindings()
bindings := gui.GetKeybindings()
for _, binding := range bindings {
if err := g.SetKeybinding(binding.ViewName, binding.Key, binding.Modifier, binding.Handler); err != nil {