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:
@ -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 {
|
||||
|
Reference in New Issue
Block a user