controllers

package
v0.0.0-...-00ab8b8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 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

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

func (*BasicCommitsController) GetOnFocusLost

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

func (*BasicCommitsController) GetOnRenderToMain

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

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

func (*BisectController) GetOnFocusLost

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

func (*BisectController) GetOnRenderToMain

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

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

func (*BranchesController) GetOnFocusLost

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

func (*BranchesController) GetOnRenderToMain

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

type CanViewWorktreeOptions interface {
	types.IListContext
}

type CommandLogController

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

func NewCommandLogController

func NewCommandLogController(
	c *ControllerCommon,
) *CommandLogController

func (*CommandLogController) Context

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

func (*CommandLogController) GetKeybindings

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

func (*CommandLogController) GetMouseKeybindings

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

func (*CommandLogController) GetOnClick

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

func (*CommandLogController) GetOnFocus

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

func (*CommandLogController) GetOnFocusLost

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

func (*CommandLogController) GetOnRenderToMain

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

type CommitDescriptionController

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

func NewCommitDescriptionController

func NewCommitDescriptionController(
	c *ControllerCommon,
) *CommitDescriptionController

func (*CommitDescriptionController) Context

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

func (*CommitDescriptionController) GetKeybindings

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

func (*CommitDescriptionController) GetMouseKeybindings

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

func (*CommitDescriptionController) GetOnClick

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

func (*CommitDescriptionController) GetOnFocus

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

func (*CommitDescriptionController) GetOnFocusLost

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

func (*CommitDescriptionController) GetOnRenderToMain

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

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

func (*CommitFilesController) GetOnFocusLost

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

func (*CommitFilesController) GetOnRenderToMain

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

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

func (*CommitMessageController) GetOnFocusLost

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

func (*CommitMessageController) GetOnRenderToMain

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

type ConfirmationController

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

func NewConfirmationController

func NewConfirmationController(
	c *ControllerCommon,
) *ConfirmationController

func (*ConfirmationController) Context

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

func (*ConfirmationController) GetKeybindings

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

func (*ConfirmationController) GetMouseKeybindings

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

func (*ConfirmationController) GetOnClick

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

func (*ConfirmationController) GetOnFocus

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

func (*ConfirmationController) GetOnFocusLost

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

func (*ConfirmationController) GetOnRenderToMain

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

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

func NewContextLinesController

func NewContextLinesController(
	c *ControllerCommon,
) *ContextLinesController

func (*ContextLinesController) Context

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

func (*ContextLinesController) Decrease

func (self *ContextLinesController) Decrease() error

func (*ContextLinesController) GetKeybindings

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

func (*ContextLinesController) GetMouseKeybindings

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

func (*ContextLinesController) GetOnClick

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

func (*ContextLinesController) GetOnFocus

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

func (*ContextLinesController) GetOnFocusLost

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

func (*ContextLinesController) GetOnRenderToMain

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

func (*ContextLinesController) Increase

func (self *ContextLinesController) Increase() error

type ControllerCommon

type ControllerCommon struct {
	*helpers.HelperCommon
	IGetHelpers
}

func NewControllerCommon

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

type CustomCommandAction

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

func (*CustomCommandAction) Call

func (self *CustomCommandAction) Call() error

func (*CustomCommandAction) GetCustomCommandsHistorySuggestionsFunc

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

type CustomPatchOptionsMenuAction

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

func (*CustomPatchOptionsMenuAction) Call

func (self *CustomPatchOptionsMenuAction) Call() error

type DiffingMenuAction

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

func (*DiffingMenuAction) Call

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

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

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

func (*FilesController) GetOnFocusLost

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

func (*FilesController) GetOnRenderToMain

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

func (*FilesController) Open

func (self *FilesController) Open() error

func (*FilesController) ResetSubmodule

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

type FilterController

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

func (*FilterController) Context

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

func (*FilterController) GetKeybindings

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

func (*FilterController) GetMouseKeybindings

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

func (*FilterController) GetOnClick

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

func (*FilterController) GetOnFocus

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

func (*FilterController) GetOnFocusLost

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

func (*FilterController) GetOnRenderToMain

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

