Documentation
¶
Index ¶
- Variables
- func AttachControllers(context types.Context, controllers ...types.IController)
- func NewControllerCommon(c *types.HelperCommon, os *oscommands.OSCommand, git *commands.GitCommand, ...) *controllerCommon
- type BasicCommitsController
- func (self *BasicCommitsController) Context() types.Context
- func (self *BasicCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BasicCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BasicCommitsController) GetOnClick() func() error
- type BisectController
- func (self *BisectController) Context() types.Context
- func (self *BisectController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BisectController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BisectController) GetOnClick() func() error
- type BranchesController
- func (self *BranchesController) Context() types.Context
- func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BranchesController) GetOnClick() func() error
- type CanSwitchToDiffFiles
- type CanSwitchToSubCommits
- type CommitFilesController
- func (self *CommitFilesController) Context() types.Context
- func (self *CommitFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitFilesController) GetOnClick() func() error
- type CommitMessageController
- func (self *CommitMessageController) Context() types.Context
- func (self *CommitMessageController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitMessageController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitMessageController) GetOnClick() func() error
- type ContainsCommits
- type ContextLinesController
- func (self *ContextLinesController) Context() types.Context
- func (self *ContextLinesController) Decrease() error
- func (self *ContextLinesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ContextLinesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ContextLinesController) GetOnClick() func() error
- func (self *ContextLinesController) Increase() error
- type FilesController
- func (self *FilesController) Context() types.Context
- func (self *FilesController) EnterFile(opts types.OnFocusOpts) error
- func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *FilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *FilesController) GetOnClick() func() error
- func (self *FilesController) Open() error
- type FilesRemoveController
- func (self *FilesRemoveController) Context() types.Context
- func (self *FilesRemoveController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *FilesRemoveController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *FilesRemoveController) GetOnClick() func() error
- func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleConfig) error
- type GitFlowController
- func (self *GitFlowController) Context() types.Context
- func (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *GitFlowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *GitFlowController) GetOnClick() func() error
- type GlobalController
- func (self *GlobalController) Context() types.Context
- func (self *GlobalController) GetCustomCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion
- func (self *GlobalController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *GlobalController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *GlobalController) GetOnClick() func() error
- type ListController
- func (self *ListController) Context() types.Context
- func (self *ListController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ListController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ListController) GetOnClick() func() error
- func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error
- func (self *ListController) HandleGotoBottom() error
- func (self *ListController) HandleGotoTop() error
- func (self *ListController) HandleNextLine() error
- func (self *ListController) HandleNextPage() error
- func (self *ListController) HandlePrevLine() error
- func (self *ListController) HandlePrevPage() error
- func (self *ListController) HandleScrollDown() error
- func (self *ListController) HandleScrollLeft() error
- func (self *ListController) HandleScrollRight() error
- func (self *ListController) HandleScrollUp() error
- type ListControllerFactory
- type LocalCommitsController
- func (self *LocalCommitsController) Context() types.Context
- func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *LocalCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *LocalCommitsController) GetOnClick() func() error
- type MenuController
- type MergeConflictsController
- func (self *MergeConflictsController) Context() types.Context
- func (self *MergeConflictsController) Escape() error
- func (self *MergeConflictsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *MergeConflictsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *MergeConflictsController) GetOnClick() func() error
- func (self *MergeConflictsController) HandleEditFile() error
- func (self *MergeConflictsController) HandleOpenFile() error
- func (self *MergeConflictsController) HandlePickAllHunks() error
- func (self *MergeConflictsController) HandlePickHunk() error
- func (self *MergeConflictsController) HandleScrollDown() error
- func (self *MergeConflictsController) HandleScrollLeft() error
- func (self *MergeConflictsController) HandleScrollRight() error
- func (self *MergeConflictsController) HandleScrollUp() error
- func (self *MergeConflictsController) HandleUndo() error
- func (self *MergeConflictsController) NextConflict() error
- func (self *MergeConflictsController) NextConflictHunk() error
- func (self *MergeConflictsController) PrevConflict() error
- func (self *MergeConflictsController) PrevConflictHunk() error
- type PatchBuildingController
- func (self *PatchBuildingController) Context() types.Context
- func (self *PatchBuildingController) EditFile() error
- func (self *PatchBuildingController) Escape() error
- func (self *PatchBuildingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *PatchBuildingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *PatchBuildingController) GetOnClick() func() error
- func (self *PatchBuildingController) OpenFile() error
- func (self *PatchBuildingController) ToggleSelectionAndRefresh() error
- type PatchExplorerController
- func (self *PatchExplorerController) Context() types.Context
- func (self *PatchExplorerController) CopySelectedToClipboard() error
- func (self *PatchExplorerController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *PatchExplorerController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *PatchExplorerController) GetOnClick() func() error
- func (self *PatchExplorerController) HandleGotoBottom() error
- func (self *PatchExplorerController) HandleGotoTop() error
- func (self *PatchExplorerController) HandleMouseDown() error
- func (self *PatchExplorerController) HandleMouseDrag() error
- func (self *PatchExplorerController) HandleNextHunk() error
- func (self *PatchExplorerController) HandleNextLine() error
- func (self *PatchExplorerController) HandleNextPage() error
- func (self *PatchExplorerController) HandlePrevHunk() error
- func (self *PatchExplorerController) HandlePrevLine() error
- func (self *PatchExplorerController) HandlePrevPage() error
- func (self *PatchExplorerController) HandleScrollLeft() error
- func (self *PatchExplorerController) HandleScrollRight() error
- func (self *PatchExplorerController) HandleToggleSelectHunk() error
- func (self *PatchExplorerController) HandleToggleSelectRange() error
- type PatchExplorerControllerFactory
- type PullFilesFn
- type PullFilesOptions
- type ReflogActionKind
- type RemoteBranchesController
- func (self *RemoteBranchesController) Context() types.Context
- func (self *RemoteBranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *RemoteBranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *RemoteBranchesController) GetOnClick() func() error
- type RemotesController
- func (self *RemotesController) Context() types.Context
- func (self *RemotesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *RemotesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *RemotesController) GetOnClick() func() error
- type SnakeController
- func (self *SnakeController) Context() types.Context
- func (self *SnakeController) Escape() error
- func (self *SnakeController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SnakeController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SnakeController) GetOnClick() func() error
- func (self *SnakeController) SetDirection(direction snake.Direction) func() error
- type StagingController
- func (self *StagingController) Context() types.Context
- func (self *StagingController) EditFile() error
- func (self *StagingController) EditHunkAndRefresh() error
- func (self *StagingController) Escape() error
- func (self *StagingController) FilePath() string
- func (self *StagingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *StagingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *StagingController) GetOnClick() func() error
- func (self *StagingController) OpenFile() error
- func (self *StagingController) ResetSelection() error
- func (self *StagingController) TogglePanel() error
- func (self *StagingController) ToggleStaged() error
- type StashController
- type SubmodulesController
- func (self *SubmodulesController) Context() types.Context
- func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SubmodulesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SubmodulesController) GetOnClick() func() error
- type SwitchToCommitFilesContextOpts
- type SwitchToDiffFilesController
- func (self *SwitchToDiffFilesController) Context() types.Context
- func (self *SwitchToDiffFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SwitchToDiffFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SwitchToDiffFilesController) GetOnClick() func() error
- type SwitchToSubCommitsController
- func (self *SwitchToSubCommitsController) Context() types.Context
- func (self *SwitchToSubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SwitchToSubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SwitchToSubCommitsController) GetOnClick() func() error
- type SyncController
- func (self *SyncController) Context() types.Context
- func (self *SyncController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SyncController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SyncController) GetOnClick() func() error
- func (self *SyncController) HandlePull() error
- func (self *SyncController) HandlePush() error
- func (self *SyncController) PullAux(opts PullFilesOptions) error
- type TagsController
- type UndoController
- type VerticalScrollController
- func (self *VerticalScrollController) Context() types.Context
- func (self *VerticalScrollController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *VerticalScrollController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *VerticalScrollController) GetOnClick() func() error
- func (self *VerticalScrollController) HandleScrollDown() error
- func (self *VerticalScrollController) HandleScrollUp() error
- type VerticalScrollControllerFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var CONTEXT_KEYS_SHOWING_DIFFS = []types.ContextKey{ context.FILES_CONTEXT_KEY, context.COMMIT_FILES_CONTEXT_KEY, context.STASH_CONTEXT_KEY, context.LOCAL_COMMITS_CONTEXT_KEY, context.SUB_COMMITS_CONTEXT_KEY, context.STAGING_MAIN_CONTEXT_KEY, context.STAGING_SECONDARY_CONTEXT_KEY, context.PATCH_BUILDING_MAIN_CONTEXT_KEY, context.PATCH_BUILDING_SECONDARY_CONTEXT_KEY, }
Functions ¶
func AttachControllers ¶
func AttachControllers(context types.Context, controllers ...types.IController)
func NewControllerCommon ¶
func NewControllerCommon( c *types.HelperCommon, os *oscommands.OSCommand, git *commands.GitCommand, helpers *helpers.Helpers, model *types.Model, contexts *context.ContextTree, modes *types.Modes, mutexes *types.Mutexes, ) *controllerCommon
Types ¶
type BasicCommitsController ¶
type BasicCommitsController struct {
// contains filtered or unexported fields
}
func NewBasicCommitsController ¶
func NewBasicCommitsController(controllerCommon *controllerCommon, context ContainsCommits) *BasicCommitsController
func (*BasicCommitsController) Context ¶
func (self *BasicCommitsController) Context() types.Context
func (*BasicCommitsController) GetKeybindings ¶
func (self *BasicCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BasicCommitsController) GetMouseKeybindings ¶
func (self *BasicCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BasicCommitsController) GetOnClick ¶
func (self *BasicCommitsController) GetOnClick() func() error
type BisectController ¶
type BisectController struct {
// contains filtered or unexported fields
}
func NewBisectController ¶
func NewBisectController( common *controllerCommon, ) *BisectController
func (*BisectController) Context ¶
func (self *BisectController) Context() types.Context
func (*BisectController) GetKeybindings ¶
func (self *BisectController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BisectController) GetMouseKeybindings ¶
func (self *BisectController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BisectController) GetOnClick ¶
func (self *BisectController) GetOnClick() func() error
type BranchesController ¶
type BranchesController struct {
// contains filtered or unexported fields
}
func NewBranchesController ¶
func NewBranchesController( common *controllerCommon, ) *BranchesController
func (*BranchesController) Context ¶
func (self *BranchesController) Context() types.Context
func (*BranchesController) GetKeybindings ¶
func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BranchesController) GetMouseKeybindings ¶
func (self *BranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BranchesController) GetOnClick ¶
func (self *BranchesController) GetOnClick() func() error
type CanSwitchToDiffFiles ¶
type CanSwitchToSubCommits ¶
type CommitFilesController ¶
type CommitFilesController struct {
// contains filtered or unexported fields
}
func NewCommitFilesController ¶
func NewCommitFilesController( common *controllerCommon, ) *CommitFilesController
func (*CommitFilesController) Context ¶
func (self *CommitFilesController) Context() types.Context
func (*CommitFilesController) GetKeybindings ¶
func (self *CommitFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*CommitFilesController) GetMouseKeybindings ¶
func (self *CommitFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*CommitFilesController) GetOnClick ¶
func (self *CommitFilesController) GetOnClick() func() error
type CommitMessageController ¶
type CommitMessageController struct {
// contains filtered or unexported fields
}
func NewCommitMessageController ¶
func NewCommitMessageController( common *controllerCommon, getCommitMessage func() string, onCommitAttempt func(message string), onCommitSuccess func(), ) *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
type ContainsCommits ¶
type ContextLinesController ¶ added in v0.36.0
type ContextLinesController struct {
// contains filtered or unexported fields
}
func NewContextLinesController ¶ added in v0.36.0
func NewContextLinesController( common *controllerCommon, ) *ContextLinesController
func (*ContextLinesController) Context ¶ added in v0.36.0
func (self *ContextLinesController) Context() types.Context
func (*ContextLinesController) Decrease ¶ added in v0.36.0
func (self *ContextLinesController) Decrease() error
func (*ContextLinesController) GetKeybindings ¶ added in v0.36.0
func (self *ContextLinesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*ContextLinesController) GetMouseKeybindings ¶ added in v0.36.0
func (self *ContextLinesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*ContextLinesController) GetOnClick ¶ added in v0.36.0
func (self *ContextLinesController) GetOnClick() func() error
func (*ContextLinesController) Increase ¶ added in v0.36.0
func (self *ContextLinesController) Increase() error
type FilesController ¶
type FilesController struct {
// contains filtered or unexported fields
}
func NewFilesController ¶
func NewFilesController( common *controllerCommon, enterSubmodule func(submodule *models.SubmoduleConfig) error, setCommitMessage func(message string), getSavedCommitMessage func() string, ) *FilesController
func (*FilesController) Context ¶
func (self *FilesController) Context() types.Context
func (*FilesController) EnterFile ¶
func (self *FilesController) EnterFile(opts types.OnFocusOpts) error
func (*FilesController) GetKeybindings ¶
func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*FilesController) GetMouseKeybindings ¶
func (self *FilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*FilesController) GetOnClick ¶
func (self *FilesController) GetOnClick() func() error
func (*FilesController) Open ¶
func (self *FilesController) Open() error
type FilesRemoveController ¶
type FilesRemoveController struct {
// contains filtered or unexported fields
}
func NewFilesRemoveController ¶
func NewFilesRemoveController( common *controllerCommon, ) *FilesRemoveController
func (*FilesRemoveController) Context ¶
func (self *FilesRemoveController) Context() types.Context
func (*FilesRemoveController) GetKeybindings ¶
func (self *FilesRemoveController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*FilesRemoveController) GetMouseKeybindings ¶
func (self *FilesRemoveController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*FilesRemoveController) GetOnClick ¶
func (self *FilesRemoveController) GetOnClick() func() error
func (*FilesRemoveController) ResetSubmodule ¶
func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleConfig) error
type GitFlowController ¶
type GitFlowController struct {
// contains filtered or unexported fields
}
func NewGitFlowController ¶
func NewGitFlowController( common *controllerCommon, ) *GitFlowController
func (*GitFlowController) Context ¶
func (self *GitFlowController) Context() types.Context
func (*GitFlowController) GetKeybindings ¶
func (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*GitFlowController) GetMouseKeybindings ¶
func (self *GitFlowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*GitFlowController) GetOnClick ¶
func (self *GitFlowController) GetOnClick() func() error
type GlobalController ¶
type GlobalController struct {
// contains filtered or unexported fields
}
func NewGlobalController ¶
func NewGlobalController( common *controllerCommon, ) *GlobalController
func (*GlobalController) Context ¶
func (self *GlobalController) Context() types.Context
func (*GlobalController) GetCustomCommandsHistorySuggestionsFunc ¶
func (self *GlobalController) GetCustomCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion
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
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) HandleClick ¶
func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error
func (*ListController) HandleGotoBottom ¶
func (self *ListController) HandleGotoBottom() error
func (*ListController) HandleGotoTop ¶
func (self *ListController) HandleGotoTop() error
func (*ListController) HandleNextLine ¶
func (self *ListController) HandleNextLine() error
func (*ListController) HandleNextPage ¶
func (self *ListController) HandleNextPage() error
func (*ListController) HandlePrevLine ¶
func (self *ListController) HandlePrevLine() error
func (*ListController) HandlePrevPage ¶
func (self *ListController) HandlePrevPage() error
func (*ListController) HandleScrollDown ¶
func (self *ListController) HandleScrollDown() error
func (*ListController) HandleScrollLeft ¶
func (self *ListController) HandleScrollLeft() error
func (*ListController) HandleScrollRight ¶
func (self *ListController) HandleScrollRight() error
func (*ListController) HandleScrollUp ¶
func (self *ListController) HandleScrollUp() error
type ListControllerFactory ¶
type ListControllerFactory struct {
// contains filtered or unexported fields
}
func NewListControllerFactory ¶
func NewListControllerFactory(c *types.HelperCommon) *ListControllerFactory
func (*ListControllerFactory) Create ¶
func (self *ListControllerFactory) Create(context types.IListContext) *ListController
type LocalCommitsController ¶
type LocalCommitsController struct {
// contains filtered or unexported fields
}
func NewLocalCommitsController ¶
func NewLocalCommitsController( common *controllerCommon, pullFiles PullFilesFn, ) *LocalCommitsController
func (*LocalCommitsController) Context ¶
func (self *LocalCommitsController) Context() types.Context
func (*LocalCommitsController) GetKeybindings ¶
func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*LocalCommitsController) GetMouseKeybindings ¶
func (self *LocalCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*LocalCommitsController) GetOnClick ¶
func (self *LocalCommitsController) GetOnClick() func() error
type MenuController ¶
type MenuController struct {
// contains filtered or unexported fields
}
func NewMenuController ¶
func NewMenuController( common *controllerCommon, ) *MenuController
func (*MenuController) Context ¶
func (self *MenuController) Context() types.Context
func (*MenuController) GetKeybindings ¶
func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*MenuController) GetMouseKeybindings ¶
func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MenuController) GetOnClick ¶
func (self *MenuController) GetOnClick() func() error
type MergeConflictsController ¶ added in v0.36.0
type MergeConflictsController struct {
// contains filtered or unexported fields
}
func NewMergeConflictsController ¶ added in v0.36.0
func NewMergeConflictsController( common *controllerCommon, ) *MergeConflictsController
func (*MergeConflictsController) Context ¶ added in v0.36.0
func (self *MergeConflictsController) Context() types.Context
func (*MergeConflictsController) Escape ¶ added in v0.36.0
func (self *MergeConflictsController) Escape() error
func (*MergeConflictsController) GetKeybindings ¶ added in v0.36.0
func (self *MergeConflictsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*MergeConflictsController) GetMouseKeybindings ¶ added in v0.36.0
func (self *MergeConflictsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MergeConflictsController) GetOnClick ¶ added in v0.36.0
func (self *MergeConflictsController) GetOnClick() func() error
func (*MergeConflictsController) 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 PatchBuildingController ¶ added in v0.36.0
type PatchBuildingController struct {
// contains filtered or unexported fields
}
func NewPatchBuildingController ¶ added in v0.36.0
func NewPatchBuildingController( common *controllerCommon, ) *PatchBuildingController
func (*PatchBuildingController) Context ¶ added in v0.36.0
func (self *PatchBuildingController) Context() types.Context
func (*PatchBuildingController) EditFile ¶ added in v0.36.0
func (self *PatchBuildingController) EditFile() error
func (*PatchBuildingController) Escape ¶ added in v0.36.0
func (self *PatchBuildingController) Escape() error
func (*PatchBuildingController) GetKeybindings ¶ added in v0.36.0
func (self *PatchBuildingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*PatchBuildingController) GetMouseKeybindings ¶ added in v0.36.0
func (self *PatchBuildingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*PatchBuildingController) GetOnClick ¶ added in v0.36.0
func (self *PatchBuildingController) GetOnClick() func() error
func (*PatchBuildingController) 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) HandleGotoBottom ¶ added in v0.36.0
func (self *PatchExplorerController) HandleGotoBottom() error
func (*PatchExplorerController) HandleGotoTop ¶ added in v0.36.0
func (self *PatchExplorerController) HandleGotoTop() error
func (*PatchExplorerController) HandleMouseDown ¶ added in v0.36.0
func (self *PatchExplorerController) HandleMouseDown() error
func (*PatchExplorerController) HandleMouseDrag ¶ added in v0.36.0
func (self *PatchExplorerController) HandleMouseDrag() error
func (*PatchExplorerController) HandleNextHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextHunk() error
func (*PatchExplorerController) HandleNextLine ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextLine() error
func (*PatchExplorerController) HandleNextPage ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextPage() error
func (*PatchExplorerController) HandlePrevHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevHunk() error
func (*PatchExplorerController) HandlePrevLine ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevLine() error
func (*PatchExplorerController) HandlePrevPage ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevPage() error
func (*PatchExplorerController) HandleScrollLeft ¶ added in v0.36.0
func (self *PatchExplorerController) HandleScrollLeft() error
func (*PatchExplorerController) HandleScrollRight ¶ added in v0.36.0
func (self *PatchExplorerController) HandleScrollRight() error
func (*PatchExplorerController) HandleToggleSelectHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandleToggleSelectHunk() error
func (*PatchExplorerController) HandleToggleSelectRange ¶ added in v0.36.0
func (self *PatchExplorerController) HandleToggleSelectRange() error
type PatchExplorerControllerFactory ¶ added in v0.36.0
type PatchExplorerControllerFactory struct {
// contains filtered or unexported fields
}
func NewPatchExplorerControllerFactory ¶ added in v0.36.0
func NewPatchExplorerControllerFactory(c *controllerCommon) *PatchExplorerControllerFactory
func (*PatchExplorerControllerFactory) Create ¶ added in v0.36.0
func (self *PatchExplorerControllerFactory) Create(context types.IPatchExplorerContext) *PatchExplorerController
type PullFilesFn ¶
type PullFilesFn func() error
type PullFilesOptions ¶
type ReflogActionKind ¶
type ReflogActionKind int
const ( CHECKOUT ReflogActionKind = iota COMMIT REBASE CURRENT_REBASE )
type RemoteBranchesController ¶
type RemoteBranchesController struct {
// contains filtered or unexported fields
}
func NewRemoteBranchesController ¶
func NewRemoteBranchesController( common *controllerCommon, ) *RemoteBranchesController
func (*RemoteBranchesController) Context ¶
func (self *RemoteBranchesController) Context() types.Context
func (*RemoteBranchesController) GetKeybindings ¶
func (self *RemoteBranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*RemoteBranchesController) GetMouseKeybindings ¶
func (self *RemoteBranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*RemoteBranchesController) GetOnClick ¶
func (self *RemoteBranchesController) GetOnClick() func() error
type RemotesController ¶
type RemotesController struct {
// contains filtered or unexported fields
}
func NewRemotesController ¶
func NewRemotesController( common *controllerCommon, setRemoteBranches func([]*models.RemoteBranch), ) *RemotesController
func (*RemotesController) Context ¶
func (self *RemotesController) Context() types.Context
func (*RemotesController) GetKeybindings ¶
func (self *RemotesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*RemotesController) GetMouseKeybindings ¶
func (self *RemotesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*RemotesController) GetOnClick ¶
func (self *RemotesController) GetOnClick() func() error
type SnakeController ¶ added in v0.37.0
type SnakeController struct {
// contains filtered or unexported fields
}
func NewSnakeController ¶ added in v0.37.0
func NewSnakeController( common *controllerCommon, getGame func() *snake.Game, ) *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) SetDirection ¶ added in v0.37.0
func (self *SnakeController) SetDirection(direction snake.Direction) func() error
type StagingController ¶ added in v0.36.0
type StagingController struct {
// contains filtered or unexported fields
}
func NewStagingController ¶ added in v0.36.0
func NewStagingController( common *controllerCommon, context types.IPatchExplorerContext, otherContext types.IPatchExplorerContext, staged bool, ) *StagingController
func (*StagingController) Context ¶ added in v0.36.0
func (self *StagingController) Context() types.Context
func (*StagingController) EditFile ¶ added in v0.36.0
func (self *StagingController) EditFile() error
func (*StagingController) EditHunkAndRefresh ¶ added in v0.36.0
func (self *StagingController) EditHunkAndRefresh() error
func (*StagingController) Escape ¶ added in v0.36.0
func (self *StagingController) Escape() error
func (*StagingController) FilePath ¶ added in v0.36.0
func (self *StagingController) FilePath() string
func (*StagingController) GetKeybindings ¶ added in v0.36.0
func (self *StagingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*StagingController) GetMouseKeybindings ¶ added in v0.36.0
func (self *StagingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*StagingController) GetOnClick ¶ added in v0.36.0
func (self *StagingController) GetOnClick() func() error
func (*StagingController) OpenFile ¶ added in v0.36.0
func (self *StagingController) OpenFile() error
func (*StagingController) ResetSelection ¶ added in v0.36.0
func (self *StagingController) ResetSelection() error
func (*StagingController) TogglePanel ¶ added in v0.36.0
func (self *StagingController) TogglePanel() error
func (*StagingController) ToggleStaged ¶ added in v0.36.0
func (self *StagingController) ToggleStaged() error
type StashController ¶
type StashController struct {
// contains filtered or unexported fields
}
func NewStashController ¶
func NewStashController( common *controllerCommon, ) *StashController
func (*StashController) Context ¶
func (self *StashController) Context() types.Context
func (*StashController) GetKeybindings ¶
func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*StashController) GetMouseKeybindings ¶
func (self *StashController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*StashController) GetOnClick ¶
func (self *StashController) GetOnClick() func() error
type SubmodulesController ¶
type SubmodulesController struct {
// contains filtered or unexported fields
}
func NewSubmodulesController ¶
func NewSubmodulesController( controllerCommon *controllerCommon, enterSubmodule func(submodule *models.SubmoduleConfig) error, ) *SubmodulesController
func (*SubmodulesController) Context ¶
func (self *SubmodulesController) Context() types.Context
func (*SubmodulesController) GetKeybindings ¶
func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SubmodulesController) GetMouseKeybindings ¶
func (self *SubmodulesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SubmodulesController) GetOnClick ¶
func (self *SubmodulesController) GetOnClick() func() error
type SwitchToCommitFilesContextOpts ¶
type SwitchToCommitFilesContextOpts struct { // this is something like a commit or branch Ref types.Ref // from the local commits view we're allowed to do rebase stuff with any patch // we generate from the diff files context, but we don't have that same ability // with say the sub commits context or the reflog context. CanRebase bool Context types.Context }
all fields mandatory (except `CanRebase` because it's boolean)
type SwitchToDiffFilesController ¶
type SwitchToDiffFilesController struct {
// contains filtered or unexported fields
}
func NewSwitchToDiffFilesController ¶
func NewSwitchToDiffFilesController( controllerCommon *controllerCommon, viewFiles func(SwitchToCommitFilesContextOpts) error, 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
type SwitchToSubCommitsController ¶
type SwitchToSubCommitsController struct {
// contains filtered or unexported fields
}
func NewSwitchToSubCommitsController ¶
func NewSwitchToSubCommitsController( controllerCommon *controllerCommon, setSubCommits func([]*models.Commit), context CanSwitchToSubCommits, ) *SwitchToSubCommitsController
func (*SwitchToSubCommitsController) Context ¶
func (self *SwitchToSubCommitsController) Context() types.Context
func (*SwitchToSubCommitsController) GetKeybindings ¶
func (self *SwitchToSubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SwitchToSubCommitsController) GetMouseKeybindings ¶
func (self *SwitchToSubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SwitchToSubCommitsController) GetOnClick ¶
func (self *SwitchToSubCommitsController) GetOnClick() func() error
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) HandlePull ¶
func (self *SyncController) HandlePull() error
func (*SyncController) HandlePush ¶
func (self *SyncController) HandlePush() error
func (*SyncController) PullAux ¶
func (self *SyncController) PullAux(opts PullFilesOptions) error
type TagsController ¶
type TagsController struct {
// contains filtered or unexported fields
}
func NewTagsController ¶
func NewTagsController( common *controllerCommon, ) *TagsController
func (*TagsController) Context ¶
func (self *TagsController) Context() types.Context
func (*TagsController) GetKeybindings ¶
func (self *TagsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*TagsController) GetMouseKeybindings ¶
func (self *TagsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*TagsController) GetOnClick ¶
func (self *TagsController) GetOnClick() func() error
type UndoController ¶
type UndoController struct {
// contains filtered or unexported fields
}
func NewUndoController ¶
func NewUndoController( common *controllerCommon, ) *UndoController
func (*UndoController) Context ¶
func (self *UndoController) Context() types.Context
func (*UndoController) GetKeybindings ¶
func (self *UndoController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*UndoController) GetMouseKeybindings ¶
func (self *UndoController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*UndoController) GetOnClick ¶
func (self *UndoController) GetOnClick() func() error
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) HandleScrollDown ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollDown() error
func (*VerticalScrollController) HandleScrollUp ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollUp() error
type VerticalScrollControllerFactory ¶ added in v0.36.0
type VerticalScrollControllerFactory struct {
// contains filtered or unexported fields
}
given we have no fields here, arguably we shouldn't even need this factory struct, but we're maintaining consistency with the other files.
func NewVerticalScrollControllerFactory ¶ added in v0.36.0
func NewVerticalScrollControllerFactory(c *controllerCommon, viewBufferManagerMap *map[string]*tasks.ViewBufferManager) *VerticalScrollControllerFactory
func (*VerticalScrollControllerFactory) Create ¶ added in v0.36.0
func (self *VerticalScrollControllerFactory) Create(context types.Context) types.IController
Source Files
¶
- attach.go
- base_controller.go
- basic_commits_controller.go
- bisect_controller.go
- branches_controller.go
- commit_message_controller.go
- commits_files_controller.go
- common.go
- context_lines_controller.go
- files_controller.go
- files_remove_controller.go
- git_flow_controller.go
- global_controller.go
- list_controller.go
- local_commits_controller.go
- menu_controller.go
- merge_conflicts_controller.go
- patch_building_controller.go
- patch_explorer_controller.go
- remote_branches_controller.go
- remotes_controller.go
- snake_controller.go
- staging_controller.go
- stash_controller.go
- submodules_controller.go
- switch_to_diff_files_controller.go
- switch_to_sub_commits_controller.go
- sync_controller.go
- tags_controller.go
- types.go
- undo_controller.go
- vertical_scroll_controller.go
- workspace_reset_controller.go
Click to show internal directories.
Click to hide internal directories.