Documentation ¶
Index ¶
- Constants
- Variables
- func AttachControllers(context types.Context, controllers ...types.IController)
- 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
- func (self *BasicCommitsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *BasicCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *BasicCommitsController) GetOnRenderToMain() 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
- func (self *BisectController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *BisectController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *BisectController) GetOnRenderToMain() 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
- func (self *BranchesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *BranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *BranchesController) GetOnRenderToMain() func() error
- type CanSwitchToDiffFiles
- type CanSwitchToSubCommits
- type CommandLogController
- func (self *CommandLogController) Context() types.Context
- func (self *CommandLogController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommandLogController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommandLogController) GetOnClick() func() error
- func (self *CommandLogController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *CommandLogController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *CommandLogController) GetOnRenderToMain() func() error
- type CommitDescriptionController
- func (self *CommitDescriptionController) Context() types.Context
- func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitDescriptionController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitDescriptionController) GetOnClick() func() error
- func (self *CommitDescriptionController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *CommitDescriptionController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *CommitDescriptionController) GetOnRenderToMain() func() error
- 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
- func (self *CommitFilesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *CommitFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *CommitFilesController) GetOnRenderToMain() 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
- func (self *CommitMessageController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *CommitMessageController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *CommitMessageController) GetOnRenderToMain() func() error
- type ConfirmationController
- func (self *ConfirmationController) Context() types.Context
- func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ConfirmationController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ConfirmationController) GetOnClick() func() error
- func (self *ConfirmationController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *ConfirmationController) GetOnRenderToMain() 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *ContextLinesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *ContextLinesController) GetOnRenderToMain() func() error
- func (self *ContextLinesController) Increase() error
- type ControllerCommon
- type CustomCommandAction
- type CustomPatchOptionsMenuAction
- type DiffingMenuAction
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *FilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *FilesController) GetOnRenderToMain() 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *FilesRemoveController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *FilesRemoveController) GetOnRenderToMain() func() error
- func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleConfig) error
- type FilterController
- func (self *FilterController) Context() types.Context
- func (self *FilterController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *FilterController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *FilterController) GetOnClick() func() error
- func (self *FilterController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *FilterController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *FilterController) GetOnRenderToMain() func() error
- func (self *FilterController) OpenFilterPrompt() error
- type FilterControllerFactory
- type FilteringMenuAction
- 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
- func (self *GitFlowController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *GitFlowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *GitFlowController) GetOnRenderToMain() func() error
- type GlobalController
- func (self *GlobalController) Context() types.Context
- func (self *GlobalController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *GlobalController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *GlobalController) GetOnClick() func() error
- func (self *GlobalController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *GlobalController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *GlobalController) GetOnRenderToMain() func() error
- type IGetHelpers
- type JumpToSideWindowController
- func (self *JumpToSideWindowController) Context() types.Context
- func (self *JumpToSideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *JumpToSideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *JumpToSideWindowController) GetOnClick() func() error
- func (self *JumpToSideWindowController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *JumpToSideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *JumpToSideWindowController) GetOnRenderToMain() 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *ListController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *ListController) GetOnRenderToMain() 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
- func (self *LocalCommitsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *LocalCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *LocalCommitsController) GetOnRenderToMain() func() error
- type MenuController
- func (self *MenuController) Context() types.Context
- func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *MenuController) GetOnClick() func() error
- func (self *MenuController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *MenuController) GetOnRenderToMain() func() error
- type MergeConflictsController
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *MergeConflictsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *MergeConflictsController) GetOnRenderToMain() 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 OptionsMenuAction
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *PatchBuildingController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *PatchBuildingController) GetOnRenderToMain() 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *PatchExplorerController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *PatchExplorerController) GetOnRenderToMain() 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 QuitActions
- type ReflogActionKind
- type ReflogCommitsController
- func (self *ReflogCommitsController) Context() types.Context
- func (self *ReflogCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ReflogCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ReflogCommitsController) GetOnClick() func() error
- func (self *ReflogCommitsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *ReflogCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *ReflogCommitsController) GetOnRenderToMain() func() error
- 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
- func (self *RemoteBranchesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *RemoteBranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *RemoteBranchesController) GetOnRenderToMain() 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
- func (self *RemotesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *RemotesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *RemotesController) GetOnRenderToMain() func() error
- type ScreenModeActions
- type SearchController
- func (self *SearchController) Context() types.Context
- func (self *SearchController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SearchController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SearchController) GetOnClick() func() error
- func (self *SearchController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SearchController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SearchController) GetOnRenderToMain() func() error
- func (self *SearchController) OpenSearchPrompt() error
- type SearchControllerFactory
- type SearchPromptController
- func (self *SearchPromptController) Context() types.Context
- func (self *SearchPromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SearchPromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SearchPromptController) GetOnClick() func() error
- func (self *SearchPromptController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SearchPromptController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SearchPromptController) GetOnRenderToMain() func() error
- type SideWindowController
- func (self *SideWindowController) Context() types.Context
- func (self *SideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SideWindowController) GetOnClick() func() error
- func (self *SideWindowController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SideWindowController) GetOnRenderToMain() func() error
- type SideWindowControllerFactory
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SnakeController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SnakeController) GetOnRenderToMain() func() error
- func (self *SnakeController) SetDirection(direction snake.Direction) func() error
- type StagingController
- func (self *StagingController) Context() types.Context
- func (self *StagingController) DiscardSelection() error
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *StagingController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *StagingController) GetOnRenderToMain() func() error
- func (self *StagingController) OpenFile() error
- func (self *StagingController) TogglePanel() error
- func (self *StagingController) ToggleStaged() error
- type StashController
- func (self *StashController) Context() types.Context
- func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *StashController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *StashController) GetOnClick() func() error
- func (self *StashController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *StashController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *StashController) GetOnRenderToMain() func() error
- type StatusController
- func (self *StatusController) Context() types.Context
- func (self *StatusController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *StatusController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *StatusController) GetOnClick() func() error
- func (self *StatusController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *StatusController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *StatusController) GetOnRenderToMain() func() error
- type SubCommitsController
- func (self *SubCommitsController) Context() types.Context
- func (self *SubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SubCommitsController) GetOnClick() func() error
- func (self *SubCommitsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SubCommitsController) GetOnRenderToMain() func() error
- 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
- func (self *SubmodulesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SubmodulesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SubmodulesController) GetOnRenderToMain() func() error
- type SuggestionsController
- func (self *SuggestionsController) Context() types.Context
- func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SuggestionsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SuggestionsController) GetOnClick() func() error
- func (self *SuggestionsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SuggestionsController) GetOnRenderToMain() 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
- func (self *SwitchToDiffFilesController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SwitchToDiffFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SwitchToDiffFilesController) GetOnRenderToMain() 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
- func (self *SwitchToSubCommitsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SwitchToSubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SwitchToSubCommitsController) GetOnRenderToMain() 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *SyncController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *SyncController) GetOnRenderToMain() func() error
- func (self *SyncController) HandlePull() error
- func (self *SyncController) HandlePush() error
- func (self *SyncController) PullAux(opts PullFilesOptions) error
- type TagsController
- func (self *TagsController) Context() types.Context
- func (self *TagsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *TagsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *TagsController) GetOnClick() func() error
- func (self *TagsController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *TagsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *TagsController) GetOnRenderToMain() func() error
- type ToggleWhitespaceAction
- type UndoController
- func (self *UndoController) Context() types.Context
- func (self *UndoController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *UndoController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *UndoController) GetOnClick() func() error
- func (self *UndoController) GetOnFocus() func(types.OnFocusOpts) error
- func (self *UndoController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *UndoController) GetOnRenderToMain() func() error
- 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) GetOnFocus() func(types.OnFocusOpts) error
- func (self *VerticalScrollController) GetOnFocusLost() func(types.OnFocusLostOpts) error
- func (self *VerticalScrollController) GetOnRenderToMain() func() error
- func (self *VerticalScrollController) HandleScrollDown() error
- func (self *VerticalScrollController) HandleScrollUp() error
- type VerticalScrollControllerFactory
Constants ¶
View Source
const COMMIT_THRESHOLD = 200
after selecting the 200th commit, we'll load in all the rest
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)
Types ¶
type BasicCommitsController ¶
type BasicCommitsController struct {
// contains filtered or unexported fields
}
func NewBasicCommitsController ¶
func NewBasicCommitsController(controllerCommon *ControllerCommon, context ContainsCommits) *BasicCommitsController
func (*BasicCommitsController) Context ¶
func (self *BasicCommitsController) Context() types.Context
func (*BasicCommitsController) GetKeybindings ¶
func (self *BasicCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BasicCommitsController) GetMouseKeybindings ¶
func (self *BasicCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BasicCommitsController) GetOnClick ¶
func (self *BasicCommitsController) GetOnClick() func() error
func (*BasicCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnFocus() func(types.OnFocusOpts) error
func (*BasicCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*BasicCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnRenderToMain() func() error
type BisectController ¶
type BisectController struct {
// contains filtered or unexported fields
}
func NewBisectController ¶
func NewBisectController( common *ControllerCommon, ) *BisectController
func (*BisectController) Context ¶
func (self *BisectController) Context() types.Context
func (*BisectController) GetKeybindings ¶
func (self *BisectController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BisectController) GetMouseKeybindings ¶
func (self *BisectController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BisectController) GetOnClick ¶
func (self *BisectController) GetOnClick() func() error
func (*BisectController) GetOnFocus ¶ added in v0.39.0
func (self *BisectController) GetOnFocus() func(types.OnFocusOpts) error
func (*BisectController) GetOnFocusLost ¶ added in v0.39.0
func (self *BisectController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*BisectController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BisectController) GetOnRenderToMain() func() error
type BranchesController ¶
type BranchesController struct {
// contains filtered or unexported fields
}
func NewBranchesController ¶
func NewBranchesController( common *ControllerCommon, ) *BranchesController
func (*BranchesController) Context ¶
func (self *BranchesController) Context() types.Context
func (*BranchesController) GetKeybindings ¶
func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*BranchesController) GetMouseKeybindings ¶
func (self *BranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*BranchesController) GetOnClick ¶
func (self *BranchesController) GetOnClick() func() error
func (*BranchesController) GetOnFocus ¶ added in v0.39.0
func (self *BranchesController) GetOnFocus() func(types.OnFocusOpts) error
func (*BranchesController) GetOnFocusLost ¶ added in v0.39.0
func (self *BranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*BranchesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BranchesController) GetOnRenderToMain() func() error
type CanSwitchToDiffFiles ¶
type CanSwitchToSubCommits ¶
type CommandLogController ¶ added in v0.39.0
type CommandLogController struct {
// contains filtered or unexported fields
}
func NewCommandLogController ¶ added in v0.39.0
func NewCommandLogController( common *ControllerCommon, ) *CommandLogController
func (*CommandLogController) Context ¶ added in v0.39.0
func (self *CommandLogController) Context() types.Context
func (*CommandLogController) GetKeybindings ¶ added in v0.39.0
func (self *CommandLogController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*CommandLogController) GetMouseKeybindings ¶ added in v0.39.0
func (self *CommandLogController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*CommandLogController) GetOnClick ¶ added in v0.39.0
func (self *CommandLogController) GetOnClick() func() error
func (*CommandLogController) GetOnFocus ¶ added in v0.39.0
func (self *CommandLogController) GetOnFocus() func(types.OnFocusOpts) error
func (*CommandLogController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommandLogController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*CommandLogController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommandLogController) GetOnRenderToMain() func() error
type CommitDescriptionController ¶ added in v0.38.0
type CommitDescriptionController struct {
// contains filtered or unexported fields
}
func NewCommitDescriptionController ¶ added in v0.38.0
func NewCommitDescriptionController( common *ControllerCommon, ) *CommitDescriptionController
func (*CommitDescriptionController) Context ¶ added in v0.38.0
func (self *CommitDescriptionController) Context() types.Context
func (*CommitDescriptionController) GetKeybindings ¶ added in v0.38.0
func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*CommitDescriptionController) GetMouseKeybindings ¶ added in v0.38.0
func (self *CommitDescriptionController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*CommitDescriptionController) GetOnClick ¶ added in v0.38.0
func (self *CommitDescriptionController) GetOnClick() func() error
func (*CommitDescriptionController) GetOnFocus ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnFocus() func(types.OnFocusOpts) error
func (*CommitDescriptionController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*CommitDescriptionController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnRenderToMain() func() error
type CommitFilesController ¶
type CommitFilesController struct {
// contains filtered or unexported fields
}
func NewCommitFilesController ¶
func NewCommitFilesController( common *ControllerCommon, ) *CommitFilesController
func (*CommitFilesController) Context ¶
func (self *CommitFilesController) Context() types.Context
func (*CommitFilesController) GetKeybindings ¶
func (self *CommitFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*CommitFilesController) GetMouseKeybindings ¶
func (self *CommitFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*CommitFilesController) GetOnClick ¶
func (self *CommitFilesController) GetOnClick() func() error
func (*CommitFilesController) GetOnFocus ¶ added in v0.39.0
func (self *CommitFilesController) GetOnFocus() func(types.OnFocusOpts) error
func (*CommitFilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*CommitFilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitFilesController) GetOnRenderToMain() func() error
type CommitMessageController ¶
type CommitMessageController struct {
// contains filtered or unexported fields
}
func NewCommitMessageController ¶
func NewCommitMessageController( common *ControllerCommon, ) *CommitMessageController
func (*CommitMessageController) Context ¶
func (self *CommitMessageController) Context() types.Context
func (*CommitMessageController) GetKeybindings ¶
func (self *CommitMessageController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
TODO: merge that commit panel PR because we're not currently showing how to add a newline as it's handled by the editor func rather than by the controller here.
func (*CommitMessageController) GetMouseKeybindings ¶
func (self *CommitMessageController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*CommitMessageController) GetOnClick ¶
func (self *CommitMessageController) GetOnClick() func() error
func (*CommitMessageController) GetOnFocus ¶ added in v0.39.0
func (self *CommitMessageController) GetOnFocus() func(types.OnFocusOpts) error
func (*CommitMessageController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitMessageController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*CommitMessageController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitMessageController) GetOnRenderToMain() func() error
type ConfirmationController ¶ added in v0.39.0
type ConfirmationController struct {
// contains filtered or unexported fields
}
func NewConfirmationController ¶ added in v0.39.0
func NewConfirmationController( common *ControllerCommon, ) *ConfirmationController
func (*ConfirmationController) Context ¶ added in v0.39.0
func (self *ConfirmationController) Context() types.Context
func (*ConfirmationController) GetKeybindings ¶ added in v0.39.0
func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*ConfirmationController) GetMouseKeybindings ¶ added in v0.39.0
func (self *ConfirmationController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*ConfirmationController) GetOnClick ¶ added in v0.39.0
func (self *ConfirmationController) GetOnClick() func() error
func (*ConfirmationController) GetOnFocus ¶ added in v0.39.0
func (self *ConfirmationController) GetOnFocus() func(types.OnFocusOpts) error
func (*ConfirmationController) GetOnFocusLost ¶ added in v0.39.0
func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*ConfirmationController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ConfirmationController) GetOnRenderToMain() func() error
type ContainsCommits ¶
type ContextLinesController ¶ added in v0.36.0
type ContextLinesController struct {
// contains filtered or unexported fields
}
func NewContextLinesController ¶ added in v0.36.0
func NewContextLinesController( common *ControllerCommon, ) *ContextLinesController
func (*ContextLinesController) Context ¶ added in v0.36.0
func (self *ContextLinesController) Context() types.Context
func (*ContextLinesController) Decrease ¶ added in v0.36.0
func (self *ContextLinesController) Decrease() error
func (*ContextLinesController) GetKeybindings ¶ added in v0.36.0
func (self *ContextLinesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*ContextLinesController) GetMouseKeybindings ¶ added in v0.36.0
func (self *ContextLinesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*ContextLinesController) GetOnClick ¶ added in v0.36.0
func (self *ContextLinesController) GetOnClick() func() error
func (*ContextLinesController) GetOnFocus ¶ added in v0.39.0
func (self *ContextLinesController) GetOnFocus() func(types.OnFocusOpts) error
func (*ContextLinesController) GetOnFocusLost ¶ added in v0.39.0
func (self *ContextLinesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*ContextLinesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ContextLinesController) GetOnRenderToMain() func() error
func (*ContextLinesController) Increase ¶ added in v0.36.0
func (self *ContextLinesController) Increase() error
type ControllerCommon ¶ added in v0.39.0
type ControllerCommon struct { *helpers.HelperCommon IGetHelpers }
func NewControllerCommon ¶
func NewControllerCommon( c *helpers.HelperCommon, IGetHelpers IGetHelpers, ) *ControllerCommon
type CustomCommandAction ¶ added in v0.39.0
type CustomCommandAction struct {
// contains filtered or unexported fields
}
func (*CustomCommandAction) Call ¶ added in v0.39.0
func (self *CustomCommandAction) Call() error
func (*CustomCommandAction) GetCustomCommandsHistorySuggestionsFunc ¶ added in v0.39.0
func (self *CustomCommandAction) GetCustomCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion
type CustomPatchOptionsMenuAction ¶ added in v0.39.0
type CustomPatchOptionsMenuAction struct {
// contains filtered or unexported fields
}
func (*CustomPatchOptionsMenuAction) Call ¶ added in v0.39.0
func (self *CustomPatchOptionsMenuAction) Call() error
type DiffingMenuAction ¶ added in v0.39.0
type DiffingMenuAction struct {
// contains filtered or unexported fields
}
func (*DiffingMenuAction) Call ¶ added in v0.39.0
func (self *DiffingMenuAction) Call() error
type FilesController ¶
type FilesController struct {
// contains filtered or unexported fields
}
func NewFilesController ¶
func NewFilesController( common *ControllerCommon, ) *FilesController
func (*FilesController) Context ¶
func (self *FilesController) Context() types.Context
func (*FilesController) EnterFile ¶
func (self *FilesController) EnterFile(opts types.OnFocusOpts) error
func (*FilesController) GetKeybindings ¶
func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*FilesController) GetMouseKeybindings ¶
func (self *FilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*FilesController) GetOnClick ¶
func (self *FilesController) GetOnClick() func() error
func (*FilesController) GetOnFocus ¶ added in v0.39.0
func (self *FilesController) GetOnFocus() func(types.OnFocusOpts) error
func (*FilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *FilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*FilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *FilesController) GetOnRenderToMain() func() error
func (*FilesController) Open ¶
func (self *FilesController) Open() error
type FilesRemoveController ¶
type FilesRemoveController struct {
// contains filtered or unexported fields
}
func NewFilesRemoveController ¶
func NewFilesRemoveController( common *ControllerCommon, ) *FilesRemoveController
func (*FilesRemoveController) Context ¶
func (self *FilesRemoveController) Context() types.Context
func (*FilesRemoveController) GetKeybindings ¶
func (self *FilesRemoveController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*FilesRemoveController) GetMouseKeybindings ¶
func (self *FilesRemoveController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*FilesRemoveController) GetOnClick ¶
func (self *FilesRemoveController) GetOnClick() func() error
func (*FilesRemoveController) GetOnFocus ¶ added in v0.39.0
func (self *FilesRemoveController) GetOnFocus() func(types.OnFocusOpts) error
func (*FilesRemoveController) GetOnFocusLost ¶ added in v0.39.0
func (self *FilesRemoveController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*FilesRemoveController) GetOnRenderToMain ¶ added in v0.39.0
func (self *FilesRemoveController) GetOnRenderToMain() func() error
func (*FilesRemoveController) ResetSubmodule ¶
func (self *FilesRemoveController) ResetSubmodule(submodule *models.SubmoduleConfig) error
type FilterController ¶ added in v0.39.0
type FilterController struct {
// contains filtered or unexported fields
}
func (*FilterController) Context ¶ added in v0.39.0
func (self *FilterController) Context() types.Context
func (*FilterController) GetKeybindings ¶ added in v0.39.0
func (self *FilterController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*FilterController) GetMouseKeybindings ¶ added in v0.39.0
func (self *FilterController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*FilterController) GetOnClick ¶ added in v0.39.0
func (self *FilterController) GetOnClick() func() error
func (*FilterController) GetOnFocus ¶ added in v0.39.0
func (self *FilterController) GetOnFocus() func(types.OnFocusOpts) error
func (*FilterController) GetOnFocusLost ¶ added in v0.39.0
func (self *FilterController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*FilterController) GetOnRenderToMain ¶ added in v0.39.0
func (self *FilterController) GetOnRenderToMain() func() error
func (*FilterController) OpenFilterPrompt ¶ added in v0.39.0
func (self *FilterController) OpenFilterPrompt() error
type FilterControllerFactory ¶ added in v0.39.0
type FilterControllerFactory struct {
// contains filtered or unexported fields
}
func NewFilterControllerFactory ¶ added in v0.39.0
func NewFilterControllerFactory(c *ControllerCommon) *FilterControllerFactory
func (*FilterControllerFactory) Create ¶ added in v0.39.0
func (self *FilterControllerFactory) Create(context types.IFilterableContext) *FilterController
type FilteringMenuAction ¶ added in v0.39.0
type FilteringMenuAction struct {
// contains filtered or unexported fields
}
func (*FilteringMenuAction) Call ¶ added in v0.39.0
func (self *FilteringMenuAction) Call() error
type GitFlowController ¶
type GitFlowController struct {
// contains filtered or unexported fields
}
func NewGitFlowController ¶
func NewGitFlowController( common *ControllerCommon, ) *GitFlowController
func (*GitFlowController) Context ¶
func (self *GitFlowController) Context() types.Context
func (*GitFlowController) GetKeybindings ¶
func (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*GitFlowController) GetMouseKeybindings ¶
func (self *GitFlowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*GitFlowController) GetOnClick ¶
func (self *GitFlowController) GetOnClick() func() error
func (*GitFlowController) GetOnFocus ¶ added in v0.39.0
func (self *GitFlowController) GetOnFocus() func(types.OnFocusOpts) error
func (*GitFlowController) GetOnFocusLost ¶ added in v0.39.0
func (self *GitFlowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*GitFlowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *GitFlowController) GetOnRenderToMain() func() error
type GlobalController ¶
type GlobalController struct {
// contains filtered or unexported fields
}
func NewGlobalController ¶
func NewGlobalController( common *ControllerCommon, ) *GlobalController
func (*GlobalController) Context ¶
func (self *GlobalController) Context() types.Context
func (*GlobalController) GetKeybindings ¶
func (self *GlobalController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*GlobalController) GetMouseKeybindings ¶
func (self *GlobalController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*GlobalController) GetOnClick ¶
func (self *GlobalController) GetOnClick() func() error
func (*GlobalController) GetOnFocus ¶ added in v0.39.0
func (self *GlobalController) GetOnFocus() func(types.OnFocusOpts) error
func (*GlobalController) GetOnFocusLost ¶ added in v0.39.0
func (self *GlobalController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*GlobalController) GetOnRenderToMain ¶ added in v0.39.0
func (self *GlobalController) GetOnRenderToMain() func() error
type IGetHelpers ¶ added in v0.39.0
type JumpToSideWindowController ¶ added in v0.39.0
type JumpToSideWindowController struct {
// contains filtered or unexported fields
}
func NewJumpToSideWindowController ¶ added in v0.39.0
func NewJumpToSideWindowController( common *ControllerCommon, ) *JumpToSideWindowController
func (*JumpToSideWindowController) Context ¶ added in v0.39.0
func (self *JumpToSideWindowController) Context() types.Context
func (*JumpToSideWindowController) GetKeybindings ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*JumpToSideWindowController) GetMouseKeybindings ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*JumpToSideWindowController) GetOnClick ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnClick() func() error
func (*JumpToSideWindowController) GetOnFocus ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnFocus() func(types.OnFocusOpts) error
func (*JumpToSideWindowController) GetOnFocusLost ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*JumpToSideWindowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnRenderToMain() func() error
type ListController ¶
type ListController struct {
// contains filtered or unexported fields
}
func (*ListController) Context ¶
func (self *ListController) Context() types.Context
func (*ListController) GetKeybindings ¶
func (self *ListController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*ListController) GetMouseKeybindings ¶
func (self *ListController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*ListController) GetOnClick ¶
func (self *ListController) GetOnClick() func() error
func (*ListController) GetOnFocus ¶ added in v0.39.0
func (self *ListController) GetOnFocus() func(types.OnFocusOpts) error
func (*ListController) GetOnFocusLost ¶ added in v0.39.0
func (self *ListController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*ListController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ListController) GetOnRenderToMain() func() error
func (*ListController) HandleClick ¶
func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error
func (*ListController) HandleGotoBottom ¶
func (self *ListController) HandleGotoBottom() error
func (*ListController) HandleGotoTop ¶
func (self *ListController) HandleGotoTop() error
func (*ListController) HandleNextLine ¶
func (self *ListController) HandleNextLine() error
func (*ListController) HandleNextPage ¶
func (self *ListController) HandleNextPage() error
func (*ListController) HandlePrevLine ¶
func (self *ListController) HandlePrevLine() error
func (*ListController) HandlePrevPage ¶
func (self *ListController) HandlePrevPage() error
func (*ListController) HandleScrollDown ¶
func (self *ListController) HandleScrollDown() error
func (*ListController) HandleScrollLeft ¶
func (self *ListController) HandleScrollLeft() error
func (*ListController) HandleScrollRight ¶
func (self *ListController) HandleScrollRight() error
func (*ListController) HandleScrollUp ¶
func (self *ListController) HandleScrollUp() error
type ListControllerFactory ¶
type ListControllerFactory struct {
// contains filtered or unexported fields
}
func NewListControllerFactory ¶
func NewListControllerFactory(c *ControllerCommon) *ListControllerFactory
func (*ListControllerFactory) Create ¶
func (self *ListControllerFactory) Create(context types.IListContext) *ListController
type LocalCommitsController ¶
type LocalCommitsController struct {
// contains filtered or unexported fields
}
func NewLocalCommitsController ¶
func NewLocalCommitsController( common *ControllerCommon, pullFiles PullFilesFn, ) *LocalCommitsController
func (*LocalCommitsController) Context ¶
func (self *LocalCommitsController) Context() types.Context
func (*LocalCommitsController) GetKeybindings ¶
func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*LocalCommitsController) GetMouseKeybindings ¶
func (self *LocalCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*LocalCommitsController) GetOnClick ¶
func (self *LocalCommitsController) GetOnClick() func() error
func (*LocalCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnFocus() func(types.OnFocusOpts) error
func (*LocalCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*LocalCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnRenderToMain() func() error
type MenuController ¶
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
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 (*MenuController) GetMouseKeybindings ¶
func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MenuController) GetOnClick ¶
func (self *MenuController) GetOnClick() func() error
func (*MenuController) GetOnFocus ¶ added in v0.39.0
func (self *MenuController) GetOnFocus() func(types.OnFocusOpts) error
func (*MenuController) GetOnFocusLost ¶ added in v0.39.0
func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*MenuController) GetOnRenderToMain ¶ added in v0.39.0
func (self *MenuController) GetOnRenderToMain() func() error
type MergeConflictsController ¶ added in v0.36.0
type MergeConflictsController struct {
// contains filtered or unexported fields
}
func NewMergeConflictsController ¶ added in v0.36.0
func NewMergeConflictsController( common *ControllerCommon, ) *MergeConflictsController
func (*MergeConflictsController) Context ¶ added in v0.36.0
func (self *MergeConflictsController) Context() types.Context
func (*MergeConflictsController) Escape ¶ added in v0.36.0
func (self *MergeConflictsController) Escape() error
func (*MergeConflictsController) GetKeybindings ¶ added in v0.36.0
func (self *MergeConflictsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*MergeConflictsController) GetMouseKeybindings ¶ added in v0.36.0
func (self *MergeConflictsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MergeConflictsController) GetOnClick ¶ added in v0.36.0
func (self *MergeConflictsController) GetOnClick() func() error
func (*MergeConflictsController) GetOnFocus ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnFocus() func(types.OnFocusOpts) error
func (*MergeConflictsController) GetOnFocusLost ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*MergeConflictsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnRenderToMain() func() error
func (*MergeConflictsController) HandleEditFile ¶ added in v0.36.0
func (self *MergeConflictsController) HandleEditFile() error
func (*MergeConflictsController) HandleOpenFile ¶ added in v0.36.0
func (self *MergeConflictsController) HandleOpenFile() error
func (*MergeConflictsController) HandlePickAllHunks ¶ added in v0.36.0
func (self *MergeConflictsController) HandlePickAllHunks() error
func (*MergeConflictsController) HandlePickHunk ¶ added in v0.36.0
func (self *MergeConflictsController) HandlePickHunk() error
func (*MergeConflictsController) HandleScrollDown ¶ added in v0.36.0
func (self *MergeConflictsController) HandleScrollDown() error
func (*MergeConflictsController) HandleScrollLeft ¶ added in v0.36.0
func (self *MergeConflictsController) HandleScrollLeft() error
func (*MergeConflictsController) HandleScrollRight ¶ added in v0.36.0
func (self *MergeConflictsController) HandleScrollRight() error
func (*MergeConflictsController) HandleScrollUp ¶ added in v0.36.0
func (self *MergeConflictsController) HandleScrollUp() error
func (*MergeConflictsController) HandleUndo ¶ added in v0.36.0
func (self *MergeConflictsController) HandleUndo() error
func (*MergeConflictsController) NextConflict ¶ added in v0.36.0
func (self *MergeConflictsController) NextConflict() error
func (*MergeConflictsController) NextConflictHunk ¶ added in v0.36.0
func (self *MergeConflictsController) NextConflictHunk() error
func (*MergeConflictsController) PrevConflict ¶ added in v0.36.0
func (self *MergeConflictsController) PrevConflict() error
func (*MergeConflictsController) PrevConflictHunk ¶ added in v0.36.0
func (self *MergeConflictsController) PrevConflictHunk() error
type OptionsMenuAction ¶ added in v0.39.0
type OptionsMenuAction struct {
// contains filtered or unexported fields
}
func (*OptionsMenuAction) Call ¶ added in v0.39.0
func (self *OptionsMenuAction) Call() error
type PatchBuildingController ¶ added in v0.36.0
type PatchBuildingController struct {
// contains filtered or unexported fields
}
func NewPatchBuildingController ¶ added in v0.36.0
func NewPatchBuildingController( common *ControllerCommon, ) *PatchBuildingController
func (*PatchBuildingController) Context ¶ added in v0.36.0
func (self *PatchBuildingController) Context() types.Context
func (*PatchBuildingController) EditFile ¶ added in v0.36.0
func (self *PatchBuildingController) EditFile() error
func (*PatchBuildingController) Escape ¶ added in v0.36.0
func (self *PatchBuildingController) Escape() error
func (*PatchBuildingController) GetKeybindings ¶ added in v0.36.0
func (self *PatchBuildingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*PatchBuildingController) GetMouseKeybindings ¶ added in v0.36.0
func (self *PatchBuildingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*PatchBuildingController) GetOnClick ¶ added in v0.36.0
func (self *PatchBuildingController) GetOnClick() func() error
func (*PatchBuildingController) GetOnFocus ¶ added in v0.39.0
func (self *PatchBuildingController) GetOnFocus() func(types.OnFocusOpts) error
func (*PatchBuildingController) GetOnFocusLost ¶ added in v0.39.0
func (self *PatchBuildingController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*PatchBuildingController) GetOnRenderToMain ¶ added in v0.39.0
func (self *PatchBuildingController) GetOnRenderToMain() func() error
func (*PatchBuildingController) OpenFile ¶ added in v0.36.0
func (self *PatchBuildingController) OpenFile() error
func (*PatchBuildingController) ToggleSelectionAndRefresh ¶ added in v0.36.0
func (self *PatchBuildingController) ToggleSelectionAndRefresh() error
type PatchExplorerController ¶ added in v0.36.0
type PatchExplorerController struct {
// contains filtered or unexported fields
}
func (*PatchExplorerController) Context ¶ added in v0.36.0
func (self *PatchExplorerController) Context() types.Context
func (*PatchExplorerController) CopySelectedToClipboard ¶ added in v0.36.0
func (self *PatchExplorerController) CopySelectedToClipboard() error
func (*PatchExplorerController) GetKeybindings ¶ added in v0.36.0
func (self *PatchExplorerController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*PatchExplorerController) GetMouseKeybindings ¶ added in v0.36.0
func (self *PatchExplorerController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*PatchExplorerController) GetOnClick ¶ added in v0.36.0
func (self *PatchExplorerController) GetOnClick() func() error
func (*PatchExplorerController) GetOnFocus ¶ added in v0.39.0
func (self *PatchExplorerController) GetOnFocus() func(types.OnFocusOpts) error
func (*PatchExplorerController) GetOnFocusLost ¶ added in v0.39.0
func (self *PatchExplorerController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*PatchExplorerController) GetOnRenderToMain ¶ added in v0.39.0
func (self *PatchExplorerController) GetOnRenderToMain() func() error
func (*PatchExplorerController) HandleGotoBottom ¶ added in v0.36.0
func (self *PatchExplorerController) HandleGotoBottom() error
func (*PatchExplorerController) HandleGotoTop ¶ added in v0.36.0
func (self *PatchExplorerController) HandleGotoTop() error
func (*PatchExplorerController) HandleMouseDown ¶ added in v0.36.0
func (self *PatchExplorerController) HandleMouseDown() error
func (*PatchExplorerController) HandleMouseDrag ¶ added in v0.36.0
func (self *PatchExplorerController) HandleMouseDrag() error
func (*PatchExplorerController) HandleNextHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextHunk() error
func (*PatchExplorerController) HandleNextLine ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextLine() error
func (*PatchExplorerController) HandleNextPage ¶ added in v0.36.0
func (self *PatchExplorerController) HandleNextPage() error
func (*PatchExplorerController) HandlePrevHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevHunk() error
func (*PatchExplorerController) HandlePrevLine ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevLine() error
func (*PatchExplorerController) HandlePrevPage ¶ added in v0.36.0
func (self *PatchExplorerController) HandlePrevPage() error
func (*PatchExplorerController) HandleScrollLeft ¶ added in v0.36.0
func (self *PatchExplorerController) HandleScrollLeft() error
func (*PatchExplorerController) HandleScrollRight ¶ added in v0.36.0
func (self *PatchExplorerController) HandleScrollRight() error
func (*PatchExplorerController) HandleToggleSelectHunk ¶ added in v0.36.0
func (self *PatchExplorerController) HandleToggleSelectHunk() error
func (*PatchExplorerController) HandleToggleSelectRange ¶ added in v0.36.0
func (self *PatchExplorerController) HandleToggleSelectRange() error
type PatchExplorerControllerFactory ¶ added in v0.36.0
type PatchExplorerControllerFactory struct {
// contains filtered or unexported fields
}
func NewPatchExplorerControllerFactory ¶ added in v0.36.0
func NewPatchExplorerControllerFactory(c *ControllerCommon) *PatchExplorerControllerFactory
func (*PatchExplorerControllerFactory) Create ¶ added in v0.36.0
func (self *PatchExplorerControllerFactory) Create(context types.IPatchExplorerContext) *PatchExplorerController
type PullFilesFn ¶
type PullFilesFn func() error
type PullFilesOptions ¶
type QuitActions ¶ added in v0.39.0
type QuitActions struct {
// contains filtered or unexported fields
}
func (*QuitActions) Escape ¶ added in v0.39.0
func (self *QuitActions) Escape() error
func (*QuitActions) Quit ¶ added in v0.39.0
func (self *QuitActions) Quit() error
func (*QuitActions) QuitWithoutChangingDirectory ¶ added in v0.39.0
func (self *QuitActions) QuitWithoutChangingDirectory() error
type ReflogActionKind ¶
type ReflogActionKind int
const ( CHECKOUT ReflogActionKind = iota COMMIT REBASE CURRENT_REBASE )
type ReflogCommitsController ¶ added in v0.39.0
type ReflogCommitsController struct {
// contains filtered or unexported fields
}
func NewReflogCommitsController ¶ added in v0.39.0
func NewReflogCommitsController( common *ControllerCommon, ) *ReflogCommitsController
func (*ReflogCommitsController) Context ¶ added in v0.39.0
func (self *ReflogCommitsController) Context() types.Context
func (*ReflogCommitsController) GetKeybindings ¶ added in v0.39.0
func (self *ReflogCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*ReflogCommitsController) GetMouseKeybindings ¶ added in v0.39.0
func (self *ReflogCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*ReflogCommitsController) GetOnClick ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnClick() func() error
func (*ReflogCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnFocus() func(types.OnFocusOpts) error
func (*ReflogCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*ReflogCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnRenderToMain() func() error
type RemoteBranchesController ¶
type RemoteBranchesController struct {
// contains filtered or unexported fields
}
func NewRemoteBranchesController ¶
func NewRemoteBranchesController( common *ControllerCommon, ) *RemoteBranchesController
func (*RemoteBranchesController) Context ¶
func (self *RemoteBranchesController) Context() types.Context
func (*RemoteBranchesController) GetKeybindings ¶
func (self *RemoteBranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*RemoteBranchesController) GetMouseKeybindings ¶
func (self *RemoteBranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*RemoteBranchesController) GetOnClick ¶
func (self *RemoteBranchesController) GetOnClick() func() error
func (*RemoteBranchesController) GetOnFocus ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnFocus() func(types.OnFocusOpts) error
func (*RemoteBranchesController) GetOnFocusLost ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*RemoteBranchesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnRenderToMain() func() error
type RemotesController ¶
type RemotesController struct {
// contains filtered or unexported fields
}
func NewRemotesController ¶
func NewRemotesController( common *ControllerCommon, setRemoteBranches func([]*models.RemoteBranch), ) *RemotesController
func (*RemotesController) Context ¶
func (self *RemotesController) Context() types.Context
func (*RemotesController) GetKeybindings ¶
func (self *RemotesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*RemotesController) GetMouseKeybindings ¶
func (self *RemotesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*RemotesController) GetOnClick ¶
func (self *RemotesController) GetOnClick() func() error
func (*RemotesController) GetOnFocus ¶ added in v0.39.0
func (self *RemotesController) GetOnFocus() func(types.OnFocusOpts) error
func (*RemotesController) GetOnFocusLost ¶ added in v0.39.0
func (self *RemotesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*RemotesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *RemotesController) GetOnRenderToMain() func() error
type ScreenModeActions ¶ added in v0.39.0
type ScreenModeActions struct {
// contains filtered or unexported fields
}
func (*ScreenModeActions) Next ¶ added in v0.39.0
func (self *ScreenModeActions) Next() error
func (*ScreenModeActions) Prev ¶ added in v0.39.0
func (self *ScreenModeActions) Prev() error
type SearchController ¶ added in v0.39.0
type SearchController struct {
// contains filtered or unexported fields
}
func (*SearchController) Context ¶ added in v0.39.0
func (self *SearchController) Context() types.Context
func (*SearchController) GetKeybindings ¶ added in v0.39.0
func (self *SearchController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SearchController) GetMouseKeybindings ¶ added in v0.39.0
func (self *SearchController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SearchController) GetOnClick ¶ added in v0.39.0
func (self *SearchController) GetOnClick() func() error
func (*SearchController) GetOnFocus ¶ added in v0.39.0
func (self *SearchController) GetOnFocus() func(types.OnFocusOpts) error
func (*SearchController) GetOnFocusLost ¶ added in v0.39.0
func (self *SearchController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SearchController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SearchController) GetOnRenderToMain() func() error
func (*SearchController) OpenSearchPrompt ¶ added in v0.39.0
func (self *SearchController) OpenSearchPrompt() error
type SearchControllerFactory ¶ added in v0.39.0
type SearchControllerFactory struct {
// contains filtered or unexported fields
}
func NewSearchControllerFactory ¶ added in v0.39.0
func NewSearchControllerFactory(c *ControllerCommon) *SearchControllerFactory
func (*SearchControllerFactory) Create ¶ added in v0.39.0
func (self *SearchControllerFactory) Create(context types.ISearchableContext) *SearchController
type SearchPromptController ¶ added in v0.39.0
type SearchPromptController struct {
// contains filtered or unexported fields
}
func NewSearchPromptController ¶ added in v0.39.0
func NewSearchPromptController( common *ControllerCommon, ) *SearchPromptController
func (*SearchPromptController) Context ¶ added in v0.39.0
func (self *SearchPromptController) Context() types.Context
func (*SearchPromptController) GetKeybindings ¶ added in v0.39.0
func (self *SearchPromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SearchPromptController) GetMouseKeybindings ¶ added in v0.39.0
func (self *SearchPromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SearchPromptController) GetOnClick ¶ added in v0.39.0
func (self *SearchPromptController) GetOnClick() func() error
func (*SearchPromptController) GetOnFocus ¶ added in v0.39.0
func (self *SearchPromptController) GetOnFocus() func(types.OnFocusOpts) error
func (*SearchPromptController) GetOnFocusLost ¶ added in v0.39.0
func (self *SearchPromptController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SearchPromptController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SearchPromptController) GetOnRenderToMain() func() error
type SideWindowController ¶ added in v0.39.0
type SideWindowController struct {
// contains filtered or unexported fields
}
func NewSideWindowController ¶ added in v0.39.0
func NewSideWindowController( common *ControllerCommon, context types.Context, ) *SideWindowController
func (*SideWindowController) Context ¶ added in v0.39.0
func (self *SideWindowController) Context() types.Context
func (*SideWindowController) GetKeybindings ¶ added in v0.39.0
func (self *SideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SideWindowController) GetMouseKeybindings ¶ added in v0.39.0
func (self *SideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SideWindowController) GetOnClick ¶ added in v0.39.0
func (self *SideWindowController) GetOnClick() func() error
func (*SideWindowController) GetOnFocus ¶ added in v0.39.0
func (self *SideWindowController) GetOnFocus() func(types.OnFocusOpts) error
func (*SideWindowController) GetOnFocusLost ¶ added in v0.39.0
func (self *SideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SideWindowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SideWindowController) GetOnRenderToMain() func() error
type SideWindowControllerFactory ¶ added in v0.39.0
type SideWindowControllerFactory struct {
// contains filtered or unexported fields
}
func NewSideWindowControllerFactory ¶ added in v0.39.0
func NewSideWindowControllerFactory(common *ControllerCommon) *SideWindowControllerFactory
func (*SideWindowControllerFactory) Create ¶ added in v0.39.0
func (self *SideWindowControllerFactory) Create(context types.Context) types.IController
type SnakeController ¶ added in v0.37.0
type SnakeController struct {
// contains filtered or unexported fields
}
func NewSnakeController ¶ added in v0.37.0
func NewSnakeController( common *ControllerCommon, ) *SnakeController
func (*SnakeController) Context ¶ added in v0.37.0
func (self *SnakeController) Context() types.Context
func (*SnakeController) Escape ¶ added in v0.37.0
func (self *SnakeController) Escape() error
func (*SnakeController) GetKeybindings ¶ added in v0.37.0
func (self *SnakeController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SnakeController) GetMouseKeybindings ¶ added in v0.37.0
func (self *SnakeController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SnakeController) GetOnClick ¶ added in v0.37.0
func (self *SnakeController) GetOnClick() func() error
func (*SnakeController) GetOnFocus ¶ added in v0.39.0
func (self *SnakeController) GetOnFocus() func(types.OnFocusOpts) error
func (*SnakeController) GetOnFocusLost ¶ added in v0.39.0
func (self *SnakeController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SnakeController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SnakeController) GetOnRenderToMain() func() error
func (*SnakeController) SetDirection ¶ added in v0.37.0
func (self *SnakeController) SetDirection(direction snake.Direction) func() error
type StagingController ¶ added in v0.36.0
type StagingController struct {
// contains filtered or unexported fields
}
func NewStagingController ¶ added in v0.36.0
func NewStagingController( common *ControllerCommon, context types.IPatchExplorerContext, otherContext types.IPatchExplorerContext, staged bool, ) *StagingController
func (*StagingController) Context ¶ added in v0.36.0
func (self *StagingController) Context() types.Context
func (*StagingController) DiscardSelection ¶ added in v0.39.0
func (self *StagingController) DiscardSelection() error
func (*StagingController) EditFile ¶ added in v0.36.0
func (self *StagingController) EditFile() error
func (*StagingController) EditHunkAndRefresh ¶ added in v0.36.0
func (self *StagingController) EditHunkAndRefresh() error
func (*StagingController) Escape ¶ added in v0.36.0
func (self *StagingController) Escape() error
func (*StagingController) FilePath ¶ added in v0.36.0
func (self *StagingController) FilePath() string
func (*StagingController) GetKeybindings ¶ added in v0.36.0
func (self *StagingController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*StagingController) GetMouseKeybindings ¶ added in v0.36.0
func (self *StagingController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*StagingController) GetOnClick ¶ added in v0.36.0
func (self *StagingController) GetOnClick() func() error
func (*StagingController) GetOnFocus ¶ added in v0.39.0
func (self *StagingController) GetOnFocus() func(types.OnFocusOpts) error
func (*StagingController) GetOnFocusLost ¶ added in v0.39.0
func (self *StagingController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*StagingController) GetOnRenderToMain ¶ added in v0.39.0
func (self *StagingController) GetOnRenderToMain() func() error
func (*StagingController) OpenFile ¶ added in v0.36.0
func (self *StagingController) OpenFile() error
func (*StagingController) TogglePanel ¶ added in v0.36.0
func (self *StagingController) TogglePanel() error
func (*StagingController) ToggleStaged ¶ added in v0.36.0
func (self *StagingController) ToggleStaged() error
type StashController ¶
type StashController struct {
// contains filtered or unexported fields
}
func NewStashController ¶
func NewStashController( common *ControllerCommon, ) *StashController
func (*StashController) Context ¶
func (self *StashController) Context() types.Context
func (*StashController) GetKeybindings ¶
func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*StashController) GetMouseKeybindings ¶
func (self *StashController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*StashController) GetOnClick ¶
func (self *StashController) GetOnClick() func() error
func (*StashController) GetOnFocus ¶ added in v0.39.0
func (self *StashController) GetOnFocus() func(types.OnFocusOpts) error
func (*StashController) GetOnFocusLost ¶ added in v0.39.0
func (self *StashController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*StashController) GetOnRenderToMain ¶ added in v0.39.0
func (self *StashController) GetOnRenderToMain() func() error
type StatusController ¶ added in v0.39.0
type StatusController struct {
// contains filtered or unexported fields
}
func NewStatusController ¶ added in v0.39.0
func NewStatusController( common *ControllerCommon, ) *StatusController
func (*StatusController) Context ¶ added in v0.39.0
func (self *StatusController) Context() types.Context
func (*StatusController) GetKeybindings ¶ added in v0.39.0
func (self *StatusController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*StatusController) GetMouseKeybindings ¶ added in v0.39.0
func (self *StatusController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*StatusController) GetOnClick ¶ added in v0.39.0
func (self *StatusController) GetOnClick() func() error
func (*StatusController) GetOnFocus ¶ added in v0.39.0
func (self *StatusController) GetOnFocus() func(types.OnFocusOpts) error
func (*StatusController) GetOnFocusLost ¶ added in v0.39.0
func (self *StatusController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*StatusController) GetOnRenderToMain ¶ added in v0.39.0
func (self *StatusController) GetOnRenderToMain() func() error
type SubCommitsController ¶ added in v0.39.0
type SubCommitsController struct {
// contains filtered or unexported fields
}
func NewSubCommitsController ¶ added in v0.39.0
func NewSubCommitsController( common *ControllerCommon, ) *SubCommitsController
func (*SubCommitsController) Context ¶ added in v0.39.0
func (self *SubCommitsController) Context() types.Context
func (*SubCommitsController) GetKeybindings ¶ added in v0.39.0
func (self *SubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SubCommitsController) GetMouseKeybindings ¶ added in v0.39.0
func (self *SubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SubCommitsController) GetOnClick ¶ added in v0.39.0
func (self *SubCommitsController) GetOnClick() func() error
func (*SubCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *SubCommitsController) GetOnFocus() func(types.OnFocusOpts) error
func (*SubCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SubCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SubCommitsController) GetOnRenderToMain() func() error
type SubmodulesController ¶
type SubmodulesController struct {
// contains filtered or unexported fields
}
func NewSubmodulesController ¶
func NewSubmodulesController( controllerCommon *ControllerCommon, ) *SubmodulesController
func (*SubmodulesController) Context ¶
func (self *SubmodulesController) Context() types.Context
func (*SubmodulesController) GetKeybindings ¶
func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SubmodulesController) GetMouseKeybindings ¶
func (self *SubmodulesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SubmodulesController) GetOnClick ¶
func (self *SubmodulesController) GetOnClick() func() error
func (*SubmodulesController) GetOnFocus ¶ added in v0.39.0
func (self *SubmodulesController) GetOnFocus() func(types.OnFocusOpts) error
func (*SubmodulesController) GetOnFocusLost ¶ added in v0.39.0
func (self *SubmodulesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SubmodulesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SubmodulesController) GetOnRenderToMain() func() error
type SuggestionsController ¶ added in v0.39.0
type SuggestionsController struct {
// contains filtered or unexported fields
}
func NewSuggestionsController ¶ added in v0.39.0
func NewSuggestionsController( common *ControllerCommon, ) *SuggestionsController
func (*SuggestionsController) Context ¶ added in v0.39.0
func (self *SuggestionsController) Context() types.Context
func (*SuggestionsController) GetKeybindings ¶ added in v0.39.0
func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SuggestionsController) GetMouseKeybindings ¶ added in v0.39.0
func (self *SuggestionsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SuggestionsController) GetOnClick ¶ added in v0.39.0
func (self *SuggestionsController) GetOnClick() func() error
func (*SuggestionsController) GetOnFocus ¶ added in v0.39.0
func (self *SuggestionsController) GetOnFocus() func(types.OnFocusOpts) error
func (*SuggestionsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SuggestionsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SuggestionsController) GetOnRenderToMain() func() error
type SwitchToCommitFilesContextOpts ¶
type SwitchToCommitFilesContextOpts struct { // this is something like a commit or branch Ref types.Ref // from the local commits view we're allowed to do rebase stuff with any patch // we generate from the diff files context, but we don't have that same ability // with say the sub commits context or the reflog context. CanRebase bool Context types.Context }
all fields mandatory (except `CanRebase` because it's boolean)
type SwitchToDiffFilesController ¶
type SwitchToDiffFilesController struct {
// contains filtered or unexported fields
}
func NewSwitchToDiffFilesController ¶
func NewSwitchToDiffFilesController( c *ControllerCommon, context CanSwitchToDiffFiles, diffFilesContext *context.CommitFilesContext, ) *SwitchToDiffFilesController
func (*SwitchToDiffFilesController) Context ¶
func (self *SwitchToDiffFilesController) Context() types.Context
func (*SwitchToDiffFilesController) GetKeybindings ¶
func (self *SwitchToDiffFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SwitchToDiffFilesController) GetMouseKeybindings ¶
func (self *SwitchToDiffFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SwitchToDiffFilesController) GetOnClick ¶
func (self *SwitchToDiffFilesController) GetOnClick() func() error
func (*SwitchToDiffFilesController) GetOnFocus ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnFocus() func(types.OnFocusOpts) error
func (*SwitchToDiffFilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SwitchToDiffFilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnRenderToMain() func() error
type SwitchToSubCommitsController ¶
type SwitchToSubCommitsController struct {
// contains filtered or unexported fields
}
func NewSwitchToSubCommitsController ¶
func NewSwitchToSubCommitsController( controllerCommon *ControllerCommon, setSubCommits func([]*models.Commit), context CanSwitchToSubCommits, ) *SwitchToSubCommitsController
func (*SwitchToSubCommitsController) Context ¶
func (self *SwitchToSubCommitsController) Context() types.Context
func (*SwitchToSubCommitsController) GetKeybindings ¶
func (self *SwitchToSubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SwitchToSubCommitsController) GetMouseKeybindings ¶
func (self *SwitchToSubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SwitchToSubCommitsController) GetOnClick ¶
func (self *SwitchToSubCommitsController) GetOnClick() func() error
func (*SwitchToSubCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnFocus() func(types.OnFocusOpts) error
func (*SwitchToSubCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SwitchToSubCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnRenderToMain() func() error
type SyncController ¶
type SyncController struct {
// contains filtered or unexported fields
}
func NewSyncController ¶
func NewSyncController( common *ControllerCommon, ) *SyncController
func (*SyncController) Context ¶
func (self *SyncController) Context() types.Context
func (*SyncController) GetKeybindings ¶
func (self *SyncController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SyncController) GetMouseKeybindings ¶
func (self *SyncController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SyncController) GetOnClick ¶
func (self *SyncController) GetOnClick() func() error
func (*SyncController) GetOnFocus ¶ added in v0.39.0
func (self *SyncController) GetOnFocus() func(types.OnFocusOpts) error
func (*SyncController) GetOnFocusLost ¶ added in v0.39.0
func (self *SyncController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*SyncController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SyncController) GetOnRenderToMain() func() error
func (*SyncController) HandlePull ¶
func (self *SyncController) HandlePull() error
func (*SyncController) HandlePush ¶
func (self *SyncController) HandlePush() error
func (*SyncController) PullAux ¶
func (self *SyncController) PullAux(opts PullFilesOptions) error
type TagsController ¶
type TagsController struct {
// contains filtered or unexported fields
}
func NewTagsController ¶
func NewTagsController( common *ControllerCommon, ) *TagsController
func (*TagsController) Context ¶
func (self *TagsController) Context() types.Context
func (*TagsController) GetKeybindings ¶
func (self *TagsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*TagsController) GetMouseKeybindings ¶
func (self *TagsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*TagsController) GetOnClick ¶
func (self *TagsController) GetOnClick() func() error
func (*TagsController) GetOnFocus ¶ added in v0.39.0
func (self *TagsController) GetOnFocus() func(types.OnFocusOpts) error
func (*TagsController) GetOnFocusLost ¶ added in v0.39.0
func (self *TagsController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*TagsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *TagsController) GetOnRenderToMain() func() error
type ToggleWhitespaceAction ¶ added in v0.39.0
type ToggleWhitespaceAction struct {
// contains filtered or unexported fields
}
func (*ToggleWhitespaceAction) Call ¶ added in v0.39.0
func (self *ToggleWhitespaceAction) Call() error
type UndoController ¶
type UndoController struct {
// contains filtered or unexported fields
}
func NewUndoController ¶
func NewUndoController( common *ControllerCommon, ) *UndoController
func (*UndoController) Context ¶
func (self *UndoController) Context() types.Context
func (*UndoController) GetKeybindings ¶
func (self *UndoController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*UndoController) GetMouseKeybindings ¶
func (self *UndoController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*UndoController) GetOnClick ¶
func (self *UndoController) GetOnClick() func() error
func (*UndoController) GetOnFocus ¶ added in v0.39.0
func (self *UndoController) GetOnFocus() func(types.OnFocusOpts) error
func (*UndoController) GetOnFocusLost ¶ added in v0.39.0
func (self *UndoController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*UndoController) GetOnRenderToMain ¶ added in v0.39.0
func (self *UndoController) GetOnRenderToMain() func() error
type VerticalScrollController ¶ added in v0.36.0
type VerticalScrollController struct {
// contains filtered or unexported fields
}
func (*VerticalScrollController) Context ¶ added in v0.36.0
func (self *VerticalScrollController) Context() types.Context
func (*VerticalScrollController) GetKeybindings ¶ added in v0.36.0
func (self *VerticalScrollController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*VerticalScrollController) GetMouseKeybindings ¶ added in v0.36.0
func (self *VerticalScrollController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*VerticalScrollController) GetOnClick ¶ added in v0.36.0
func (self *VerticalScrollController) GetOnClick() func() error
func (*VerticalScrollController) GetOnFocus ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnFocus() func(types.OnFocusOpts) error
func (*VerticalScrollController) GetOnFocusLost ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnFocusLost() func(types.OnFocusLostOpts) error
func (*VerticalScrollController) GetOnRenderToMain ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnRenderToMain() func() error
func (*VerticalScrollController) HandleScrollDown ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollDown() error
func (*VerticalScrollController) HandleScrollUp ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollUp() error
type VerticalScrollControllerFactory ¶ added in v0.36.0
type VerticalScrollControllerFactory struct {
// contains filtered or unexported fields
}
given we have no fields here, arguably we shouldn't even need this factory struct, but we're maintaining consistency with the other files.
func NewVerticalScrollControllerFactory ¶ added in v0.36.0
func NewVerticalScrollControllerFactory(c *ControllerCommon, viewBufferManagerMap *map[string]*tasks.ViewBufferManager) *VerticalScrollControllerFactory
func (*VerticalScrollControllerFactory) Create ¶ added in v0.36.0
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
- command_log_controller.go
- commit_description_controller.go
- commit_message_controller.go
- commits_files_controller.go
- common.go
- confirmation_controller.go
- context_lines_controller.go
- custom_command_action.go
- custom_patch_options_menu_action.go
- diffing_menu_action.go
- files_controller.go
- files_remove_controller.go
- filter_controller.go
- filtering_menu_action.go
- git_flow_controller.go
- global_controller.go
- jump_to_side_window_controller.go
- list_controller.go
- local_commits_controller.go
- menu_controller.go
- merge_conflicts_controller.go
- options_menu_action.go
- patch_building_controller.go
- patch_explorer_controller.go
- quit_actions.go
- reflog_commits_controller.go
- remote_branches_controller.go
- remotes_controller.go
- screen_mode_actions.go
- search_controller.go
- search_prompt_controller.go
- side_window_controller.go
- snake_controller.go
- staging_controller.go
- stash_controller.go
- status_controller.go
- sub_commits_controller.go
- submodules_controller.go
- suggestions_controller.go
- switch_to_diff_files_controller.go
- switch_to_sub_commits_controller.go
- sync_controller.go
- tags_controller.go
- toggle_whitespace_action.go
- types.go
- undo_controller.go
- vertical_scroll_controller.go
- workspace_reset_controller.go
Click to show internal directories.
Click to hide internal directories.