mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
8edad826ca
This begins a big refactor of moving more code out of the Gui struct into contexts, controllers, and helpers. We also move some code into structs in the gui package purely for the sake of better encapsulation
33 lines
703 B
Go
33 lines
703 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/jesseduffield/gocui"
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
)
|
|
|
|
type baseController struct{}
|
|
|
|
func (self *baseController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding {
|
|
return nil
|
|
}
|
|
|
|
func (self *baseController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding {
|
|
return nil
|
|
}
|
|
|
|
func (self *baseController) GetOnClick() func() error {
|
|
return nil
|
|
}
|
|
|
|
func (self *baseController) GetOnRenderToMain() func() error {
|
|
return nil
|
|
}
|
|
|
|
func (self *baseController) GetOnFocus() func(types.OnFocusOpts) error {
|
|
return nil
|
|
}
|
|
|
|
func (self *baseController) GetOnFocusLost() func(types.OnFocusLostOpts) error {
|
|
return nil
|
|
}
|