controllers

package
v0.39.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const COMMIT_THRESHOLD = 200

after selecting the 200th commit, we'll load in all the rest

Variables

Functions

func AttachControllers

func AttachControllers(context types.Context, controllers ...types.IController)

Types

type BasicCommitsController

type BasicCommitsController struct {
	// contains filtered or unexported fields
}

func NewBasicCommitsController

func NewBasicCommitsController(controllerCommon *ControllerCommon, context ContainsCommits) *BasicCommitsController

func (*BasicCommitsController) Context

func (self *BasicCommitsController) Context() types.Context

func (*BasicCommitsController) GetKeybindings

func (self *BasicCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*BasicCommitsController) GetMouseKeybindings

func (self *BasicCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*BasicCommitsController) GetOnClick

func (self *BasicCommitsController) GetOnClick() func() error

func (*BasicCommitsController) GetOnFocus added in v0.39.0

func (self *BasicCommitsController) GetOnFocus() func(types.OnFocusOpts) error

func (*BasicCommitsController) GetOnFocusLost added in v0.39.0

func (self *BasicCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*BasicCommitsController) GetOnRenderToMain added in v0.39.0

func (self *BasicCommitsController) GetOnRenderToMain() func() error

type BisectController

type BisectController struct {
	// contains filtered or unexported fields
}

func NewBisectController

func NewBisectController(
	common *ControllerCommon,
) *BisectController

func (*BisectController) Context

func (self *BisectController) Context() types.Context

func (*BisectController) GetKeybindings

func (self *BisectController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*BisectController) GetMouseKeybindings

func (self *BisectController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*BisectController) GetOnClick

func (self *BisectController) GetOnClick() func() error

func (*BisectController) GetOnFocus added in v0.39.0

func (self *BisectController) GetOnFocus() func(types.OnFocusOpts) error

func (*BisectController) GetOnFocusLost added in v0.39.0

func (self *BisectController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*BisectController) GetOnRenderToMain added in v0.39.0

func (self *BisectController) GetOnRenderToMain() func() error

type BranchesController

type BranchesController struct {
	// contains filtered or unexported fields
}

func NewBranchesController

func NewBranchesController(
	common *ControllerCommon,
) *BranchesController

func (*BranchesController) Context

func (self *BranchesController) Context() types.Context

func (*BranchesController) GetKeybindings

func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*BranchesController) GetMouseKeybindings

func (self *BranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*BranchesController) GetOnClick

func (self *BranchesController) GetOnClick() func() error

func (*BranchesController) GetOnFocus added in v0.39.0

func (self *BranchesController) GetOnFocus() func(types.OnFocusOpts) error

func (*BranchesController) GetOnFocusLost added in v0.39.0

func (self *BranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*BranchesController) GetOnRenderToMain added in v0.39.0

func (self *BranchesController) GetOnRenderToMain() func() error

type CanSwitchToDiffFiles

type CanSwitchToDiffFiles interface {
	types.Context
	CanRebase() bool
	GetSelectedRef() types.Ref
}

type CanSwitchToSubCommits

type CanSwitchToSubCommits interface {
	types.Context
	GetSelectedRef() types.Ref
}

type CommandLogController added in v0.39.0

type CommandLogController struct {
	// contains filtered or unexported fields
}

func NewCommandLogController added in v0.39.0

func NewCommandLogController(
	common *ControllerCommon,
) *CommandLogController

func (*CommandLogController) Context added in v0.39.0

func (self *CommandLogController) Context() types.Context

func (*CommandLogController) GetKeybindings added in v0.39.0

func (self *CommandLogController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*CommandLogController) GetMouseKeybindings added in v0.39.0

func (self *CommandLogController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*CommandLogController) GetOnClick added in v0.39.0

func (self *CommandLogController) GetOnClick() func() error

func (*CommandLogController) GetOnFocus added in v0.39.0

func (self *CommandLogController) GetOnFocus() func(types.OnFocusOpts) error

func (*CommandLogController) GetOnFocusLost added in v0.39.0

func (self *CommandLogController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*CommandLogController) GetOnRenderToMain added in v0.39.0

func (self *CommandLogController) GetOnRenderToMain() func() error

type CommitDescriptionController added in v0.38.0

type CommitDescriptionController struct {
	// contains filtered or unexported fields
}

func NewCommitDescriptionController added in v0.38.0

func NewCommitDescriptionController(
	common *ControllerCommon,
) *CommitDescriptionController

func (*CommitDescriptionController) Context added in v0.38.0

func (self *CommitDescriptionController) Context() types.Context

func (*CommitDescriptionController) GetKeybindings added in v0.38.0

func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*CommitDescriptionController) GetMouseKeybindings added in v0.38.0

func (self *CommitDescriptionController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*CommitDescriptionController) GetOnClick added in v0.38.0

func (self *CommitDescriptionController) GetOnClick() func() error

func (*CommitDescriptionController) GetOnFocus added in v0.39.0

func (self *CommitDescriptionController) GetOnFocus() func(types.OnFocusOpts) error

func (*CommitDescriptionController) GetOnFocusLost added in v0.39.0

func (self *CommitDescriptionController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*CommitDescriptionController) GetOnRenderToMain added in v0.39.0

func (self *CommitDescriptionController) GetOnRenderToMain() func() error

type CommitFilesController

type CommitFilesController struct {
	// contains filtered or unexported fields
}

func NewCommitFilesController

func NewCommitFilesController(
	common *ControllerCommon,
) *CommitFilesController

func (*CommitFilesController) Context

func (self *CommitFilesController) Context() types.Context

func (*CommitFilesController) GetKeybindings

func (self *CommitFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*CommitFilesController) GetMouseKeybindings

func (self *CommitFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*CommitFilesController) GetOnClick

func (self *CommitFilesController) GetOnClick() func() error

func (*CommitFilesController) GetOnFocus added in v0.39.0

func (self *CommitFilesController) GetOnFocus() func(types.OnFocusOpts) error

func (*CommitFilesController) GetOnFocusLost added in v0.39.0

func (self *CommitFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*CommitFilesController) GetOnRenderToMain added in v0.39.0

func (self *CommitFilesController) GetOnRenderToMain() func() error

type CommitMessageController

type CommitMessageController struct {
	// contains filtered or unexported fields
}

func NewCommitMessageController

func NewCommitMessageController(
	common *ControllerCommon,
) *CommitMessageController

func (*CommitMessageController) Context

func (self *CommitMessageController) Context() types.Context

