diff options
Diffstat (limited to 'pkg/gui/controllers/suggestions_controller.go')
-rw-r--r-- | pkg/gui/controllers/suggestions_controller.go | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkg/gui/controllers/suggestions_controller.go b/pkg/gui/controllers/suggestions_controller.go new file mode 100644 index 000000000..aaa4c8647 --- /dev/null +++ b/pkg/gui/controllers/suggestions_controller.go @@ -0,0 +1,43 @@ +package controllers + +import ( + "github.com/jesseduffield/lazygit/pkg/gui/context" + "github.com/jesseduffield/lazygit/pkg/gui/types" +) + +type SuggestionsController struct { + baseController + *controllerCommon +} + +var _ types.IController = &SuggestionsController{} + +func NewSuggestionsController( + common *controllerCommon, +) *SuggestionsController { + return &SuggestionsController{ + baseController: baseController{}, + controllerCommon: common, + } +} + +func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding { + bindings := []*types.Binding{} + + return bindings +} + +func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts) error { + return func(types.OnFocusLostOpts) error { + deactivateConfirmationPrompt + return nil + } +} + +func (self *SuggestionsController) Context() types.Context { + return self.context() +} + +func (self *SuggestionsController) context() *context.SuggestionsContext { + return self.contexts.Suggestions +} |