func (*FilterController) OpenFilterPrompt

func (self *FilterController) OpenFilterPrompt() error

type FilterControllerFactory

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

func NewFilterControllerFactory

func NewFilterControllerFactory(c *ControllerCommon) *FilterControllerFactory

func (*FilterControllerFactory) Create

type FilteringMenuAction

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

func (*FilteringMenuAction) Call

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

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

func (*GitFlowController) GetOnFocusLost

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

func (*GitFlowController) GetOnRenderToMain

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

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

func (*GlobalController) GetOnFocusLost

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

func (*GlobalController) GetOnRenderToMain

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

type IGetHelpers

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

type JumpToSideWindowController

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

func NewJumpToSideWindowController

func NewJumpToSideWindowController(
	c *ControllerCommon,
) *JumpToSideWindowController

func (*JumpToSideWindowController) Context

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

func (*JumpToSideWindowController) GetKeybindings

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

func (*JumpToSideWindowController) GetMouseKeybindings

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

func (*JumpToSideWindowController) GetOnClick

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

func (*JumpToSideWindowController) GetOnFocus

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

func (*JumpToSideWindowController) GetOnFocusLost

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

func (*JumpToSideWindowController) GetOnRenderToMain

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

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

func (*ListController) GetOnFocusLost

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

func (*ListController) GetOnRenderToMain

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

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

func (*ListController) HandleRangeSelectDown

func (self *ListController) HandleRangeSelectDown() error

func (*ListController) HandleRangeSelectUp

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

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

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

func NewListControllerTrait

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

func (*ListControllerTrait[T]) Context

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

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

func (*LocalCommitsController) GetOnFocusLost

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

func (*LocalCommitsController) GetOnRenderToMain

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

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

func NewMergeConflictsController

func NewMergeConflictsController(
	c *ControllerCommon,
) *MergeConflictsController

func (*MergeConflictsController) Context

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

func (*MergeConflictsController) Escape

func (self *MergeConflictsController) Escape() error

func (*MergeConflictsController) GetKeybindings

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

func (*MergeConflictsController) GetMouseKeybindings

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

func (*MergeConflictsController) GetOnClick

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

func (*MergeConflictsController) GetOnFocus

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

func (*MergeConflictsController) GetOnFocusLost

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

func (*MergeConflictsController) GetOnRenderToMain

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

func (*MergeConflictsController) HandleEditFile

func (self *MergeConflictsController) HandleEditFile() error

func (*MergeConflictsController) HandleOpenFile

func (self *MergeConflictsController) HandleOpenFile() error

func (*MergeConflictsController) HandlePickAllHunks

func (self *MergeConflictsController) HandlePickAllHunks() error

func (*MergeConflictsController) HandlePickHunk

func (self *MergeConflictsController) HandlePickHunk() error

func (*MergeConflictsController) HandleScrollDown

func (self *MergeConflictsController) HandleScrollDown() error

func (*MergeConflictsController) HandleScrollLeft

func (self *MergeConflictsController) HandleScrollLeft() error

func (*MergeConflictsController) HandleScrollRight

func (self *MergeConflictsController) HandleScrollRight() error

func (*MergeConflictsController) HandleScrollUp

func (self *MergeConflictsController) HandleScrollUp() error

func (*MergeConflictsController) HandleUndo

func (self *MergeConflictsController) HandleUndo() error

func (*MergeConflictsController) NextConflict

func (self *MergeConflictsController) NextConflict() error

func (*MergeConflictsController) NextConflictHunk

func (self *MergeConflictsController) NextConflictHunk() error

func (*MergeConflictsController) PrevConflict

func (self *MergeConflictsController) PrevConflict() error

func (*MergeConflictsController) PrevConflictHunk

func (self *MergeConflictsController) PrevConflictHunk() error

type OptionsMenuAction

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

func (*OptionsMenuAction) Call

func (self *OptionsMenuAction) Call() error

type PatchBuildingController

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

func NewPatchBuildingController

func NewPatchBuildingController(
	c *ControllerCommon,
) *PatchBuildingController

func (*PatchBuildingController) Context

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