func (*CommitMessageController) GetKeybindings

func (self *CommitMessageController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

TODO: merge that commit panel PR because we're not currently showing how to add a newline as it's handled by the editor func rather than by the controller here.

func (*CommitMessageController) GetMouseKeybindings

func (self *CommitMessageController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*CommitMessageController) GetOnClick

func (self *CommitMessageController) GetOnClick() func() error

func (*CommitMessageController) GetOnFocus added in v0.39.0

func (self *CommitMessageController) GetOnFocus() func(types.OnFocusOpts) error

func (*CommitMessageController) GetOnFocusLost added in v0.39.0

func (self *CommitMessageController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*CommitMessageController) GetOnRenderToMain added in v0.39.0

func (self *CommitMessageController) GetOnRenderToMain() func() error

type ConfirmationController added in v0.39.0

type ConfirmationController struct {
	// contains filtered or unexported fields
}

func NewConfirmationController added in v0.39.0

func NewConfirmationController(
	common *ControllerCommon,
) *ConfirmationController

func (*ConfirmationController) Context added in v0.39.0

func (self *ConfirmationController) Context() types.Context

func (*ConfirmationController) GetKeybindings added in v0.39.0

func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*ConfirmationController) GetMouseKeybindings added in v0.39.0

func (self *ConfirmationController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*ConfirmationController) GetOnClick added in v0.39.0

func (self *ConfirmationController) GetOnClick() func() error

func (*ConfirmationController) GetOnFocus added in v0.39.0

func (self *ConfirmationController) GetOnFocus() func(types.OnFocusOpts) error

func (*ConfirmationController) GetOnFocusLost added in v0.39.0

func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*ConfirmationController) GetOnRenderToMain added in v0.39.0

func (self *ConfirmationController) GetOnRenderToMain() func() error

type ContainsCommits

type ContainsCommits interface {
	types.Context
	GetSelected() *models.Commit
	GetCommits() []*models.Commit
	GetSelectedLineIdx() int
}

type ContextLinesController added in v0.36.0

type ContextLinesController struct {
	// contains filtered or unexported fields
}

func NewContextLinesController added in v0.36.0

func NewContextLinesController(
	common *ControllerCommon,
) *ContextLinesController

func (*ContextLinesController) Context added in v0.36.0

func (self *ContextLinesController) Context() types.Context

func (*ContextLinesController) Decrease added in v0.36.0

func (self *ContextLinesController) Decrease() error

func (*ContextLinesController) GetKeybindings added in v0.36.0

func (self *ContextLinesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*ContextLinesController) GetMouseKeybindings added in v0.36.0

func (self *ContextLinesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*ContextLinesController) GetOnClick added in v0.36.0

func (self *ContextLinesController) GetOnClick() func() error

func (*ContextLinesController) GetOnFocus added in v0.39.0

func (self *ContextLinesController) GetOnFocus() func(types.OnFocusOpts) error

func (*ContextLinesController) GetOnFocusLost added in v0.39.0

func (self *ContextLinesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*ContextLinesController) GetOnRenderToMain added in v0.39.0

func (self *ContextLinesController) GetOnRenderToMain() func() error

func (*ContextLinesController) Increase added in v0.36.0

func (self *ContextLinesController) Increase() error

type ControllerCommon added in v0.39.0

type ControllerCommon struct {
	*helpers.HelperCommon
	IGetHelpers
}

func NewControllerCommon

func NewControllerCommon(
	c *helpers.HelperCommon,
	IGetHelpers IGetHelpers,
) *ControllerCommon

type CustomCommandAction added in v0.39.0

type CustomCommandAction struct {
	// contains filtered or unexported fields
}

func (*CustomCommandAction) Call added in v0.39.0

func (self *CustomCommandAction) Call() error

func (*CustomCommandAction) GetCustomCommandsHistorySuggestionsFunc added in v0.39.0

func (self *CustomCommandAction) GetCustomCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion

type CustomPatchOptionsMenuAction added in v0.39.0

type CustomPatchOptionsMenuAction struct {
	// contains filtered or unexported fields
}

func (*CustomPatchOptionsMenuAction) Call added in v0.39.0

func (self *CustomPatchOptionsMenuAction) Call() error

type DiffingMenuAction added in v0.39.0

type DiffingMenuAction struct {
	// contains filtered or unexported fields
}

func (*DiffingMenuAction) Call added in v0.39.0

func (self *DiffingMenuAction) Call() error

type FilesController

type FilesController struct {
	// contains filtered or unexported fields
}

func NewFilesController

func NewFilesController(
	common *ControllerCommon,
) *FilesController

func (*FilesController) Context

func (self *FilesController) Context() types.Context

func (*FilesController) EnterFile

func (self *FilesController) EnterFile(opts types.OnFocusOpts) error

func (*FilesController) GetKeybindings

func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*FilesController) GetMouseKeybindings

func (self *FilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*FilesController) GetOnClick

func (self *FilesController) GetOnClick() func() error

func (*FilesController) GetOnFocus added in v0.39.0

func (self *FilesController) GetOnFocus() func(types.OnFocusOpts) error

func (*FilesController) GetOnFocusLost added in v0.39.0

func (self *FilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*FilesController) GetOnRenderToMain added in v0.39.0

func (self *FilesController) GetOnRenderToMain() func() error

func (*FilesController) Open

func (self *FilesController) Open() error

type FilesRemoveController

type FilesRemoveController struct {
	// contains filtered or unexported fields
}

func NewFilesRemoveController

func NewFilesRemoveController(
	common *ControllerCommon,
) *FilesRemoveController

func (*FilesRemoveController) Context

func (self *FilesRemoveController) Context() types.Context

func (*FilesRemoveController) GetKeybindings

func (self *FilesRemoveController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*FilesRemoveController) GetMouseKeybindings

func (self *FilesRemoveController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*FilesRemoveController) GetOnClick

func (self *FilesRemoveController) GetOnClick() func() error

func (*FilesRemoveController) GetOnFocus added in v0.39.0

func (self *FilesRemoveController) GetOnFocus() func(types.OnFocusOpts) error

func (*FilesRemoveController) GetOnFocusLost added in v0.39.0

func (self *FilesRemoveController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*FilesRemoveController) GetOnRenderToMain added in v0.39.0

func (self *FilesRemoveController) GetOnRenderToMain() func() error

func (*FilesRemoveController) ResetSubmodule

func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleConfig) error

type FilterController added in v0.39.0

type FilterController struct {
	// contains filtered or unexported fields
}

