controllers

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 33 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 {
	*ListControllerTrait[*models.Commit]
	// contains filtered or unexported fields
}

func NewBasicCommitsController

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

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 {
	*ListControllerTrait[*models.Commit]
	// contains filtered or unexported fields
}

func NewBisectController

func NewBisectController(
	c *ControllerCommon,
) *BisectController

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 {
	*ListControllerTrait[*models.Branch]
	// contains filtered or unexported fields
}

func NewBranchesController

func NewBranchesController(
	c *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.IListContext
	CanRebase() bool
	GetSelectedRef() types.Ref
}

type CanSwitchToSubCommits

type CanSwitchToSubCommits interface {
	types.IListContext
	GetSelectedRef() types.Ref
	ShowBranchHeadsInSubCommits() bool
}

type CanViewWorktreeOptions added in v0.40.0

type CanViewWorktreeOptions interface {
	types.IListContext
}

type CommandLogController added in v0.39.0

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

func NewCommandLogController added in v0.39.0

func NewCommandLogController(
	c *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(
	c *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 {
	*ListControllerTrait[*filetree.CommitFileNode]
	// contains filtered or unexported fields
}

func NewCommitFilesController

func NewCommitFilesController(
	c *ControllerCommon,
) *CommitFilesController

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(
	c *ControllerCommon,
) *CommitMessageController

func (*CommitMessageController) Context

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

func (*CommitMessageController) GetKeybindings

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

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(
	c *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
	types.IListContext
	GetSelected() *models.Commit
	GetSelectedItems() ([]*models.Commit, int, int)
	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(
	c *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 {
	*ListControllerTrait[*filetree.FileNode]
	// contains filtered or unexported fields
}

func NewFilesController

func NewFilesController(
	c *ControllerCommon,
) *FilesController

func (*FilesController) Context

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

func (*FilesController) EnterFile

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

func (*FilesController) Explode added in v0.40.0

func (self *FilesController) Explode(v *gocui.View, onDone func())

Animates an explosion within the view by drawing a bunch of flamey characters

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

func (*FilesController) ResetSubmodule added in v0.41.0

func (self *FilesController) 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 {
	*ListControllerTrait[*models.Branch]
	// contains filtered or unexported fields
}

func NewGitFlowController

func NewGitFlowController(
	c *ControllerCommon,
) *GitFlowController

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(
	c *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(
	c *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) HandleRangeSelectChange added in v0.41.0

func (self *ListController) HandleRangeSelectChange(change int) error

func (*ListController) HandleRangeSelectDown added in v0.41.0

func (self *ListController) HandleRangeSelectDown() error

func (*ListController) HandleRangeSelectUp added in v0.41.0

func (self *ListController) HandleRangeSelectUp() 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

func (*ListController) HandleToggleRangeSelect added in v0.41.0

func (self *ListController) HandleToggleRangeSelect() 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 ListControllerTrait added in v0.41.0

type ListControllerTrait[T comparable] struct {
	// contains filtered or unexported fields
}

func NewListControllerTrait added in v0.41.0

func NewListControllerTrait[T comparable](
	c *ControllerCommon,
	context types.IListContext,
	getSelected func() T,
	getSelectedItems func() ([]T, int, int),
) *ListControllerTrait[T]

func (*ListControllerTrait[T]) Context added in v0.41.0

func (self *ListControllerTrait[T]) Context() types.Context

All controllers must implement this method so we're defining it here for convenience

type LocalCommitsController

type LocalCommitsController struct {
	*ListControllerTrait[*models.Commit]
	// contains filtered or unexported fields
}

func NewLocalCommitsController

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

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 {
	*ListControllerTrait[*types.MenuItem]
	// contains filtered or unexported fields
}

func NewMenuController

func NewMenuController(
	c *ControllerCommon,
) *MenuController
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(
	c *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(
	c *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) HandleNextLineRange added in v0.41.0

func (self *PatchExplorerController) HandleNextLineRange() 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) HandlePrevLineRange added in v0.41.0

func (self *PatchExplorerController) HandlePrevLineRange() 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 {
	*ListControllerTrait[*models.Commit]
	// contains filtered or unexported fields
}

func NewReflogCommitsController added in v0.39.0

func NewReflogCommitsController(
	c *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 {
	*ListControllerTrait[*models.RemoteBranch]
	// contains filtered or unexported fields
}

func NewRemoteBranchesController

func NewRemoteBranchesController(
	c *ControllerCommon,
) *RemoteBranchesController

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 {
	*ListControllerTrait[*models.Remote]
	// contains filtered or unexported fields
}

func NewRemotesController

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

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(
	c *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(
	c *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(c *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(
	c *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(
	c *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 {
	*ListControllerTrait[*models.StashEntry]
	// contains filtered or unexported fields
}

func NewStashController

func NewStashController(
	c *ControllerCommon,
) *StashController

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(
	c *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 {
	*ListControllerTrait[*models.Commit]
	// contains filtered or unexported fields
}

func NewSubCommitsController added in v0.39.0

func NewSubCommitsController(
	c *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 {
	*ListControllerTrait[*models.SubmoduleConfig]
	// contains filtered or unexported fields
}

func NewSubmodulesController

func NewSubmodulesController(
	c *ControllerCommon,
) *SubmodulesController

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 {
	*ListControllerTrait[*types.Suggestion]
	// contains filtered or unexported fields
}

func NewSuggestionsController added in v0.39.0

func NewSuggestionsController(
	c *ControllerCommon,
) *SuggestionsController

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 {
	*ListControllerTrait[types.Ref]
	// contains filtered or unexported fields
}

Not using our ListControllerTrait because our 'selected' item is not a list item but an attribute on it i.e. the ref of an item.

func NewSwitchToDiffFilesController

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

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 {
	*ListControllerTrait[types.Ref]
	// contains filtered or unexported fields
}

Not using our ListControllerTrait because our 'selected' item is not a list item but an attribute on it i.e. the ref of an item.

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(currentBranch *models.Branch, opts PullFilesOptions) error

type TagsController

type TagsController struct {
	*ListControllerTrait[*models.Tag]
	// contains filtered or unexported fields
}

func NewTagsController

func NewTagsController(
	c *ControllerCommon,
) *TagsController

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(
	c *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

type WorktreeOptionsController added in v0.40.0

type WorktreeOptionsController struct {
	*ListControllerTrait[string]
	// contains filtered or unexported fields
}

func NewWorktreeOptionsController added in v0.40.0

func NewWorktreeOptionsController(c *ControllerCommon, context CanViewWorktreeOptions) *WorktreeOptionsController

func (*WorktreeOptionsController) GetKeybindings added in v0.40.0

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

func (*WorktreeOptionsController) GetMouseKeybindings added in v0.40.0

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

func (*WorktreeOptionsController) GetOnClick added in v0.40.0

func (self *WorktreeOptionsController) GetOnClick() func() error

func (*WorktreeOptionsController) GetOnFocus added in v0.40.0

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

func (*WorktreeOptionsController) GetOnFocusLost added in v0.40.0

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

func (*WorktreeOptionsController) GetOnRenderToMain added in v0.40.0

func (self *WorktreeOptionsController) GetOnRenderToMain() func() error

type WorktreesController added in v0.40.0

type WorktreesController struct {
	*ListControllerTrait[*models.Worktree]
	// contains filtered or unexported fields
}

func NewWorktreesController added in v0.40.0

func NewWorktreesController(
	c *ControllerCommon,
) *WorktreesController

func (*WorktreesController) GetKeybindings added in v0.40.0

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

func (*WorktreesController) GetMouseKeybindings added in v0.40.0

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

func (*WorktreesController) GetOnClick added in v0.40.0

func (self *WorktreesController) GetOnClick() func() error

func (*WorktreesController) GetOnFocus added in v0.40.0

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

func (*WorktreesController) GetOnFocusLost added in v0.40.0

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

func (*WorktreesController) GetOnRenderToMain added in v0.40.0

func (self *WorktreesController) GetOnRenderToMain() func() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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