controllers

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 35 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

This section is empty.

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) GetOnClickFocusedMainView added in v0.50.0

func (self *BasicCommitsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*BasicCommitsController) GetOnFocus added in v0.39.0

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

func (*BasicCommitsController) GetOnFocusLost added in v0.39.0

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

func (*BasicCommitsController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *BisectController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*BisectController) GetOnFocus added in v0.39.0

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

func (*BisectController) GetOnFocusLost added in v0.39.0

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

func (*BisectController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *BranchesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*BranchesController) GetOnFocus added in v0.39.0

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

func (*BranchesController) GetOnFocusLost added in v0.39.0

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

func (*BranchesController) GetOnRenderToMain added in v0.39.0

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

type CanSwitchToDiffFiles

type CanSwitchToDiffFiles interface {
	types.IListContext
	CanRebase() bool
	GetSelectedRef() models.Ref
	GetSelectedRefRangeForDiffFiles() *types.RefRange
}

type CanSwitchToSubCommits

type CanSwitchToSubCommits interface {
	types.IListContext
	GetSelectedRef() models.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) GetOnClickFocusedMainView added in v0.50.0

func (self *CommandLogController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*CommandLogController) GetOnFocus added in v0.39.0

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

func (*CommandLogController) GetOnFocusLost added in v0.39.0

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

func (*CommandLogController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *CommitDescriptionController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*CommitDescriptionController) GetOnFocus added in v0.39.0

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

func (*CommitDescriptionController) GetOnFocusLost added in v0.39.0

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

func (*CommitDescriptionController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *CommitFilesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*CommitFilesController) GetOnFocus added in v0.39.0

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

func (*CommitFilesController) GetOnFocusLost added in v0.39.0

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

func (*CommitFilesController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *CommitMessageController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*CommitMessageController) GetOnFocus added in v0.39.0

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

func (*CommitMessageController) GetOnFocusLost added in v0.39.0

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

func (*CommitMessageController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *ConfirmationController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*ConfirmationController) GetOnFocus added in v0.39.0

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

func (*ConfirmationController) GetOnFocusLost added in v0.39.0

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

func (*ConfirmationController) GetOnRenderToMain added in v0.39.0

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

type ContainsCommits

type ContainsCommits interface {
	types.Context
	types.IListContext
	GetSelected() *models.Commit
	GetSelectedItems() ([]*models.Commit, int, int)
	GetCommits() []*models.Commit
	GetSelectedLineIdx() int
	GetSelectionRangeAndMode() (int, int, traits.RangeSelectMode)
	SetSelectionRangeAndMode(int, int, traits.RangeSelectMode)
}

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) GetOnClickFocusedMainView added in v0.50.0

func (self *ContextLinesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*ContextLinesController) GetOnFocus added in v0.39.0

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

func (*ContextLinesController) GetOnFocusLost added in v0.39.0

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

func (*ContextLinesController) GetOnRenderToMain added in v0.39.0

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

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 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) GetOnClickFocusedMainView added in v0.50.0

func (self *FilesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*FilesController) GetOnFocus added in v0.39.0

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

func (*FilesController) GetOnFocusLost added in v0.39.0

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

func (*FilesController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *FilterController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*FilterController) GetOnFocus added in v0.39.0

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

func (*FilterController) GetOnFocusLost added in v0.39.0

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

func (*FilterController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *GitFlowController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*GitFlowController) GetOnFocus added in v0.39.0

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

func (*GitFlowController) GetOnFocusLost added in v0.39.0

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

func (*GitFlowController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *GlobalController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*GlobalController) GetOnFocus added in v0.39.0

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

func (*GlobalController) GetOnFocusLost added in v0.39.0

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

func (*GlobalController) GetOnRenderToMain added in v0.39.0

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

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,
	nextTabFunc func() error,
) *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) GetOnClickFocusedMainView added in v0.50.0

func (self *JumpToSideWindowController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*JumpToSideWindowController) GetOnFocus added in v0.39.0

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

func (*JumpToSideWindowController) GetOnFocusLost added in v0.39.0

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

func (*JumpToSideWindowController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *ListController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*ListController) GetOnFocus added in v0.39.0

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

func (*ListController) GetOnFocusLost added in v0.39.0

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

func (*ListController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *LocalCommitsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*LocalCommitsController) GetOnFocus added in v0.39.0

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

func (*LocalCommitsController) GetOnFocusLost added in v0.39.0

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

func (*LocalCommitsController) GetOnRenderToMain added in v0.39.0

func (self *LocalCommitsController) GetOnRenderToMain() func()

type MainViewController added in v0.50.0

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