func (*FilterController) Context added in v0.39.0

func (self *FilterController) Context() types.Context

func (*FilterController) GetKeybindings added in v0.39.0

func (self *FilterController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*FilterController) GetMouseKeybindings added in v0.39.0

func (self *FilterController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*FilterController) GetOnClick added in v0.39.0

func (self *FilterController) GetOnClick() func() error

func (*FilterController) GetOnFocus added in v0.39.0

func (self *FilterController) GetOnFocus() func(types.OnFocusOpts) error

func (*FilterController) GetOnFocusLost added in v0.39.0

func (self *FilterController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*FilterController) GetOnRenderToMain added in v0.39.0

func (self *FilterController) GetOnRenderToMain() func() error

func (*FilterController) OpenFilterPrompt added in v0.39.0

func (self *FilterController) OpenFilterPrompt() error

type FilterControllerFactory added in v0.39.0

type FilterControllerFactory struct {
	// contains filtered or unexported fields
}

func NewFilterControllerFactory added in v0.39.0

func NewFilterControllerFactory(c *ControllerCommon) *FilterControllerFactory

func (*FilterControllerFactory) Create added in v0.39.0

type FilteringMenuAction added in v0.39.0

type FilteringMenuAction struct {
	// contains filtered or unexported fields
}

func (*FilteringMenuAction) Call added in v0.39.0

func (self *FilteringMenuAction) Call() error

type GitFlowController

type GitFlowController struct {
	// contains filtered or unexported fields
}

func NewGitFlowController

func NewGitFlowController(
	common *ControllerCommon,
) *GitFlowController

func (*GitFlowController) Context

func (self *GitFlowController) Context() types.Context

func (*GitFlowController) GetKeybindings

func (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*GitFlowController) GetMouseKeybindings

func (self *GitFlowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*GitFlowController) GetOnClick

func (self *GitFlowController) GetOnClick() func() error

func (*GitFlowController) GetOnFocus added in v0.39.0

func (self *GitFlowController) GetOnFocus() func(types.OnFocusOpts) error

func (*GitFlowController) GetOnFocusLost added in v0.39.0

func (self *GitFlowController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*GitFlowController) GetOnRenderToMain added in v0.39.0

func (self *GitFlowController) GetOnRenderToMain() func() error

type GlobalController

type GlobalController struct {
	// contains filtered or unexported fields
}

func NewGlobalController

func NewGlobalController(
	common *ControllerCommon,
) *GlobalController

func (*GlobalController) Context

func (self *GlobalController) Context() types.Context

func (*GlobalController) GetKeybindings

func (self *GlobalController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*GlobalController) GetMouseKeybindings

func (self *GlobalController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*GlobalController) GetOnClick

func (self *GlobalController) GetOnClick() func() error

func (*GlobalController) GetOnFocus added in v0.39.0

func (self *GlobalController) GetOnFocus() func(types.OnFocusOpts) error

func (*GlobalController) GetOnFocusLost added in v0.39.0

func (self *GlobalController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*GlobalController) GetOnRenderToMain added in v0.39.0

func (self *GlobalController) GetOnRenderToMain() func() error

type IGetHelpers added in v0.39.0

type IGetHelpers interface {
	Helpers() *helpers.Helpers
}

type JumpToSideWindowController added in v0.39.0

type JumpToSideWindowController struct {
	// contains filtered or unexported fields
}

func NewJumpToSideWindowController added in v0.39.0

func NewJumpToSideWindowController(
	common *ControllerCommon,
) *JumpToSideWindowController

func (*JumpToSideWindowController) Context added in v0.39.0

func (self *JumpToSideWindowController) Context() types.Context

func (*JumpToSideWindowController) GetKeybindings added in v0.39.0

func (self *JumpToSideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*JumpToSideWindowController) GetMouseKeybindings added in v0.39.0

func (self *JumpToSideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*JumpToSideWindowController) GetOnClick added in v0.39.0

func (self *JumpToSideWindowController) GetOnClick() func() error

func (*JumpToSideWindowController) GetOnFocus added in v0.39.0

func (self *JumpToSideWindowController) GetOnFocus() func(types.OnFocusOpts) error

func (*JumpToSideWindowController) GetOnFocusLost added in v0.39.0

func (self *JumpToSideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*JumpToSideWindowController) GetOnRenderToMain added in v0.39.0

func (self *JumpToSideWindowController) GetOnRenderToMain() func() error

type ListController

type ListController struct {
	// contains filtered or unexported fields
}

func (*ListController) Context

func (self *ListController) Context() types.Context

func (*ListController) GetKeybindings

func (self *ListController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*ListController) GetMouseKeybindings

func (self *ListController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*ListController) GetOnClick

func (self *ListController) GetOnClick() func() error

func (*ListController) GetOnFocus added in v0.39.0

func (self *ListController) GetOnFocus() func(types.OnFocusOpts) error

func (*ListController) GetOnFocusLost added in v0.39.0

func (self *ListController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*ListController) GetOnRenderToMain added in v0.39.0

func (self *ListController) GetOnRenderToMain() func() error

func (*ListController) HandleClick

func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error

func (*ListController) HandleGotoBottom

func (self *ListController) HandleGotoBottom() error

func (*ListController) HandleGotoTop

func (self *ListController) HandleGotoTop() error

func (*ListController) HandleNextLine

func (self *ListController) HandleNextLine() error

func (*ListController) HandleNextPage

func (self *ListController) HandleNextPage() error

func (*ListController) HandlePrevLine

func (self *ListController) HandlePrevLine() error

func (*ListController) HandlePrevPage

func (self *ListController) HandlePrevPage() error

func (*ListController) HandleScrollDown

func (self *ListController) HandleScrollDown() error

func (*ListController) HandleScrollLeft

func (self *ListController) HandleScrollLeft() error

func (*ListController) HandleScrollRight

func (self *ListController) HandleScrollRight() error

func (*ListController) HandleScrollUp

func (self *ListController) HandleScrollUp() error

type ListControllerFactory

type ListControllerFactory struct {
	// contains filtered or unexported fields
}

func NewListControllerFactory

func NewListControllerFactory(c *ControllerCommon) *ListControllerFactory

func (*ListControllerFactory) Create

func (self *ListControllerFactory) Create(context types.IListContext) *ListController

type LocalCommitsController

type LocalCommitsController struct {
	// contains filtered or unexported fields
}

func NewLocalCommitsController

func NewLocalCommitsController(
	common *ControllerCommon,
	pullFiles PullFilesFn,
) *LocalCommitsController