func (*PatchBuildingController) EditFile

func (self *PatchBuildingController) EditFile() error

func (*PatchBuildingController) Escape

func (self *PatchBuildingController) Escape() error

func (*PatchBuildingController) GetKeybindings

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

func (*PatchBuildingController) GetMouseKeybindings

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

func (*PatchBuildingController) GetOnClick

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

func (*PatchBuildingController) GetOnFocus

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

func (*PatchBuildingController) GetOnFocusLost

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

func (*PatchBuildingController) GetOnRenderToMain

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

func (*PatchBuildingController) OpenFile

func (self *PatchBuildingController) OpenFile() error

func (*PatchBuildingController) ToggleSelectionAndRefresh

func (self *PatchBuildingController) ToggleSelectionAndRefresh() error

type PatchExplorerController

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

func (*PatchExplorerController) Context

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

func (*PatchExplorerController) CopySelectedToClipboard

func (self *PatchExplorerController) CopySelectedToClipboard() error

func (*PatchExplorerController) GetKeybindings

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

func (*PatchExplorerController) GetMouseKeybindings

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

func (*PatchExplorerController) GetOnClick

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

func (*PatchExplorerController) GetOnFocus

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

func (*PatchExplorerController) GetOnFocusLost

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

func (*PatchExplorerController) GetOnRenderToMain

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

func (*PatchExplorerController) HandleGotoBottom

func (self *PatchExplorerController) HandleGotoBottom() error

func (*PatchExplorerController) HandleGotoTop

func (self *PatchExplorerController) HandleGotoTop() error

func (*PatchExplorerController) HandleMouseDown

func (self *PatchExplorerController) HandleMouseDown() error

func (*PatchExplorerController) HandleMouseDrag

func (self *PatchExplorerController) HandleMouseDrag() error

func (*PatchExplorerController) HandleNextHunk

func (self *PatchExplorerController) HandleNextHunk() error

func (*PatchExplorerController) HandleNextLine

func (self *PatchExplorerController) HandleNextLine() error

func (*PatchExplorerController) HandleNextLineRange

func (self *PatchExplorerController) HandleNextLineRange() error

func (*PatchExplorerController) HandleNextPage

func (self *PatchExplorerController) HandleNextPage() error

func (*PatchExplorerController) HandlePrevHunk

func (self *PatchExplorerController) HandlePrevHunk() error

func (*PatchExplorerController) HandlePrevLine

func (self *PatchExplorerController) HandlePrevLine() error

func (*PatchExplorerController) HandlePrevLineRange

func (self *PatchExplorerController) HandlePrevLineRange() error

func (*PatchExplorerController) HandlePrevPage

func (self *PatchExplorerController) HandlePrevPage() error

func (*PatchExplorerController) HandleScrollLeft

func (self *PatchExplorerController) HandleScrollLeft() error

func (*PatchExplorerController) HandleScrollRight

func (self *PatchExplorerController) HandleScrollRight() error

func (*PatchExplorerController) HandleToggleSelectHunk

func (self *PatchExplorerController) HandleToggleSelectHunk() error

func (*PatchExplorerController) HandleToggleSelectRange

func (self *PatchExplorerController) HandleToggleSelectRange() error

type PatchExplorerControllerFactory

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

func NewPatchExplorerControllerFactory

func NewPatchExplorerControllerFactory(c *ControllerCommon) *PatchExplorerControllerFactory

func (*PatchExplorerControllerFactory) Create

type PullFilesFn

type PullFilesFn func() error

type PullFilesOptions

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

type QuitActions

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

func (*QuitActions) Escape

func (self *QuitActions) Escape() error

func (*QuitActions) Quit

func (self *QuitActions) Quit() error

func (*QuitActions) QuitWithoutChangingDirectory

func (self *QuitActions) QuitWithoutChangingDirectory() error

type ReflogActionKind

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

type ReflogCommitsController

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

func NewReflogCommitsController

func NewReflogCommitsController(
	c *ControllerCommon,
) *ReflogCommitsController

func (*ReflogCommitsController) Context

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

func (*ReflogCommitsController) GetKeybindings

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