func NewMainViewController added in v0.50.0

func NewMainViewController(
	c *ControllerCommon,
	context *context.MainContext,
	otherContext *context.MainContext,
) *MainViewController

func (*MainViewController) Context added in v0.50.0

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

func (*MainViewController) GetKeybindings added in v0.50.0

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

func (*MainViewController) GetMouseKeybindings added in v0.50.0

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

func (*MainViewController) GetOnClick added in v0.50.0

func (self *MainViewController) GetOnClick() func() error

func (*MainViewController) GetOnClickFocusedMainView added in v0.50.0

func (self *MainViewController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*MainViewController) GetOnFocus added in v0.50.0

func (self *MainViewController) GetOnFocus() func(types.OnFocusOpts)

func (*MainViewController) GetOnFocusLost added in v0.50.0

func (self *MainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)

func (*MainViewController) GetOnRenderToMain added in v0.50.0

func (self *MainViewController) GetOnRenderToMain() func()
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) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error
func (self *MenuController) GetOnFocus() func(types.OnFocusOpts)
func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (self *MenuController) GetOnRenderToMain() func()

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) GetOnClickFocusedMainView added in v0.50.0

func (self *MergeConflictsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*MergeConflictsController) GetOnFocus added in v0.39.0

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

func (*MergeConflictsController) GetOnFocusLost added in v0.39.0

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

func (*MergeConflictsController) GetOnRenderToMain added in v0.39.0

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

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) EscapeDescription added in v0.55.0

func (self *PatchBuildingController) EscapeDescription() string

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) GetOnClickFocusedMainView added in v0.50.0

func (self *PatchBuildingController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*PatchBuildingController) GetOnFocus added in v0.39.0

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

func (*PatchBuildingController) GetOnFocusLost added in v0.39.0

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

func (*PatchBuildingController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *PatchExplorerController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*PatchExplorerController) GetOnFocus added in v0.39.0

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

func (*PatchExplorerController) GetOnFocusLost added in v0.39.0

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

func (*PatchExplorerController) GetOnRenderToMain added in v0.39.0

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

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 PromptController added in v0.55.0

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

func NewPromptController added in v0.55.0

func NewPromptController(
	c *ControllerCommon,
) *PromptController

func (*PromptController) Context added in v0.55.0

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

func (*PromptController) GetKeybindings added in v0.55.0

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

func (*PromptController) GetMouseKeybindings added in v0.55.0

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

func (*PromptController) GetOnClick added in v0.55.0

func (self *PromptController) GetOnClick() func() error

func (*PromptController) GetOnClickFocusedMainView added in v0.55.0

func (self *PromptController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*PromptController) GetOnFocus added in v0.55.0

func (self *PromptController) GetOnFocus() func(types.OnFocusOpts)

func (*PromptController) GetOnFocusLost added in v0.55.0

func (self *PromptController) GetOnFocusLost() func(types.OnFocusLostOpts)

func (*PromptController) GetOnRenderToMain added in v0.55.0

func (self *PromptController) GetOnRenderToMain() func()

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) EscapeDescription added in v0.55.0

func (self *QuitActions) EscapeDescription() string

func (*QuitActions) EscapeEnabled added in v0.55.0

func (self *QuitActions) EscapeEnabled() bool

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) GetOnClickFocusedMainView added in v0.50.0

func (self *ReflogCommitsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*ReflogCommitsController) GetOnFocus added in v0.39.0

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

func (*ReflogCommitsController) GetOnFocusLost added in v0.39.0

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

func (*ReflogCommitsController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *RemoteBranchesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*RemoteBranchesController) GetOnFocus added in v0.39.0

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

func (*RemoteBranchesController) GetOnFocusLost added in v0.39.0

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

func (*RemoteBranchesController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *RemotesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*RemotesController) GetOnFocus added in v0.39.0

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

func (*RemotesController) GetOnFocusLost added in v0.39.0

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

func (*RemotesController) GetOnRenderToMain added in v0.39.0

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

type RenameSimilarityThresholdController added in v0.43.0

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

func NewRenameSimilarityThresholdController added in v0.43.0

func NewRenameSimilarityThresholdController(
	common *ControllerCommon,
) *RenameSimilarityThresholdController

func (*RenameSimilarityThresholdController) Context added in v0.43.0

func (*RenameSimilarityThresholdController) Decrease added in v0.43.0

func (self *RenameSimilarityThresholdController) Decrease() error

func (*RenameSimilarityThresholdController) GetKeybindings added in v0.43.0

func (*RenameSimilarityThresholdController) GetMouseKeybindings added in v0.43.0

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