func (*LocalCommitsController) Context

func (self *LocalCommitsController) Context() types.Context

func (*LocalCommitsController) GetKeybindings

func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*LocalCommitsController) GetMouseKeybindings

func (self *LocalCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*LocalCommitsController) GetOnClick

func (self *LocalCommitsController) GetOnClick() func() error

func (*LocalCommitsController) GetOnFocus added in v0.39.0

func (self *LocalCommitsController) GetOnFocus() func(types.OnFocusOpts) error

func (*LocalCommitsController) GetOnFocusLost added in v0.39.0

func (self *LocalCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*LocalCommitsController) GetOnRenderToMain added in v0.39.0

func (self *LocalCommitsController) GetOnRenderToMain() func() error
type MenuController struct {
	// contains filtered or unexported fields
}

func NewMenuController

func NewMenuController(
	common *ControllerCommon,
) *MenuController
func (self *MenuController) Context() types.Context
func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

NOTE: if you add a new keybinding here, you'll also need to add it to `reservedKeys` in `pkg/gui/context/menu_context.go`

func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (self *MenuController) GetOnClick() func() error
func (self *MenuController) GetOnFocus() func(types.OnFocusOpts) error
func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (self *MenuController) GetOnRenderToMain() func() error

type MergeConflictsController added in v0.36.0

type MergeConflictsController struct {
	// contains filtered or unexported fields
}

func NewMergeConflictsController added in v0.36.0

func NewMergeConflictsController(
	common *ControllerCommon,
) *MergeConflictsController

func (*MergeConflictsController) Context added in v0.36.0

func (self *MergeConflictsController) Context() types.Context

func (*MergeConflictsController) Escape added in v0.36.0

func (self *MergeConflictsController) Escape() error

func (*MergeConflictsController) GetKeybindings added in v0.36.0

func (self *MergeConflictsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*MergeConflictsController) GetMouseKeybindings added in v0.36.0

func (self *MergeConflictsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*MergeConflictsController) GetOnClick added in v0.36.0

func (self *MergeConflictsController) GetOnClick() func() error

func (*MergeConflictsController) GetOnFocus added in v0.39.0

func (self *MergeConflictsController) GetOnFocus() func(types.OnFocusOpts) error

func (*MergeConflictsController) GetOnFocusLost added in v0.39.0

func (self *MergeConflictsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*MergeConflictsController) GetOnRenderToMain added in v0.39.0

func (self *MergeConflictsController) GetOnRenderToMain() func() error

func (*MergeConflictsController) HandleEditFile added in v0.36.0

func (self *MergeConflictsController) HandleEditFile() error

func (*MergeConflictsController) HandleOpenFile added in v0.36.0

func (self *MergeConflictsController) HandleOpenFile() error

func (*MergeConflictsController) HandlePickAllHunks added in v0.36.0

func (self *MergeConflictsController) HandlePickAllHunks() error

func (*MergeConflictsController) HandlePickHunk added in v0.36.0

func (self *MergeConflictsController) HandlePickHunk() error

func (*MergeConflictsController) HandleScrollDown added in v0.36.0

func (self *MergeConflictsController) HandleScrollDown() error

func (*MergeConflictsController) HandleScrollLeft added in v0.36.0

func (self *MergeConflictsController) HandleScrollLeft() error

func (*MergeConflictsController) HandleScrollRight added in v0.36.0

func (self *MergeConflictsController) HandleScrollRight() error

func (*MergeConflictsController) HandleScrollUp added in v0.36.0

func (self *MergeConflictsController) HandleScrollUp() error

func (*MergeConflictsController) HandleUndo added in v0.36.0

func (self *MergeConflictsController) HandleUndo() error

func (*MergeConflictsController) NextConflict added in v0.36.0

func (self *MergeConflictsController) NextConflict() error

func (*MergeConflictsController) NextConflictHunk added in v0.36.0

func (self *MergeConflictsController) NextConflictHunk() error

func (*MergeConflictsController) PrevConflict added in v0.36.0

func (self *MergeConflictsController) PrevConflict() error

func (*MergeConflictsController) PrevConflictHunk added in v0.36.0

func (self *MergeConflictsController) PrevConflictHunk() error

type OptionsMenuAction added in v0.39.0

type OptionsMenuAction struct {
	// contains filtered or unexported fields
}

func (*OptionsMenuAction) Call added in v0.39.0

func (self *OptionsMenuAction) Call() error

type PatchBuildingController added in v0.36.0

type PatchBuildingController struct {
	// contains filtered or unexported fields
}

func NewPatchBuildingController added in v0.36.0

func NewPatchBuildingController(
	common *ControllerCommon,
) *PatchBuildingController

func (*PatchBuildingController) Context added in v0.36.0

func (self *PatchBuildingController) Context() types.Context

func (*PatchBuildingController) EditFile added in v0.36.0

func (self *PatchBuildingController) EditFile() error

func (*PatchBuildingController) Escape added in v0.36.0

func (self *PatchBuildingController) Escape() error

func (*PatchBuildingController) GetKeybindings added in v0.36.0

func (self *PatchBuildingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*PatchBuildingController) GetMouseKeybindings added in v0.36.0

func (self *PatchBuildingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*PatchBuildingController) GetOnClick added in v0.36.0

func (self *PatchBuildingController) GetOnClick() func() error

func (*PatchBuildingController) GetOnFocus added in v0.39.0

func (self *PatchBuildingController) GetOnFocus() func(types.OnFocusOpts) error

func (*PatchBuildingController) GetOnFocusLost added in v0.39.0

func (self *PatchBuildingController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*PatchBuildingController) GetOnRenderToMain added in v0.39.0

func (self *PatchBuildingController) GetOnRenderToMain() func() error

func (*PatchBuildingController) OpenFile added in v0.36.0

func (self *PatchBuildingController) OpenFile() error

func (*PatchBuildingController) ToggleSelectionAndRefresh added in v0.36.0

func (self *PatchBuildingController) ToggleSelectionAndRefresh() error

type PatchExplorerController added in v0.36.0

type PatchExplorerController struct {
	// contains filtered or unexported fields
}

func (*PatchExplorerController) Context added in v0.36.0

func (self *PatchExplorerController) Context() types.Context

func (*PatchExplorerController) CopySelectedToClipboard added in v0.36.0

func (self *PatchExplorerController) CopySelectedToClipboard() error

func (*PatchExplorerController) GetKeybindings added in v0.36.0