func (*ReflogCommitsController) GetMouseKeybindings

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

func (*ReflogCommitsController) GetOnClick

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

func (*ReflogCommitsController) GetOnFocus

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

func (*ReflogCommitsController) GetOnFocusLost

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

func (*ReflogCommitsController) GetOnRenderToMain

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

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

func (*RemoteBranchesController) GetOnFocusLost

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

func (*RemoteBranchesController) GetOnRenderToMain

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

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

func (*RemotesController) GetOnFocusLost

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

func (*RemotesController) GetOnRenderToMain

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

type ScreenModeActions

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

func (*ScreenModeActions) Next

func (self *ScreenModeActions) Next() error

func (*ScreenModeActions) Prev

func (self *ScreenModeActions) Prev() error

type SearchController

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

func (*SearchController) Context

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

func (*SearchController) GetKeybindings

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

func (*SearchController) GetMouseKeybindings

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

func (*SearchController) GetOnClick

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

func (*SearchController) GetOnFocus

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

func (*SearchController) GetOnFocusLost

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

func (*SearchController) GetOnRenderToMain

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

func (*SearchController) OpenSearchPrompt

func (self *SearchController) OpenSearchPrompt() error

type SearchControllerFactory

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

func NewSearchControllerFactory

func NewSearchControllerFactory(c *ControllerCommon) *SearchControllerFactory

func (*SearchControllerFactory) Create

type SearchPromptController

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

func NewSearchPromptController

func NewSearchPromptController(
	c *ControllerCommon,
) *SearchPromptController

func (*SearchPromptController) Context

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

func (*SearchPromptController) GetKeybindings

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

func (*SearchPromptController) GetMouseKeybindings

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

func (*SearchPromptController) GetOnClick

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

func (*SearchPromptController) GetOnFocus

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

func (*SearchPromptController) GetOnFocusLost

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

func (*SearchPromptController) GetOnRenderToMain

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

type SideWindowController

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

func NewSideWindowController

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

func (*SideWindowController) Context

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

func (*SideWindowController) GetKeybindings

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

func (*SideWindowController) GetMouseKeybindings

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

func (*SideWindowController) GetOnClick

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

func (*SideWindowController) GetOnFocus

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

func (*SideWindowController) GetOnFocusLost

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

func (*SideWindowController) GetOnRenderToMain

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

type SideWindowControllerFactory

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

func NewSideWindowControllerFactory

func NewSideWindowControllerFactory(c *ControllerCommon) *SideWindowControllerFactory

func (*SideWindowControllerFactory) Create

type SnakeController

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

func NewSnakeController

func NewSnakeController(
	c *ControllerCommon,
) *SnakeController

func (*SnakeController) Context

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

func (*SnakeController) Escape

func (self *SnakeController) Escape() error

func (*SnakeController) GetKeybindings

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

func (*SnakeController) GetMouseKeybindings

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

func (*SnakeController) GetOnClick

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

func (*SnakeController) GetOnFocus

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

func (*SnakeController) GetOnFocusLost

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

func (*SnakeController) GetOnRenderToMain

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

func (*SnakeController) SetDirection

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

type StagingController

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

func NewStagingController

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

func (*StagingController) Context

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

func (*StagingController) DiscardSelection

func (self *StagingController) DiscardSelection() error

func (*StagingController) EditFile

func (self *StagingController) EditFile() error

func (*StagingController) EditHunkAndRefresh

func (self *StagingController) EditHunkAndRefresh() error

func (*StagingController) Escape

func (self *StagingController) Escape() error

func (*StagingController) FilePath

func (self *StagingController) FilePath() string

func (*StagingController) GetKeybindings

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

func (*StagingController) GetMouseKeybindings

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

func (*StagingController) GetOnClick

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

func (*StagingController) GetOnFocus

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

func (*StagingController) GetOnFocusLost

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

func (*StagingController) GetOnRenderToMain

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

func (*StagingController) OpenFile

func (self *StagingController) OpenFile() error

func (*StagingController) TogglePanel

func (self *StagingController) TogglePanel() error

func (*StagingController) ToggleStaged

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

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