func (*RenameSimilarityThresholdController) GetOnClick added in v0.43.0

func (self *RenameSimilarityThresholdController) GetOnClick() func() error

func (*RenameSimilarityThresholdController) GetOnClickFocusedMainView added in v0.50.0

func (self *RenameSimilarityThresholdController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*RenameSimilarityThresholdController) GetOnFocus added in v0.43.0

func (self *RenameSimilarityThresholdController) GetOnFocus() func(types.OnFocusOpts)

func (*RenameSimilarityThresholdController) GetOnFocusLost added in v0.43.0

func (self *RenameSimilarityThresholdController) GetOnFocusLost() func(types.OnFocusLostOpts)

func (*RenameSimilarityThresholdController) GetOnRenderToMain added in v0.43.0

func (self *RenameSimilarityThresholdController) GetOnRenderToMain() func()

func (*RenameSimilarityThresholdController) Increase added in v0.43.0

func (self *RenameSimilarityThresholdController) Increase() 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) GetOnClickFocusedMainView added in v0.50.0

func (self *SearchController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SearchController) GetOnFocus added in v0.39.0

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

func (*SearchController) GetOnFocusLost added in v0.39.0

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

func (*SearchController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SearchPromptController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SearchPromptController) GetOnFocus added in v0.39.0

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

func (*SearchPromptController) GetOnFocusLost added in v0.39.0

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

func (*SearchPromptController) GetOnRenderToMain added in v0.39.0

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

type SelectionRangeAndMode added in v0.45.0

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

type ShellCommandAction added in v0.44.0

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

func (*ShellCommandAction) Call added in v0.44.0

func (self *ShellCommandAction) Call() error

func (*ShellCommandAction) GetShellCommandsHistorySuggestionsFunc added in v0.44.0

func (self *ShellCommandAction) GetShellCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SideWindowController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SideWindowController) GetOnFocus added in v0.39.0

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

func (*SideWindowController) GetOnFocusLost added in v0.39.0

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

func (*SideWindowController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SnakeController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SnakeController) GetOnFocus added in v0.39.0

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

func (*SnakeController) GetOnFocusLost added in v0.39.0

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

func (*SnakeController) GetOnRenderToMain added in v0.39.0

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

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) EscapeDescription added in v0.55.0

func (self *StagingController) EscapeDescription() string

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) GetOnClickFocusedMainView added in v0.50.0

func (self *StagingController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*StagingController) GetOnFocus added in v0.39.0

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

func (*StagingController) GetOnFocusLost added in v0.39.0

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

func (*StagingController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *StashController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*StashController) GetOnFocus added in v0.39.0

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

func (*StashController) GetOnFocusLost added in v0.39.0

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

func (*StashController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *StatusController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*StatusController) GetOnFocus added in v0.39.0

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

func (*StatusController) GetOnFocusLost added in v0.39.0

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

func (*StatusController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SubCommitsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SubCommitsController) GetOnFocus added in v0.39.0

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

func (*SubCommitsController) GetOnFocusLost added in v0.39.0

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

func (*SubCommitsController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SubmodulesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SubmodulesController) GetOnFocus added in v0.39.0

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

func (*SubmodulesController) GetOnFocusLost added in v0.39.0

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

func (*SubmodulesController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SuggestionsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SuggestionsController) GetOnFocus added in v0.39.0

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

func (*SuggestionsController) GetOnFocusLost added in v0.39.0

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

func (*SuggestionsController) GetOnRenderToMain added in v0.39.0

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

type SwitchToDiffFilesController

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

Not using our ListControllerTrait because we have our own way of working with range selections that's different from ListControllerTrait's

func NewSwitchToDiffFilesController

func NewSwitchToDiffFilesController(
	c *ControllerCommon,
	context CanSwitchToDiffFiles,
) *SwitchToDiffFilesController

func (*SwitchToDiffFilesController) Context

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

func (*SwitchToDiffFilesController) GetKeybindings

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

func (*SwitchToDiffFilesController) GetMouseKeybindings

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

func (*SwitchToDiffFilesController) GetOnClick

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

func (*SwitchToDiffFilesController) GetOnClickFocusedMainView added in v0.50.0

func (self *SwitchToDiffFilesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SwitchToDiffFilesController) GetOnFocus added in v0.39.0

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

func (*SwitchToDiffFilesController) GetOnFocusLost added in v0.39.0

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

func (*SwitchToDiffFilesController) GetOnRenderToMain added in v0.39.0

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

type SwitchToFocusedMainViewController added in v0.50.0

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

func NewSwitchToFocusedMainViewController added in v0.50.0