func (self *PatchExplorerController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*PatchExplorerController) GetMouseKeybindings added in v0.36.0

func (self *PatchExplorerController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*PatchExplorerController) GetOnClick added in v0.36.0

func (self *PatchExplorerController) GetOnClick() func() error

func (*PatchExplorerController) GetOnFocus added in v0.39.0

func (self *PatchExplorerController) GetOnFocus() func(types.OnFocusOpts) error

func (*PatchExplorerController) GetOnFocusLost added in v0.39.0

func (self *PatchExplorerController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*PatchExplorerController) GetOnRenderToMain added in v0.39.0

func (self *PatchExplorerController) GetOnRenderToMain() func() error

func (*PatchExplorerController) HandleGotoBottom added in v0.36.0

func (self *PatchExplorerController) HandleGotoBottom() error

func (*PatchExplorerController) HandleGotoTop added in v0.36.0

func (self *PatchExplorerController) HandleGotoTop() error

func (*PatchExplorerController) HandleMouseDown added in v0.36.0

func (self *PatchExplorerController) HandleMouseDown() error

func (*PatchExplorerController) HandleMouseDrag added in v0.36.0

func (self *PatchExplorerController) HandleMouseDrag() error

func (*PatchExplorerController) HandleNextHunk added in v0.36.0

func (self *PatchExplorerController) HandleNextHunk() error

func (*PatchExplorerController) HandleNextLine added in v0.36.0

func (self *PatchExplorerController) HandleNextLine() error

func (*PatchExplorerController) HandleNextPage added in v0.36.0

func (self *PatchExplorerController) HandleNextPage() error

func (*PatchExplorerController) HandlePrevHunk added in v0.36.0

func (self *PatchExplorerController) HandlePrevHunk() error

func (*PatchExplorerController) HandlePrevLine added in v0.36.0

func (self *PatchExplorerController) HandlePrevLine() error

func (*PatchExplorerController) HandlePrevPage added in v0.36.0

func (self *PatchExplorerController) HandlePrevPage() error

func (*PatchExplorerController) HandleScrollLeft added in v0.36.0

func (self *PatchExplorerController) HandleScrollLeft() error

func (*PatchExplorerController) HandleScrollRight added in v0.36.0

func (self *PatchExplorerController) HandleScrollRight() error

func (*PatchExplorerController) HandleToggleSelectHunk added in v0.36.0

func (self *PatchExplorerController) HandleToggleSelectHunk() error

func (*PatchExplorerController) HandleToggleSelectRange added in v0.36.0

func (self *PatchExplorerController) HandleToggleSelectRange() error

type PatchExplorerControllerFactory added in v0.36.0

type PatchExplorerControllerFactory struct {
	// contains filtered or unexported fields
}

func NewPatchExplorerControllerFactory added in v0.36.0

func NewPatchExplorerControllerFactory(c *ControllerCommon) *PatchExplorerControllerFactory

func (*PatchExplorerControllerFactory) Create added in v0.36.0

type PullFilesFn

type PullFilesFn func() error

type PullFilesOptions

type PullFilesOptions struct {
	UpstreamRemote  string
	UpstreamBranch  string
	FastForwardOnly bool
	Action          string
}

type QuitActions added in v0.39.0

type QuitActions struct {
	// contains filtered or unexported fields
}

func (*QuitActions) Escape added in v0.39.0

func (self *QuitActions) Escape() error

func (*QuitActions) Quit added in v0.39.0

func (self *QuitActions) Quit() error

func (*QuitActions) QuitWithoutChangingDirectory added in v0.39.0

func (self *QuitActions) QuitWithoutChangingDirectory() error

type ReflogActionKind

type ReflogActionKind int
const (
	CHECKOUT ReflogActionKind = iota
	COMMIT
	REBASE
	CURRENT_REBASE
)

type ReflogCommitsController added in v0.39.0

type ReflogCommitsController struct {
	// contains filtered or unexported fields
}

func NewReflogCommitsController added in v0.39.0

func NewReflogCommitsController(
	common *ControllerCommon,
) *ReflogCommitsController

func (*ReflogCommitsController) Context added in v0.39.0

func (self *ReflogCommitsController) Context() types.Context

func (*ReflogCommitsController) GetKeybindings added in v0.39.0

func (self *ReflogCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*ReflogCommitsController) GetMouseKeybindings added in v0.39.0

func (self *ReflogCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*ReflogCommitsController) GetOnClick added in v0.39.0

func (self *ReflogCommitsController) GetOnClick() func() error

func (*ReflogCommitsController) GetOnFocus added in v0.39.0

func (self *ReflogCommitsController) GetOnFocus() func(types.OnFocusOpts) error

func (*ReflogCommitsController) GetOnFocusLost added in v0.39.0

func (self *ReflogCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*ReflogCommitsController) GetOnRenderToMain added in v0.39.0

func (self *ReflogCommitsController) GetOnRenderToMain() func() error

type RemoteBranchesController

type RemoteBranchesController struct {
	// contains filtered or unexported fields
}

func NewRemoteBranchesController

func NewRemoteBranchesController(
	common *ControllerCommon,
) *RemoteBranchesController

func (*RemoteBranchesController) Context

func (self *RemoteBranchesController) Context() types.Context

func (*RemoteBranchesController) GetKeybindings

func (self *RemoteBranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*RemoteBranchesController) GetMouseKeybindings

func (self *RemoteBranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*RemoteBranchesController) GetOnClick

func (self *RemoteBranchesController) GetOnClick() func() error

func (*RemoteBranchesController) GetOnFocus added in v0.39.0

func (self *RemoteBranchesController) GetOnFocus() func(types.OnFocusOpts) error

func (*RemoteBranchesController) GetOnFocusLost added in v0.39.0

func (self *RemoteBranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*RemoteBranchesController) GetOnRenderToMain added in v0.39.0

func (self *RemoteBranchesController) GetOnRenderToMain() func() error

type RemotesController

type RemotesController struct {
	// contains filtered or unexported fields
}

func NewRemotesController

func NewRemotesController(
	common *ControllerCommon,
	setRemoteBranches func([]*models.RemoteBranch),
) *RemotesController

func (*RemotesController) Context

func (self *RemotesController) Context() types.Context

func (*RemotesController) GetKeybindings

func (self *RemotesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*RemotesController) GetMouseKeybindings

func (self *RemotesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*RemotesController) GetOnClick

func (self *RemotesController) GetOnClick() func() error

func (*RemotesController) GetOnFocus added in v0.39.0