func (*StashController) GetOnFocusLost

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

func (*StashController) GetOnRenderToMain

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

type StatusController

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

func NewStatusController

func NewStatusController(
	c *ControllerCommon,
) *StatusController

func (*StatusController) Context

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

func (*StatusController) GetKeybindings

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

func (*StatusController) GetMouseKeybindings

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

func (*StatusController) GetOnClick

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

func (*StatusController) GetOnFocus

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

func (*StatusController) GetOnFocusLost

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

func (*StatusController) GetOnRenderToMain

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

type SubCommitsController

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

func NewSubCommitsController

func NewSubCommitsController(
	c *ControllerCommon,
) *SubCommitsController

func (*SubCommitsController) Context

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

func (*SubCommitsController) GetKeybindings

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

func (*SubCommitsController) GetMouseKeybindings

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

func (*SubCommitsController) GetOnClick

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

func (*SubCommitsController) GetOnFocus

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

func (*SubCommitsController) GetOnFocusLost

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

func (*SubCommitsController) GetOnRenderToMain

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

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

func (*SubmodulesController) GetOnFocusLost

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

func (*SubmodulesController) GetOnRenderToMain

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

type SuggestionsController

type SuggestionsController struct {
	*ListControllerTrait[*types.Suggestion]
	// contains filtered or unexported fields
}

func NewSuggestionsController

func NewSuggestionsController(
	c *ControllerCommon,
) *SuggestionsController

func (*SuggestionsController) GetKeybindings

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

func (*SuggestionsController) GetMouseKeybindings

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

func (*SuggestionsController) GetOnClick

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

func (*SuggestionsController) GetOnFocus

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

func (*SuggestionsController) GetOnFocusLost

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

func (*SuggestionsController) GetOnRenderToMain

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

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

func (*SwitchToDiffFilesController) GetOnFocusLost

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

func (*SwitchToDiffFilesController) GetOnRenderToMain

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

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

func (*SwitchToSubCommitsController) GetOnFocusLost

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

func (*SwitchToSubCommitsController) GetOnRenderToMain

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

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

func (*SyncController) GetOnFocusLost

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

func (*SyncController) GetOnRenderToMain

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

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

func (*TagsController) GetOnFocusLost

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

func (*TagsController) GetOnRenderToMain

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

type ToggleWhitespaceAction

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

func (*ToggleWhitespaceAction) Call

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

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

func (*UndoController) GetOnFocusLost

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

func (*UndoController) GetOnRenderToMain

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

type VerticalScrollController

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

func (*VerticalScrollController) Context

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

func (*VerticalScrollController) GetKeybindings

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

func (*VerticalScrollController) GetMouseKeybindings

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

func (*VerticalScrollController) GetOnClick

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

func (*VerticalScrollController) GetOnFocus

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

func (*VerticalScrollController) GetOnFocusLost

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

func (*VerticalScrollController) GetOnRenderToMain

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

func (*VerticalScrollController) HandleScrollDown

func (self *VerticalScrollController) HandleScrollDown() error

func (*VerticalScrollController) HandleScrollUp

func (self *VerticalScrollController) HandleScrollUp() error

type VerticalScrollControllerFactory

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

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

func (*VerticalScrollControllerFactory) Create

type WorktreeOptionsController

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

func (*WorktreeOptionsController) GetKeybindings

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

func (*WorktreeOptionsController) GetMouseKeybindings

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

func (*WorktreeOptionsController) GetOnClick

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

func (*WorktreeOptionsController) GetOnFocus

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

func (*WorktreeOptionsController) GetOnFocusLost

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

func (*WorktreeOptionsController) GetOnRenderToMain

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

type WorktreesController

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

func NewWorktreesController

func NewWorktreesController(
	c *ControllerCommon,
) *WorktreesController

func (*WorktreesController) GetKeybindings

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

func (*WorktreesController) GetMouseKeybindings

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

func (*WorktreesController) GetOnClick

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

func (*WorktreesController) GetOnFocus

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

func (*WorktreesController) GetOnFocusLost

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

func (*WorktreesController) GetOnRenderToMain

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