func NewSwitchToFocusedMainViewController(
	c *ControllerCommon,
	context types.Context,
) *SwitchToFocusedMainViewController

func (*SwitchToFocusedMainViewController) Context added in v0.50.0

func (*SwitchToFocusedMainViewController) GetKeybindings added in v0.50.0

func (*SwitchToFocusedMainViewController) GetMouseKeybindings added in v0.50.0

func (*SwitchToFocusedMainViewController) GetOnClick added in v0.50.0

func (self *SwitchToFocusedMainViewController) GetOnClick() func() error

func (*SwitchToFocusedMainViewController) GetOnClickFocusedMainView added in v0.50.0

func (self *SwitchToFocusedMainViewController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SwitchToFocusedMainViewController) GetOnFocus added in v0.50.0

func (self *SwitchToFocusedMainViewController) GetOnFocus() func(types.OnFocusOpts)

func (*SwitchToFocusedMainViewController) GetOnFocusLost added in v0.50.0

func (self *SwitchToFocusedMainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)

func (*SwitchToFocusedMainViewController) GetOnRenderToMain added in v0.50.0

func (self *SwitchToFocusedMainViewController) GetOnRenderToMain() func()

type SwitchToSubCommitsController

type SwitchToSubCommitsController struct {
	*ListControllerTrait[models.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) GetOnClickFocusedMainView added in v0.50.0

func (self *SwitchToSubCommitsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SwitchToSubCommitsController) GetOnFocus added in v0.39.0

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

func (*SwitchToSubCommitsController) GetOnFocusLost added in v0.39.0

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

func (*SwitchToSubCommitsController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *SyncController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*SyncController) GetOnFocus added in v0.39.0

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

func (*SyncController) GetOnFocusLost added in v0.39.0

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

func (*SyncController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *TagsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*TagsController) GetOnFocus added in v0.39.0

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

func (*TagsController) GetOnFocusLost added in v0.39.0

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

func (*TagsController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *UndoController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*UndoController) GetOnFocus added in v0.39.0

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

func (*UndoController) GetOnFocusLost added in v0.39.0

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

func (*UndoController) GetOnRenderToMain added in v0.39.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *VerticalScrollController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*VerticalScrollController) GetOnFocus added in v0.39.0

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

func (*VerticalScrollController) GetOnFocusLost added in v0.39.0

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

func (*VerticalScrollController) GetOnRenderToMain added in v0.39.0

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

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) *VerticalScrollControllerFactory

func (*VerticalScrollControllerFactory) Create added in v0.36.0

type ViewSelectionController added in v0.50.0

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

func (*ViewSelectionController) Context added in v0.50.0

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

func (*ViewSelectionController) GetKeybindings added in v0.50.0

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

func (*ViewSelectionController) GetMouseKeybindings added in v0.50.0

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

func (*ViewSelectionController) GetOnClick added in v0.50.0

func (self *ViewSelectionController) GetOnClick() func() error

func (*ViewSelectionController) GetOnClickFocusedMainView added in v0.50.0

func (self *ViewSelectionController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*ViewSelectionController) GetOnFocus added in v0.50.0

func (self *ViewSelectionController) GetOnFocus() func(types.OnFocusOpts)

func (*ViewSelectionController) GetOnFocusLost added in v0.50.0

func (self *ViewSelectionController) GetOnFocusLost() func(types.OnFocusLostOpts)

func (*ViewSelectionController) GetOnRenderToMain added in v0.50.0

func (self *ViewSelectionController) GetOnRenderToMain() func()

type ViewSelectionControllerFactory added in v0.50.0

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

func NewViewSelectionControllerFactory added in v0.50.0

func NewViewSelectionControllerFactory(c *ControllerCommon) *ViewSelectionControllerFactory

func (*ViewSelectionControllerFactory) Create added in v0.50.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) GetOnClickFocusedMainView added in v0.50.0

func (self *WorktreeOptionsController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*WorktreeOptionsController) GetOnFocus added in v0.40.0

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

func (*WorktreeOptionsController) GetOnFocusLost added in v0.40.0

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

func (*WorktreeOptionsController) GetOnRenderToMain added in v0.40.0

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

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) GetOnClickFocusedMainView added in v0.50.0

func (self *WorktreesController) GetOnClickFocusedMainView() func(mainViewName string, clickedLineIdx int) error

func (*WorktreesController) GetOnFocus added in v0.40.0

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

func (*WorktreesController) GetOnFocusLost added in v0.40.0

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

func (*WorktreesController) GetOnRenderToMain added in v0.40.0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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