func (self *RemotesController) GetOnFocus() func(types.OnFocusOpts) error

func (*RemotesController) GetOnFocusLost added in v0.39.0

func (self *RemotesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*RemotesController) GetOnRenderToMain added in v0.39.0

func (self *RemotesController) GetOnRenderToMain() func() error

type ScreenModeActions added in v0.39.0

type ScreenModeActions struct {
	// contains filtered or unexported fields
}

func (*ScreenModeActions) Next added in v0.39.0

func (self *ScreenModeActions) Next() error

func (*ScreenModeActions) Prev added in v0.39.0

func (self *ScreenModeActions) Prev() error

type SearchController added in v0.39.0

type SearchController struct {
	// contains filtered or unexported fields
}

func (*SearchController) Context added in v0.39.0

func (self *SearchController) Context() types.Context

func (*SearchController) GetKeybindings added in v0.39.0

func (self *SearchController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SearchController) GetMouseKeybindings added in v0.39.0

func (self *SearchController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SearchController) GetOnClick added in v0.39.0

func (self *SearchController) GetOnClick() func() error

func (*SearchController) GetOnFocus added in v0.39.0

func (self *SearchController) GetOnFocus() func(types.OnFocusOpts) error

func (*SearchController) GetOnFocusLost added in v0.39.0

func (self *SearchController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SearchController) GetOnRenderToMain added in v0.39.0

func (self *SearchController) GetOnRenderToMain() func() error

func (*SearchController) OpenSearchPrompt added in v0.39.0

func (self *SearchController) OpenSearchPrompt() error

type SearchControllerFactory added in v0.39.0

type SearchControllerFactory struct {
	// contains filtered or unexported fields
}

func NewSearchControllerFactory added in v0.39.0

func NewSearchControllerFactory(c *ControllerCommon) *SearchControllerFactory

func (*SearchControllerFactory) Create added in v0.39.0

type SearchPromptController added in v0.39.0

type SearchPromptController struct {
	// contains filtered or unexported fields
}

func NewSearchPromptController added in v0.39.0

func NewSearchPromptController(
	common *ControllerCommon,
) *SearchPromptController

func (*SearchPromptController) Context added in v0.39.0

func (self *SearchPromptController) Context() types.Context

func (*SearchPromptController) GetKeybindings added in v0.39.0

func (self *SearchPromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SearchPromptController) GetMouseKeybindings added in v0.39.0

func (self *SearchPromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SearchPromptController) GetOnClick added in v0.39.0

func (self *SearchPromptController) GetOnClick() func() error

func (*SearchPromptController) GetOnFocus added in v0.39.0

func (self *SearchPromptController) GetOnFocus() func(types.OnFocusOpts) error

func (*SearchPromptController) GetOnFocusLost added in v0.39.0

func (self *SearchPromptController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SearchPromptController) GetOnRenderToMain added in v0.39.0

func (self *SearchPromptController) GetOnRenderToMain() func() error

type SideWindowController added in v0.39.0

type SideWindowController struct {
	// contains filtered or unexported fields
}

func NewSideWindowController added in v0.39.0

func NewSideWindowController(
	common *ControllerCommon,
	context types.Context,
) *SideWindowController

func (*SideWindowController) Context added in v0.39.0

func (self *SideWindowController) Context() types.Context

func (*SideWindowController) GetKeybindings added in v0.39.0

func (self *SideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SideWindowController) GetMouseKeybindings added in v0.39.0

func (self *SideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SideWindowController) GetOnClick added in v0.39.0

func (self *SideWindowController) GetOnClick() func() error

func (*SideWindowController) GetOnFocus added in v0.39.0

func (self *SideWindowController) GetOnFocus() func(types.OnFocusOpts) error

func (*SideWindowController) GetOnFocusLost added in v0.39.0

func (self *SideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SideWindowController) GetOnRenderToMain added in v0.39.0

func (self *SideWindowController) GetOnRenderToMain() func() error

type SideWindowControllerFactory added in v0.39.0

type SideWindowControllerFactory struct {
	// contains filtered or unexported fields
}

func NewSideWindowControllerFactory added in v0.39.0

func NewSideWindowControllerFactory(common *ControllerCommon) *SideWindowControllerFactory

func (*SideWindowControllerFactory) Create added in v0.39.0

type SnakeController added in v0.37.0

type SnakeController struct {
	// contains filtered or unexported fields
}

func NewSnakeController added in v0.37.0

func NewSnakeController(
	common *ControllerCommon,
) *SnakeController

func (*SnakeController) Context added in v0.37.0

func (self *SnakeController) Context() types.Context

func (*SnakeController) Escape added in v0.37.0

func (self *SnakeController) Escape() error

func (*SnakeController) GetKeybindings added in v0.37.0

func (self *SnakeController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SnakeController) GetMouseKeybindings added in v0.37.0

func (self *SnakeController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SnakeController) GetOnClick added in v0.37.0

func (self *SnakeController) GetOnClick() func() error

func (*SnakeController) GetOnFocus added in v0.39.0

func (self *SnakeController) GetOnFocus() func(types.OnFocusOpts) error

func (*SnakeController) GetOnFocusLost added in v0.39.0

func (self *SnakeController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SnakeController) GetOnRenderToMain added in v0.39.0

func (self *SnakeController) GetOnRenderToMain() func() error

func (*SnakeController) SetDirection added in v0.37.0

func (self *SnakeController) SetDirection(direction snake.Direction) func() error

type StagingController added in v0.36.0

type StagingController struct {
	// contains filtered or unexported fields
}

func NewStagingController added in v0.36.0

func NewStagingController(
	common *ControllerCommon,
	context types.IPatchExplorerContext,
	otherContext types.IPatchExplorerContext,
	staged bool,
) *StagingController

func (*StagingController) Context added in v0.36.0

func (self *StagingController) Context() types.Context

func (*StagingController) DiscardSelection added in v0.39.0

func (self *StagingController) DiscardSelection() error

func (*StagingController) EditFile added in v0.36.0

func (self *StagingController) EditFile() error

func (*StagingController) EditHunkAndRefresh added in v0.36.0

func (self *StagingController) EditHunkAndRefresh() error

func (*StagingController) Escape added in v0.36.0

func (self *StagingController) Escape() error

func (*StagingController) FilePath added in v0.36.0

func (self *StagingController) FilePath() string

func (*StagingController) GetKeybindings added in v0.36.0

func (self *StagingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*StagingController) GetMouseKeybindings added in v0.36.0

func (self *StagingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*StagingController) GetOnClick added in v0.36.0

func (self *StagingController) GetOnClick() func() error

func (*StagingController) GetOnFocus added in v0.39.0

func (self *StagingController) GetOnFocus() func(types.OnFocusOpts) error

func (*StagingController) GetOnFocusLost added in v0.39.0

func (self *StagingController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*StagingController) GetOnRenderToMain added in v0.39.0

func (self *StagingController) GetOnRenderToMain() func() error

func (*StagingController) OpenFile added in v0.36.0

func (self *StagingController) OpenFile() error

func (*StagingController) TogglePanel added in v0.36.0

func (self *StagingController) TogglePanel() error

func (*StagingController) ToggleStaged added in v0.36.0

func (self *StagingController) ToggleStaged() error

type StashController

type StashController struct {
	// contains filtered or unexported fields
}

func NewStashController

func NewStashController(
	common *ControllerCommon,
) *StashController

func (*StashController) Context

func (self *StashController) Context() types.Context

func (*StashController) GetKeybindings

func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*StashController) GetMouseKeybindings

func (self *StashController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*StashController) GetOnClick

func (self *StashController) GetOnClick() func() error

func (*StashController) GetOnFocus added in v0.39.0

func (self *StashController) GetOnFocus() func(types.OnFocusOpts) error

func (*StashController) GetOnFocusLost added in v0.39.0

func (self *StashController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*StashController) GetOnRenderToMain added in v0.39.0

func (self *StashController) GetOnRenderToMain() func() error

type StatusController added in v0.39.0

type StatusController struct {
	// contains filtered or unexported fields
}

func NewStatusController added in v0.39.0

func NewStatusController(
	common *ControllerCommon,
) *StatusController

func (*StatusController) Context added in v0.39.0

func (self *StatusController) Context() types.Context

func (*StatusController) GetKeybindings added in v0.39.0

func (self *StatusController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*StatusController) GetMouseKeybindings added in v0.39.0

func (self *StatusController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*StatusController) GetOnClick added in v0.39.0

func (self *StatusController) GetOnClick() func() error

func (*StatusController) GetOnFocus added in v0.39.0

func (self *StatusController) GetOnFocus() func(types.OnFocusOpts) error

func (*StatusController) GetOnFocusLost added in v0.39.0

func (self *StatusController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*StatusController) GetOnRenderToMain added in v0.39.0

func (self *StatusController) GetOnRenderToMain() func() error

type SubCommitsController added in v0.39.0

type SubCommitsController struct {
	// contains filtered or unexported fields
}

func NewSubCommitsController added in v0.39.0

func NewSubCommitsController(
	common *ControllerCommon,
) *SubCommitsController

func (*SubCommitsController) Context added in v0.39.0

func (self *SubCommitsController) Context() types.Context

func (*SubCommitsController) GetKeybindings added in v0.39.0

func (self *SubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SubCommitsController) GetMouseKeybindings added in v0.39.0

func (self *SubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SubCommitsController) GetOnClick added in v0.39.0

func (self *SubCommitsController) GetOnClick() func() error

func (*SubCommitsController) GetOnFocus added in v0.39.0

func (self *SubCommitsController) GetOnFocus() func(types.OnFocusOpts) error

func (*SubCommitsController) GetOnFocusLost added in v0.39.0

func (self *SubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SubCommitsController) GetOnRenderToMain added in v0.39.0

func (self *SubCommitsController) GetOnRenderToMain() func() error

type SubmodulesController

type SubmodulesController struct {
	// contains filtered or unexported fields
}

func NewSubmodulesController

func NewSubmodulesController(
	controllerCommon *ControllerCommon,
) *SubmodulesController

func (*SubmodulesController) Context

func (self *SubmodulesController) Context() types.Context

func (*SubmodulesController) GetKeybindings

func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SubmodulesController) GetMouseKeybindings

func (self *SubmodulesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SubmodulesController) GetOnClick

func (self *SubmodulesController) GetOnClick() func() error

func (*SubmodulesController) GetOnFocus added in v0.39.0

func (self *SubmodulesController) GetOnFocus() func(types.OnFocusOpts) error

func (*SubmodulesController) GetOnFocusLost added in v0.39.0

func (self *SubmodulesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SubmodulesController) GetOnRenderToMain added in v0.39.0

func (self *SubmodulesController) GetOnRenderToMain() func() error

type SuggestionsController added in v0.39.0

type SuggestionsController struct {
	// contains filtered or unexported fields
}

func NewSuggestionsController added in v0.39.0

func NewSuggestionsController(
	common *ControllerCommon,
) *SuggestionsController

func (*SuggestionsController) Context added in v0.39.0

func (self *SuggestionsController) Context() types.Context

func (*SuggestionsController) GetKeybindings added in v0.39.0

func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SuggestionsController) GetMouseKeybindings added in v0.39.0

func (self *SuggestionsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SuggestionsController) GetOnClick added in v0.39.0

func (self *SuggestionsController) GetOnClick() func() error

func (*SuggestionsController) GetOnFocus added in v0.39.0

func (self *SuggestionsController) GetOnFocus() func(types.OnFocusOpts) error

func (*SuggestionsController) GetOnFocusLost added in v0.39.0

func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SuggestionsController) GetOnRenderToMain added in v0.39.0

func (self *SuggestionsController) GetOnRenderToMain() func() error

type SwitchToCommitFilesContextOpts

type SwitchToCommitFilesContextOpts struct {
	// this is something like a commit or branch
	Ref types.Ref

	// from the local commits view we're allowed to do rebase stuff with any patch
	// we generate from the diff files context, but we don't have that same ability
	// with say the sub commits context or the reflog context.
	CanRebase bool

	Context types.Context
}

all fields mandatory (except `CanRebase` because it's boolean)

type SwitchToDiffFilesController

type SwitchToDiffFilesController struct {
	// contains filtered or unexported fields
}

func NewSwitchToDiffFilesController

func NewSwitchToDiffFilesController(
	c *ControllerCommon,
	context CanSwitchToDiffFiles,
	diffFilesContext *context.CommitFilesContext,
) *SwitchToDiffFilesController

func (*SwitchToDiffFilesController) Context

func (self *SwitchToDiffFilesController) Context() types.Context

func (*SwitchToDiffFilesController) GetKeybindings

func (self *SwitchToDiffFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SwitchToDiffFilesController) GetMouseKeybindings

func (self *SwitchToDiffFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SwitchToDiffFilesController) GetOnClick

func (self *SwitchToDiffFilesController) GetOnClick() func() error

func (*SwitchToDiffFilesController) GetOnFocus added in v0.39.0

func (self *SwitchToDiffFilesController) GetOnFocus() func(types.OnFocusOpts) error

func (*SwitchToDiffFilesController) GetOnFocusLost added in v0.39.0

func (self *SwitchToDiffFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SwitchToDiffFilesController) GetOnRenderToMain added in v0.39.0

func (self *SwitchToDiffFilesController) GetOnRenderToMain() func() error

type SwitchToSubCommitsController

type SwitchToSubCommitsController struct {
	// contains filtered or unexported fields
}

func NewSwitchToSubCommitsController

func NewSwitchToSubCommitsController(
	controllerCommon *ControllerCommon,
	setSubCommits func([]*models.Commit),
	context CanSwitchToSubCommits,
) *SwitchToSubCommitsController

func (*SwitchToSubCommitsController) Context

func (self *SwitchToSubCommitsController) Context() types.Context

func (*SwitchToSubCommitsController) GetKeybindings

func (self *SwitchToSubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SwitchToSubCommitsController) GetMouseKeybindings

func (self *SwitchToSubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SwitchToSubCommitsController) GetOnClick

func (self *SwitchToSubCommitsController) GetOnClick() func() error

func (*SwitchToSubCommitsController) GetOnFocus added in v0.39.0

func (self *SwitchToSubCommitsController) GetOnFocus() func(types.OnFocusOpts) error

func (*SwitchToSubCommitsController) GetOnFocusLost added in v0.39.0

func (self *SwitchToSubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SwitchToSubCommitsController) GetOnRenderToMain added in v0.39.0

func (self *SwitchToSubCommitsController) GetOnRenderToMain() func() error

type SyncController

type SyncController struct {
	// contains filtered or unexported fields
}

func NewSyncController

func NewSyncController(
	common *ControllerCommon,
) *SyncController

func (*SyncController) Context

func (self *SyncController) Context() types.Context

func (*SyncController) GetKeybindings

func (self *SyncController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*SyncController) GetMouseKeybindings

func (self *SyncController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*SyncController) GetOnClick

func (self *SyncController) GetOnClick() func() error

func (*SyncController) GetOnFocus added in v0.39.0

func (self *SyncController) GetOnFocus() func(types.OnFocusOpts) error

func (*SyncController) GetOnFocusLost added in v0.39.0

func (self *SyncController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*SyncController) GetOnRenderToMain added in v0.39.0

func (self *SyncController) GetOnRenderToMain() func() error

func (*SyncController) HandlePull

func (self *SyncController) HandlePull() error

func (*SyncController) HandlePush

func (self *SyncController) HandlePush() error

func (*SyncController) PullAux

func (self *SyncController) PullAux(opts PullFilesOptions) error

type TagsController

type TagsController struct {
	// contains filtered or unexported fields
}

func NewTagsController

func NewTagsController(
	common *ControllerCommon,
) *TagsController

func (*TagsController) Context

func (self *TagsController) Context() types.Context

func (*TagsController) GetKeybindings

func (self *TagsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*TagsController) GetMouseKeybindings

func (self *TagsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*TagsController) GetOnClick

func (self *TagsController) GetOnClick() func() error

func (*TagsController) GetOnFocus added in v0.39.0

func (self *TagsController) GetOnFocus() func(types.OnFocusOpts) error

func (*TagsController) GetOnFocusLost added in v0.39.0

func (self *TagsController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*TagsController) GetOnRenderToMain added in v0.39.0

func (self *TagsController) GetOnRenderToMain() func() error

type ToggleWhitespaceAction added in v0.39.0

type ToggleWhitespaceAction struct {
	// contains filtered or unexported fields
}

func (*ToggleWhitespaceAction) Call added in v0.39.0

func (self *ToggleWhitespaceAction) Call() error

type UndoController

type UndoController struct {
	// contains filtered or unexported fields
}

func NewUndoController

func NewUndoController(
	common *ControllerCommon,
) *UndoController

func (*UndoController) Context

func (self *UndoController) Context() types.Context

func (*UndoController) GetKeybindings

func (self *UndoController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*UndoController) GetMouseKeybindings

func (self *UndoController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*UndoController) GetOnClick

func (self *UndoController) GetOnClick() func() error

func (*UndoController) GetOnFocus added in v0.39.0

func (self *UndoController) GetOnFocus() func(types.OnFocusOpts) error

func (*UndoController) GetOnFocusLost added in v0.39.0

func (self *UndoController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*UndoController) GetOnRenderToMain added in v0.39.0

func (self *UndoController) GetOnRenderToMain() func() error

type VerticalScrollController added in v0.36.0

type VerticalScrollController struct {
	// contains filtered or unexported fields
}

func (*VerticalScrollController) Context added in v0.36.0

func (self *VerticalScrollController) Context() types.Context

func (*VerticalScrollController) GetKeybindings added in v0.36.0

func (self *VerticalScrollController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding

func (*VerticalScrollController) GetMouseKeybindings added in v0.36.0

func (self *VerticalScrollController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding

func (*VerticalScrollController) GetOnClick added in v0.36.0

func (self *VerticalScrollController) GetOnClick() func() error

func (*VerticalScrollController) GetOnFocus added in v0.39.0

func (self *VerticalScrollController) GetOnFocus() func(types.OnFocusOpts) error

func (*VerticalScrollController) GetOnFocusLost added in v0.39.0

func (self *VerticalScrollController) GetOnFocusLost() func(types.OnFocusLostOpts) error

func (*VerticalScrollController) GetOnRenderToMain added in v0.39.0

func (self *VerticalScrollController) GetOnRenderToMain() func() error

func (*VerticalScrollController) HandleScrollDown added in v0.36.0

func (self *VerticalScrollController) HandleScrollDown() error

func (*VerticalScrollController) HandleScrollUp added in v0.36.0

func (self *VerticalScrollController) HandleScrollUp() error

type VerticalScrollControllerFactory added in v0.36.0

type VerticalScrollControllerFactory struct {
	// contains filtered or unexported fields
}

given we have no fields here, arguably we shouldn't even need this factory struct, but we're maintaining consistency with the other files.

func NewVerticalScrollControllerFactory added in v0.36.0

func NewVerticalScrollControllerFactory(c *ControllerCommon, viewBufferManagerMap *map[string]*tasks.ViewBufferManager) *VerticalScrollControllerFactory

func (*VerticalScrollControllerFactory) Create added in v0.36.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL