Documentation
¶
Index ¶
- Constants
- func AttachControllers(context types.Context, controllers ...types.IController)
- type BasicCommitsController
- func (self *BasicCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *BasicCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BasicCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BasicCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *BasicCommitsController) GetOnDoubleClick() func() error
- func (self *BasicCommitsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *BasicCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *BasicCommitsController) GetOnQuit() func()
- func (self *BasicCommitsController) GetOnRenderToMain() func()
- type BisectController
- func (self *BisectController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *BisectController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BisectController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BisectController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *BisectController) GetOnDoubleClick() func() error
- func (self *BisectController) GetOnFocus() func(types.OnFocusOpts)
- func (self *BisectController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *BisectController) GetOnQuit() func()
- func (self *BisectController) GetOnRenderToMain() func()
- type BranchesController
- func (self *BranchesController) Context() types.Context
- func (self *BranchesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *BranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *BranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *BranchesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *BranchesController) GetOnDoubleClick() func() error
- func (self *BranchesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *BranchesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *BranchesController) GetOnQuit() func()
- func (self *BranchesController) GetOnRenderToMain() func()
- type CanSwitchToDiffFiles
- type CanSwitchToSubCommits
- type CommandLogController
- func (self *CommandLogController) Context() types.Context
- func (self *CommandLogController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *CommandLogController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommandLogController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommandLogController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *CommandLogController) GetOnDoubleClick() func() error
- func (self *CommandLogController) GetOnFocus() func(types.OnFocusOpts)
- func (self *CommandLogController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *CommandLogController) GetOnQuit() func()
- func (self *CommandLogController) GetOnRenderToMain() func()
- type CommitDescriptionController
- func (self *CommitDescriptionController) Context() types.Context
- func (self *CommitDescriptionController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *CommitDescriptionController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitDescriptionController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitDescriptionController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *CommitDescriptionController) GetOnDoubleClick() func() error
- func (self *CommitDescriptionController) GetOnFocus() func(types.OnFocusOpts)
- func (self *CommitDescriptionController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *CommitDescriptionController) GetOnQuit() func()
- func (self *CommitDescriptionController) GetOnRenderToMain() func()
- type CommitDiffActions
- func (self *CommitDiffActions) DiscardSelection(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
- func (self *CommitDiffActions) DiscardSelectionDisabledReason(pane types.DiffPaneContext) *types.DisabledReason
- func (self *CommitDiffActions) PatchInclusion() func(types.DiffLineInfo) bool
- func (self *CommitDiffActions) PlainDiff(pane types.DiffPaneContext, paths []string) string
- func (self *CommitDiffActions) PrimaryAction(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
- type CommitFilesController
- func (self *CommitFilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *CommitFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitFilesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *CommitFilesController) GetOnDoubleClick() func() error
- func (self *CommitFilesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *CommitFilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *CommitFilesController) GetOnQuit() func()
- func (self *CommitFilesController) GetOnRenderToMain() func()
- type CommitMessageController
- func (self *CommitMessageController) Context() types.Context
- func (self *CommitMessageController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *CommitMessageController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *CommitMessageController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *CommitMessageController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *CommitMessageController) GetOnDoubleClick() func() error
- func (self *CommitMessageController) GetOnFocus() func(types.OnFocusOpts)
- func (self *CommitMessageController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *CommitMessageController) GetOnQuit() func()
- func (self *CommitMessageController) GetOnRenderToMain() func()
- type ConfirmationController
- func (self *ConfirmationController) Context() types.Context
- func (self *ConfirmationController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *ConfirmationController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ConfirmationController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ConfirmationController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *ConfirmationController) GetOnDoubleClick() func() error
- func (self *ConfirmationController) GetOnFocus() func(types.OnFocusOpts)
- func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *ConfirmationController) GetOnQuit() func()
- func (self *ConfirmationController) GetOnRenderToMain() func()
- type ContainsCommits
- type ContextLinesController
- func (self *ContextLinesController) Context() types.Context
- func (self *ContextLinesController) Decrease() error
- func (self *ContextLinesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *ContextLinesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ContextLinesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ContextLinesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *ContextLinesController) GetOnDoubleClick() func() error
- func (self *ContextLinesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *ContextLinesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *ContextLinesController) GetOnQuit() func()
- func (self *ContextLinesController) GetOnRenderToMain() func()
- func (self *ContextLinesController) Increase() error
- type ControllerCommon
- type CustomPatchOptionsMenuAction
- type DiffingMenuAction
- type EditConfigAction
- type FilesController
- func (self *FilesController) Context() types.Context
- func (self *FilesController) Explode(v *gocui.View, onDone func())
- func (self *FilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *FilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *FilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *FilesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *FilesController) GetOnDoubleClick() func() error
- func (self *FilesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *FilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *FilesController) GetOnQuit() func()
- func (self *FilesController) GetOnRenderToMain() func()
- func (self *FilesController) Open() error
- func (self *FilesController) ResetSubmodule(submodule *models.SubmoduleConfig) error
- type FilterController
- func (self *FilterController) Context() types.Context
- func (self *FilterController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *FilterController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *FilterController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *FilterController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *FilterController) GetOnDoubleClick() func() error
- func (self *FilterController) GetOnFocus() func(types.OnFocusOpts)
- func (self *FilterController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *FilterController) GetOnQuit() func()
- func (self *FilterController) GetOnRenderToMain() func()
- func (self *FilterController) OpenFilterPrompt() error
- type FilterControllerFactory
- type FilteringMenuAction
- type GitFlowController
- func (self *GitFlowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *GitFlowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *GitFlowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *GitFlowController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *GitFlowController) GetOnDoubleClick() func() error
- func (self *GitFlowController) GetOnFocus() func(types.OnFocusOpts)
- func (self *GitFlowController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *GitFlowController) GetOnQuit() func()
- func (self *GitFlowController) GetOnRenderToMain() func()
- type GlobalController
- func (self *GlobalController) Context() types.Context
- func (self *GlobalController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *GlobalController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *GlobalController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *GlobalController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *GlobalController) GetOnDoubleClick() func() error
- func (self *GlobalController) GetOnFocus() func(types.OnFocusOpts)
- func (self *GlobalController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *GlobalController) GetOnQuit() func()
- func (self *GlobalController) GetOnRenderToMain() func()
- type IGetHelpers
- type JumpToSideWindowController
- func (self *JumpToSideWindowController) Context() types.Context
- func (self *JumpToSideWindowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *JumpToSideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *JumpToSideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *JumpToSideWindowController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *JumpToSideWindowController) GetOnDoubleClick() func() error
- func (self *JumpToSideWindowController) GetOnFocus() func(types.OnFocusOpts)
- func (self *JumpToSideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *JumpToSideWindowController) GetOnQuit() func()
- func (self *JumpToSideWindowController) GetOnRenderToMain() func()
- type ListController
- func (self *ListController) Context() types.Context
- func (self *ListController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *ListController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ListController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ListController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *ListController) GetOnDoubleClick() func() error
- func (self *ListController) GetOnFocus() func(types.OnFocusOpts)
- func (self *ListController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *ListController) GetOnQuit() func()
- func (self *ListController) GetOnRenderToMain() func()
- func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error
- func (self *ListController) HandleDrag(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) HandleRangeSelectChange(change int) error
- func (self *ListController) HandleRangeSelectDown() error
- func (self *ListController) HandleRangeSelectUp() error
- func (self *ListController) HandleScrollDown() error
- func (self *ListController) HandleScrollLeft() error
- func (self *ListController) HandleScrollRight() error
- func (self *ListController) HandleScrollUp() error
- func (self *ListController) HandleToggleRangeSelect() error
- type ListControllerFactory
- type ListControllerTrait
- type LocalCommitsController
- func (self *LocalCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *LocalCommitsController) GetMouseKeybindings(types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *LocalCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *LocalCommitsController) GetOnDoubleClick() func() error
- func (self *LocalCommitsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *LocalCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *LocalCommitsController) GetOnQuit() func()
- func (self *LocalCommitsController) GetOnRenderToMain() func()
- type MainViewController
- func (self *MainViewController) Context() types.Context
- func (self *MainViewController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *MainViewController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *MainViewController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *MainViewController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *MainViewController) GetOnDoubleClick() func() error
- func (self *MainViewController) GetOnFocus() func(types.OnFocusOpts)
- func (self *MainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *MainViewController) GetOnQuit() func()
- func (self *MainViewController) GetOnRenderToMain() func()
- type MenuController
- func (self *MenuController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *MenuController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *MenuController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *MenuController) GetOnDoubleClick() func() error
- func (self *MenuController) GetOnFocus() func(types.OnFocusOpts)
- func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *MenuController) GetOnQuit() func()
- func (self *MenuController) GetOnRenderToMain() func()
- type MergeConflictsController
- func (self *MergeConflictsController) Context() types.Context
- func (self *MergeConflictsController) Escape() error
- func (self *MergeConflictsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *MergeConflictsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *MergeConflictsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *MergeConflictsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *MergeConflictsController) GetOnDoubleClick() func() error
- func (self *MergeConflictsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *MergeConflictsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *MergeConflictsController) GetOnQuit() func()
- func (self *MergeConflictsController) GetOnRenderToMain() func()
- func (self *MergeConflictsController) HandleEditFile() error
- func (self *MergeConflictsController) HandleOpenFile() error
- func (self *MergeConflictsController) HandlePickBothHunks() 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 PromptController
- func (self *PromptController) Context() types.Context
- func (self *PromptController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *PromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *PromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *PromptController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *PromptController) GetOnDoubleClick() func() error
- func (self *PromptController) GetOnFocus() func(types.OnFocusOpts)
- func (self *PromptController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *PromptController) GetOnQuit() func()
- func (self *PromptController) GetOnRenderToMain() func()
- type PullFilesFn
- type PullFilesOptions
- type QuitActions
- type ReflogActionKind
- type ReflogCommitsController
- func (self *ReflogCommitsController) Context() types.Context
- func (self *ReflogCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *ReflogCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *ReflogCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *ReflogCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *ReflogCommitsController) GetOnDoubleClick() func() error
- func (self *ReflogCommitsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *ReflogCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *ReflogCommitsController) GetOnQuit() func()
- func (self *ReflogCommitsController) GetOnRenderToMain() func()
- type RemoteBranchesController
- func (self *RemoteBranchesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *RemoteBranchesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *RemoteBranchesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *RemoteBranchesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *RemoteBranchesController) GetOnDoubleClick() func() error
- func (self *RemoteBranchesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *RemoteBranchesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *RemoteBranchesController) GetOnQuit() func()
- func (self *RemoteBranchesController) GetOnRenderToMain() func()
- type RemotesController
- func (self *RemotesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *RemotesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *RemotesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *RemotesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *RemotesController) GetOnDoubleClick() func() error
- func (self *RemotesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *RemotesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *RemotesController) GetOnQuit() func()
- func (self *RemotesController) GetOnRenderToMain() func()
- type RenameSimilarityThresholdController
- func (self *RenameSimilarityThresholdController) Context() types.Context
- func (self *RenameSimilarityThresholdController) Decrease() error
- func (self *RenameSimilarityThresholdController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *RenameSimilarityThresholdController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *RenameSimilarityThresholdController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *RenameSimilarityThresholdController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *RenameSimilarityThresholdController) GetOnDoubleClick() func() error
- func (self *RenameSimilarityThresholdController) GetOnFocus() func(types.OnFocusOpts)
- func (self *RenameSimilarityThresholdController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *RenameSimilarityThresholdController) GetOnQuit() func()
- func (self *RenameSimilarityThresholdController) GetOnRenderToMain() func()
- func (self *RenameSimilarityThresholdController) Increase() error
- type ScreenModeActions
- type SearchController
- func (self *SearchController) Context() types.Context
- func (self *SearchController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SearchController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SearchController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SearchController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SearchController) GetOnDoubleClick() func() error
- func (self *SearchController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SearchController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SearchController) GetOnQuit() func()
- func (self *SearchController) GetOnRenderToMain() func()
- type SearchControllerFactory
- type SearchPromptController
- func (self *SearchPromptController) Context() types.Context
- func (self *SearchPromptController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SearchPromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SearchPromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SearchPromptController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SearchPromptController) GetOnDoubleClick() func() error
- func (self *SearchPromptController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SearchPromptController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SearchPromptController) GetOnQuit() func()
- func (self *SearchPromptController) GetOnRenderToMain() func()
- type ShellCommandAction
- type SideWindowController
- func (self *SideWindowController) Context() types.Context
- func (self *SideWindowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SideWindowController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SideWindowController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SideWindowController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SideWindowController) GetOnDoubleClick() func() error
- func (self *SideWindowController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SideWindowController) GetOnQuit() func()
- func (self *SideWindowController) GetOnRenderToMain() func()
- type SideWindowControllerFactory
- type SnakeController
- func (self *SnakeController) Context() types.Context
- func (self *SnakeController) Escape() error
- func (self *SnakeController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SnakeController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SnakeController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SnakeController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SnakeController) GetOnDoubleClick() func() error
- func (self *SnakeController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SnakeController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SnakeController) GetOnQuit() func()
- func (self *SnakeController) GetOnRenderToMain() func()
- func (self *SnakeController) SetDirection(direction snake.Direction) func() error
- type StashController
- func (self *StashController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *StashController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *StashController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *StashController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *StashController) GetOnDoubleClick() func() error
- func (self *StashController) GetOnFocus() func(types.OnFocusOpts)
- func (self *StashController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *StashController) GetOnQuit() func()
- func (self *StashController) GetOnRenderToMain() func()
- type StatusController
- func (self *StatusController) Context() types.Context
- func (self *StatusController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *StatusController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *StatusController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *StatusController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *StatusController) GetOnDoubleClick() func() error
- func (self *StatusController) GetOnFocus() func(types.OnFocusOpts)
- func (self *StatusController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *StatusController) GetOnQuit() func()
- func (self *StatusController) GetOnRenderToMain() func()
- type SubCommitsController
- func (self *SubCommitsController) Context() types.Context
- func (self *SubCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SubCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SubCommitsController) GetOnDoubleClick() func() error
- func (self *SubCommitsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SubCommitsController) GetOnQuit() func()
- func (self *SubCommitsController) GetOnRenderToMain() func()
- type SubmodulesController
- func (self *SubmodulesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SubmodulesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SubmodulesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SubmodulesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SubmodulesController) GetOnDoubleClick() func() error
- func (self *SubmodulesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SubmodulesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SubmodulesController) GetOnQuit() func()
- func (self *SubmodulesController) GetOnRenderToMain() func()
- type SuggestionsController
- func (self *SuggestionsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SuggestionsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SuggestionsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SuggestionsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SuggestionsController) GetOnDoubleClick() func() error
- func (self *SuggestionsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SuggestionsController) GetOnQuit() func()
- func (self *SuggestionsController) GetOnRenderToMain() func()
- type SwitchToDiffFilesController
- func (self *SwitchToDiffFilesController) Context() types.Context
- func (self *SwitchToDiffFilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SwitchToDiffFilesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SwitchToDiffFilesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SwitchToDiffFilesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SwitchToDiffFilesController) GetOnDoubleClick() func() error
- func (self *SwitchToDiffFilesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SwitchToDiffFilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SwitchToDiffFilesController) GetOnQuit() func()
- func (self *SwitchToDiffFilesController) GetOnRenderToMain() func()
- type SwitchToFocusedMainViewController
- func (self *SwitchToFocusedMainViewController) Context() types.Context
- func (self *SwitchToFocusedMainViewController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SwitchToFocusedMainViewController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SwitchToFocusedMainViewController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SwitchToFocusedMainViewController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SwitchToFocusedMainViewController) GetOnDoubleClick() func() error
- func (self *SwitchToFocusedMainViewController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SwitchToFocusedMainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SwitchToFocusedMainViewController) GetOnQuit() func()
- func (self *SwitchToFocusedMainViewController) GetOnRenderToMain() func()
- type SwitchToSubCommitsController
- func (self *SwitchToSubCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SwitchToSubCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SwitchToSubCommitsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SwitchToSubCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SwitchToSubCommitsController) GetOnDoubleClick() func() error
- func (self *SwitchToSubCommitsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SwitchToSubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SwitchToSubCommitsController) GetOnQuit() func()
- func (self *SwitchToSubCommitsController) GetOnRenderToMain() func()
- type SyncController
- func (self *SyncController) Context() types.Context
- func (self *SyncController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *SyncController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *SyncController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *SyncController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *SyncController) GetOnDoubleClick() func() error
- func (self *SyncController) GetOnFocus() func(types.OnFocusOpts)
- func (self *SyncController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *SyncController) GetOnQuit() func()
- func (self *SyncController) GetOnRenderToMain() func()
- func (self *SyncController) HandlePull() error
- func (self *SyncController) HandlePush() error
- func (self *SyncController) PullAux(currentBranch *models.Branch, opts PullFilesOptions) error
- type TagsController
- func (self *TagsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *TagsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *TagsController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *TagsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *TagsController) GetOnDoubleClick() func() error
- func (self *TagsController) GetOnFocus() func(types.OnFocusOpts)
- func (self *TagsController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *TagsController) GetOnQuit() func()
- func (self *TagsController) GetOnRenderToMain() func()
- type ToggleWhitespaceAction
- type UndoController
- func (self *UndoController) Context() types.Context
- func (self *UndoController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *UndoController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *UndoController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *UndoController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *UndoController) GetOnDoubleClick() func() error
- func (self *UndoController) GetOnFocus() func(types.OnFocusOpts)
- func (self *UndoController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *UndoController) GetOnQuit() func()
- func (self *UndoController) GetOnRenderToMain() func()
- type VerticalScrollController
- func (self *VerticalScrollController) Context() types.Context
- func (self *VerticalScrollController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *VerticalScrollController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *VerticalScrollController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *VerticalScrollController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *VerticalScrollController) GetOnDoubleClick() func() error
- func (self *VerticalScrollController) GetOnFocus() func(types.OnFocusOpts)
- func (self *VerticalScrollController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *VerticalScrollController) GetOnQuit() func()
- func (self *VerticalScrollController) GetOnRenderToMain() func()
- func (self *VerticalScrollController) HandleScrollDown() error
- func (self *VerticalScrollController) HandleScrollUp() error
- type VerticalScrollControllerFactory
- type WorkingTreeDiffActions
- func (self *WorkingTreeDiffActions) DiscardSelection(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
- func (self *WorkingTreeDiffActions) DiscardSelectionDisabledReason(types.DiffPaneContext) *types.DisabledReason
- func (self *WorkingTreeDiffActions) EditHunk(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
- func (self *WorkingTreeDiffActions) PatchInclusion() func(types.DiffLineInfo) bool
- func (self *WorkingTreeDiffActions) PlainDiff(pane types.DiffPaneContext, paths []string) string
- func (self *WorkingTreeDiffActions) PrimaryAction(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
- type WorktreesController
- func (self *WorktreesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
- func (self *WorktreesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
- func (self *WorktreesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
- func (self *WorktreesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
- func (self *WorktreesController) GetOnDoubleClick() func() error
- func (self *WorktreesController) GetOnFocus() func(types.OnFocusOpts)
- func (self *WorktreesController) GetOnFocusLost() func(types.OnFocusLostOpts)
- func (self *WorktreesController) GetOnQuit() func()
- func (self *WorktreesController) GetOnRenderToMain() func()
Constants ¶
const COMMIT_THRESHOLD = 200
after selecting the 200th commit, we'll load in all the rest
Variables ¶
This section is empty.
Functions ¶
func AttachControllers ¶
func AttachControllers(context types.Context, controllers ...types.IController)
Types ¶
type BasicCommitsController ¶
type BasicCommitsController struct {
*ListControllerTrait[*models.Commit]
// contains filtered or unexported fields
}
func NewBasicCommitsController ¶
func NewBasicCommitsController(c *ControllerCommon, context ContainsCommits) *BasicCommitsController
func (*BasicCommitsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *BasicCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*BasicCommitsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *BasicCommitsController) GetOnDoubleClick() func() error
func (*BasicCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnFocus() func(types.OnFocusOpts)
func (*BasicCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*BasicCommitsController) GetOnQuit ¶ added in v0.62.0
func (self *BasicCommitsController) GetOnQuit() func()
func (*BasicCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BasicCommitsController) GetOnRenderToMain() func()
type BisectController ¶
type BisectController struct {
*ListControllerTrait[*models.Commit]
// contains filtered or unexported fields
}
func NewBisectController ¶
func NewBisectController( c *ControllerCommon, ) *BisectController
func (*BisectController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *BisectController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*BisectController) GetOnDoubleClick ¶ added in v0.61.0
func (self *BisectController) GetOnDoubleClick() func() error
func (*BisectController) GetOnFocus ¶ added in v0.39.0
func (self *BisectController) GetOnFocus() func(types.OnFocusOpts)
func (*BisectController) GetOnFocusLost ¶ added in v0.39.0
func (self *BisectController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*BisectController) GetOnQuit ¶ added in v0.62.0
func (self *BisectController) GetOnQuit() func()
func (*BisectController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BisectController) GetOnRenderToMain() func()
type BranchesController ¶
type BranchesController struct {
*ListControllerTrait[*models.Branch]
// contains filtered or unexported fields
}
func NewBranchesController ¶
func NewBranchesController( c *ControllerCommon, ) *BranchesController
func (*BranchesController) Context ¶
func (self *BranchesController) Context() types.Context
func (*BranchesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *BranchesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*BranchesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *BranchesController) GetOnDoubleClick() func() error
func (*BranchesController) GetOnFocus ¶ added in v0.39.0
func (self *BranchesController) GetOnFocus() func(types.OnFocusOpts)
func (*BranchesController) GetOnFocusLost ¶ added in v0.39.0
func (self *BranchesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*BranchesController) GetOnQuit ¶ added in v0.62.0
func (self *BranchesController) GetOnQuit() func()
func (*BranchesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *BranchesController) GetOnRenderToMain() func()
type CanSwitchToDiffFiles ¶
type CanSwitchToSubCommits ¶
type CanSwitchToSubCommits interface {
types.IListContext
GetSelectedRef() models.Ref
ShowBranchHeadsInSubCommits() bool
}
type CommandLogController ¶ added in v0.39.0
type CommandLogController struct {
// contains filtered or unexported fields
}
func NewCommandLogController ¶ added in v0.39.0
func NewCommandLogController( c *ControllerCommon, ) *CommandLogController
func (*CommandLogController) Context ¶ added in v0.39.0
func (self *CommandLogController) Context() types.Context
func (*CommandLogController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *CommandLogController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*CommandLogController) GetOnDoubleClick ¶ added in v0.61.0
func (self *CommandLogController) GetOnDoubleClick() func() error
func (*CommandLogController) GetOnFocus ¶ added in v0.39.0
func (self *CommandLogController) GetOnFocus() func(types.OnFocusOpts)
func (*CommandLogController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommandLogController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*CommandLogController) GetOnQuit ¶ added in v0.62.0
func (self *CommandLogController) GetOnQuit() func()
func (*CommandLogController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommandLogController) GetOnRenderToMain() func()
type CommitDescriptionController ¶ added in v0.38.0
type CommitDescriptionController struct {
// contains filtered or unexported fields
}
func NewCommitDescriptionController ¶ added in v0.38.0
func NewCommitDescriptionController( c *ControllerCommon, ) *CommitDescriptionController
func (*CommitDescriptionController) Context ¶ added in v0.38.0
func (self *CommitDescriptionController) Context() types.Context
func (*CommitDescriptionController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *CommitDescriptionController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*CommitDescriptionController) GetOnDoubleClick ¶ added in v0.61.0
func (self *CommitDescriptionController) GetOnDoubleClick() func() error
func (*CommitDescriptionController) GetOnFocus ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnFocus() func(types.OnFocusOpts)
func (*CommitDescriptionController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*CommitDescriptionController) GetOnQuit ¶ added in v0.62.0
func (self *CommitDescriptionController) GetOnQuit() func()
func (*CommitDescriptionController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitDescriptionController) GetOnRenderToMain() func()
type CommitDiffActions ¶ added in v0.66.0
type CommitDiffActions struct {
// contains filtered or unexported fields
}
CommitDiffActions implements what a panel showing a commit's diff offers on that diff in the focused main view. Five panels do: the commit files panel shows the diff of one file of a commit, and the commits, sub-commits, stash and reflog panels the whole diff of whatever they have selected. They all offer the same thing and differ only in which diff they show, so they share this, each saying which diff that is.
func NewCommitDiffActions ¶ added in v0.66.0
func NewCommitDiffActions( c *ControllerCommon, panel types.Context, target func() *commitDiffTarget, ) *CommitDiffActions
func (*CommitDiffActions) DiscardSelection ¶ added in v0.66.0
func (self *CommitDiffActions) DiscardSelection(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
DiscardSelection takes the selected lines out of the commit they are part of, by building a patch of exactly those lines and removing that patch from the commit. It is a rebase, so a later commit that touches the same lines can conflict with it.
The patch it needs is its own, so a patch being built is given up first — which the prompt says, there being no way to get it back.
func (*CommitDiffActions) DiscardSelectionDisabledReason ¶ added in v0.66.0
func (self *CommitDiffActions) DiscardSelectionDisabledReason(pane types.DiffPaneContext) *types.DisabledReason
DiscardSelectionDisabledReason says why the selected lines can't be taken out of the commit: doing so rewrites it, which is only ours to do for a commit of the branch we are on, and not while a rebase is already under way. In the pane previewing the custom patch there is nothing to discard from — the lines there are the patch's, and space takes them back out of it.
func (*CommitDiffActions) PatchInclusion ¶ added in v0.66.0
func (self *CommitDiffActions) PatchInclusion() func(types.DiffLineInfo) bool
PatchInclusion says which lines of the commit's diff are in the custom patch being built from it. nil when there is no such patch: none is being built at all, or the one being built is of another diff, whose lines are not these however alike they look.
func (*CommitDiffActions) PlainDiff ¶ added in v0.66.0
func (self *CommitDiffActions) PlainDiff(pane types.DiffPaneContext, paths []string) string
PlainDiff hands out the diff the asking pane is showing, for the given files — the commit's diff as in the main view, only without the commit's message and stat above it, or the diff the custom patch is previewed as, whose lines are the patch's own rather than the commit's.
The patch's own diff is handed out whole: it is only ever as big as the patch, and it names its files under the trees the patch was materialized into rather than under the paths asked for.
func (*CommitDiffActions) PrimaryAction ¶ added in v0.66.0
func (self *CommitDiffActions) PrimaryAction(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
PrimaryAction takes the selected lines into the custom patch being built from this diff, or back out of it when the first of them is already in — the same toggling the commit files panel does to a whole file at a time.
The commit is not touched, so the diff stays as it is: what changes is the patch beside it, and which of its lines are marked as being in that patch.
type CommitFilesController ¶
type CommitFilesController struct {
*ListControllerTrait[*filetree.CommitFileNode]
// contains filtered or unexported fields
}
func NewCommitFilesController ¶
func NewCommitFilesController( c *ControllerCommon, ) *CommitFilesController
func (*CommitFilesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *CommitFilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*CommitFilesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *CommitFilesController) GetOnDoubleClick() func() error
func (*CommitFilesController) GetOnFocus ¶ added in v0.39.0
func (self *CommitFilesController) GetOnFocus() func(types.OnFocusOpts)
func (*CommitFilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitFilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*CommitFilesController) GetOnQuit ¶ added in v0.62.0
func (self *CommitFilesController) GetOnQuit() func()
func (*CommitFilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitFilesController) GetOnRenderToMain() func()
type CommitMessageController ¶
type CommitMessageController struct {
// contains filtered or unexported fields
}
func NewCommitMessageController ¶
func NewCommitMessageController( c *ControllerCommon, ) *CommitMessageController
func (*CommitMessageController) Context ¶
func (self *CommitMessageController) Context() types.Context
func (*CommitMessageController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *CommitMessageController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*CommitMessageController) GetOnDoubleClick ¶ added in v0.61.0
func (self *CommitMessageController) GetOnDoubleClick() func() error
func (*CommitMessageController) GetOnFocus ¶ added in v0.39.0
func (self *CommitMessageController) GetOnFocus() func(types.OnFocusOpts)
func (*CommitMessageController) GetOnFocusLost ¶ added in v0.39.0
func (self *CommitMessageController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*CommitMessageController) GetOnQuit ¶ added in v0.62.0
func (self *CommitMessageController) GetOnQuit() func()
func (*CommitMessageController) GetOnRenderToMain ¶ added in v0.39.0
func (self *CommitMessageController) GetOnRenderToMain() func()
type ConfirmationController ¶ added in v0.39.0
type ConfirmationController struct {
// contains filtered or unexported fields
}
func NewConfirmationController ¶ added in v0.39.0
func NewConfirmationController( c *ControllerCommon, ) *ConfirmationController
func (*ConfirmationController) Context ¶ added in v0.39.0
func (self *ConfirmationController) Context() types.Context
func (*ConfirmationController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *ConfirmationController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*ConfirmationController) GetOnDoubleClick ¶ added in v0.61.0
func (self *ConfirmationController) GetOnDoubleClick() func() error
func (*ConfirmationController) GetOnFocus ¶ added in v0.39.0
func (self *ConfirmationController) GetOnFocus() func(types.OnFocusOpts)
func (*ConfirmationController) GetOnFocusLost ¶ added in v0.39.0
func (self *ConfirmationController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*ConfirmationController) GetOnQuit ¶ added in v0.62.0
func (self *ConfirmationController) GetOnQuit() func()
func (*ConfirmationController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ConfirmationController) GetOnRenderToMain() func()
type ContainsCommits ¶
type ContainsCommits interface {
types.Context
types.IListContext
GetSelected() *models.Commit
GetSelectedItems() ([]*models.Commit, int, int)
GetCommits() []*models.Commit
GetSelectedLineIdx() int
GetSelectionRangeAndMode() (int, int, traits.RangeSelectMode)
SetSelectionRangeAndMode(int, int, traits.RangeSelectMode)
}
type ContextLinesController ¶ added in v0.36.0
type ContextLinesController struct {
// contains filtered or unexported fields
}
func NewContextLinesController ¶ added in v0.36.0
func NewContextLinesController( c *ControllerCommon, ) *ContextLinesController
func (*ContextLinesController) Context ¶ added in v0.36.0
func (self *ContextLinesController) Context() types.Context
func (*ContextLinesController) Decrease ¶ added in v0.36.0
func (self *ContextLinesController) Decrease() error
func (*ContextLinesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *ContextLinesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*ContextLinesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *ContextLinesController) GetOnDoubleClick() func() error
func (*ContextLinesController) GetOnFocus ¶ added in v0.39.0
func (self *ContextLinesController) GetOnFocus() func(types.OnFocusOpts)
func (*ContextLinesController) GetOnFocusLost ¶ added in v0.39.0
func (self *ContextLinesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*ContextLinesController) GetOnQuit ¶ added in v0.62.0
func (self *ContextLinesController) GetOnQuit() func()
func (*ContextLinesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ContextLinesController) GetOnRenderToMain() func()
func (*ContextLinesController) Increase ¶ added in v0.36.0
func (self *ContextLinesController) Increase() error
type ControllerCommon ¶ added in v0.39.0
type ControllerCommon struct {
*helpers.HelperCommon
IGetHelpers
}
func NewControllerCommon ¶
func NewControllerCommon( c *helpers.HelperCommon, IGetHelpers IGetHelpers, ) *ControllerCommon
type CustomPatchOptionsMenuAction ¶ added in v0.39.0
type CustomPatchOptionsMenuAction struct {
// contains filtered or unexported fields
}
func (*CustomPatchOptionsMenuAction) Call ¶ added in v0.39.0
func (self *CustomPatchOptionsMenuAction) Call() error
type DiffingMenuAction ¶ added in v0.39.0
type DiffingMenuAction struct {
// contains filtered or unexported fields
}
func (*DiffingMenuAction) Call ¶ added in v0.39.0
func (self *DiffingMenuAction) Call() error
type EditConfigAction ¶ added in v0.63.0
type EditConfigAction struct {
// contains filtered or unexported fields
}
func (*EditConfigAction) Call ¶ added in v0.63.0
func (self *EditConfigAction) Call() error
type FilesController ¶
type FilesController struct {
*ListControllerTrait[*filetree.FileNode]
// contains filtered or unexported fields
}
func NewFilesController ¶
func NewFilesController( c *ControllerCommon, ) *FilesController
func (*FilesController) Context ¶
func (self *FilesController) Context() types.Context
func (*FilesController) Explode ¶ added in v0.40.0
func (self *FilesController) Explode(v *gocui.View, onDone func())
Animates an explosion within the view by drawing a bunch of flamey characters
func (*FilesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *FilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*FilesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *FilesController) GetOnDoubleClick() func() error
func (*FilesController) GetOnFocus ¶ added in v0.39.0
func (self *FilesController) GetOnFocus() func(types.OnFocusOpts)
func (*FilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *FilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*FilesController) GetOnQuit ¶ added in v0.62.0
func (self *FilesController) GetOnQuit() func()
func (*FilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *FilesController) GetOnRenderToMain() func()
func (*FilesController) Open ¶
func (self *FilesController) Open() error
func (*FilesController) ResetSubmodule ¶ added in v0.41.0
func (self *FilesController) ResetSubmodule(submodule *models.SubmoduleConfig) error
type FilterController ¶ added in v0.39.0
type FilterController struct {
// contains filtered or unexported fields
}
func (*FilterController) Context ¶ added in v0.39.0
func (self *FilterController) Context() types.Context
func (*FilterController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *FilterController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*FilterController) GetOnDoubleClick ¶ added in v0.61.0
func (self *FilterController) GetOnDoubleClick() func() error
func (*FilterController) GetOnFocus ¶ added in v0.39.0
func (self *FilterController) GetOnFocus() func(types.OnFocusOpts)
func (*FilterController) GetOnFocusLost ¶ added in v0.39.0
func (self *FilterController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*FilterController) GetOnQuit ¶ added in v0.62.0
func (self *FilterController) GetOnQuit() func()
func (*FilterController) GetOnRenderToMain ¶ added in v0.39.0
func (self *FilterController) GetOnRenderToMain() func()
func (*FilterController) OpenFilterPrompt ¶ added in v0.39.0
func (self *FilterController) OpenFilterPrompt() error
type FilterControllerFactory ¶ added in v0.39.0
type FilterControllerFactory struct {
// contains filtered or unexported fields
}
func NewFilterControllerFactory ¶ added in v0.39.0
func NewFilterControllerFactory(c *ControllerCommon) *FilterControllerFactory
func (*FilterControllerFactory) Create ¶ added in v0.39.0
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 {
*ListControllerTrait[*models.Branch]
// contains filtered or unexported fields
}
func NewGitFlowController ¶
func NewGitFlowController( c *ControllerCommon, ) *GitFlowController
func (*GitFlowController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *GitFlowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*GitFlowController) GetOnDoubleClick ¶ added in v0.61.0
func (self *GitFlowController) GetOnDoubleClick() func() error
func (*GitFlowController) GetOnFocus ¶ added in v0.39.0
func (self *GitFlowController) GetOnFocus() func(types.OnFocusOpts)
func (*GitFlowController) GetOnFocusLost ¶ added in v0.39.0
func (self *GitFlowController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*GitFlowController) GetOnQuit ¶ added in v0.62.0
func (self *GitFlowController) GetOnQuit() func()
func (*GitFlowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *GitFlowController) GetOnRenderToMain() func()
type GlobalController ¶
type GlobalController struct {
// contains filtered or unexported fields
}
func NewGlobalController ¶
func NewGlobalController( c *ControllerCommon, ) *GlobalController
func (*GlobalController) Context ¶
func (self *GlobalController) Context() types.Context
func (*GlobalController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *GlobalController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*GlobalController) GetOnDoubleClick ¶ added in v0.61.0
func (self *GlobalController) GetOnDoubleClick() func() error
func (*GlobalController) GetOnFocus ¶ added in v0.39.0
func (self *GlobalController) GetOnFocus() func(types.OnFocusOpts)
func (*GlobalController) GetOnFocusLost ¶ added in v0.39.0
func (self *GlobalController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*GlobalController) GetOnQuit ¶ added in v0.62.0
func (self *GlobalController) GetOnQuit() func()
func (*GlobalController) GetOnRenderToMain ¶ added in v0.39.0
func (self *GlobalController) GetOnRenderToMain() func()
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( c *ControllerCommon, nextTabFunc func() error, ) *JumpToSideWindowController
func (*JumpToSideWindowController) Context ¶ added in v0.39.0
func (self *JumpToSideWindowController) Context() types.Context
func (*JumpToSideWindowController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *JumpToSideWindowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*JumpToSideWindowController) GetOnDoubleClick ¶ added in v0.61.0
func (self *JumpToSideWindowController) GetOnDoubleClick() func() error
func (*JumpToSideWindowController) GetOnFocus ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnFocus() func(types.OnFocusOpts)
func (*JumpToSideWindowController) GetOnFocusLost ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*JumpToSideWindowController) GetOnQuit ¶ added in v0.62.0
func (self *JumpToSideWindowController) GetOnQuit() func()
func (*JumpToSideWindowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *JumpToSideWindowController) GetOnRenderToMain() func()
type ListController ¶
type ListController struct {
// contains filtered or unexported fields
}
func (*ListController) Context ¶
func (self *ListController) Context() types.Context
func (*ListController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *ListController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*ListController) GetOnDoubleClick ¶ added in v0.61.0
func (self *ListController) GetOnDoubleClick() func() error
func (*ListController) GetOnFocus ¶ added in v0.39.0
func (self *ListController) GetOnFocus() func(types.OnFocusOpts)
func (*ListController) GetOnFocusLost ¶ added in v0.39.0
func (self *ListController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*ListController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ListController) GetOnRenderToMain() func()
func (*ListController) HandleClick ¶
func (self *ListController) HandleClick(opts gocui.ViewMouseBindingOpts) error
func (*ListController) HandleDrag ¶ added in v0.64.0
func (self *ListController) HandleDrag(opts gocui.ViewMouseBindingOpts) error
func (*ListController) HandleGotoBottom ¶
func (self *ListController) HandleGotoBottom() error
func (*ListController) HandleGotoTop ¶
func (self *ListController) HandleGotoTop() error
func (*ListController) HandleNextLine ¶
func (self *ListController) HandleNextLine() error
func (*ListController) HandleNextPage ¶
func (self *ListController) HandleNextPage() error
func (*ListController) HandlePrevLine ¶
func (self *ListController) HandlePrevLine() error
func (*ListController) HandlePrevPage ¶
func (self *ListController) HandlePrevPage() error
func (*ListController) HandleRangeSelectChange ¶ added in v0.41.0
func (self *ListController) HandleRangeSelectChange(change int) error
func (*ListController) HandleRangeSelectDown ¶ added in v0.41.0
func (self *ListController) HandleRangeSelectDown() error
func (*ListController) HandleRangeSelectUp ¶ added in v0.41.0
func (self *ListController) HandleRangeSelectUp() error
func (*ListController) HandleScrollDown ¶
func (self *ListController) HandleScrollDown() error
func (*ListController) HandleScrollLeft ¶
func (self *ListController) HandleScrollLeft() error
func (*ListController) HandleScrollRight ¶
func (self *ListController) HandleScrollRight() error
func (*ListController) HandleScrollUp ¶
func (self *ListController) HandleScrollUp() error
func (*ListController) HandleToggleRangeSelect ¶ added in v0.41.0
func (self *ListController) HandleToggleRangeSelect() error
type ListControllerFactory ¶
type ListControllerFactory struct {
// contains filtered or unexported fields
}
func NewListControllerFactory ¶
func NewListControllerFactory(c *ControllerCommon) *ListControllerFactory
func (*ListControllerFactory) Create ¶
func (self *ListControllerFactory) Create(context types.IListContext) *ListController
type ListControllerTrait ¶ added in v0.41.0
type ListControllerTrait[T comparable] struct { // contains filtered or unexported fields }
func NewListControllerTrait ¶ added in v0.41.0
func NewListControllerTrait[T comparable]( c *ControllerCommon, context types.IListContext, getSelected func() T, getSelectedItems func() ([]T, int, int), ) *ListControllerTrait[T]
func (*ListControllerTrait[T]) Context ¶ added in v0.41.0
func (self *ListControllerTrait[T]) Context() types.Context
All controllers must implement this method so we're defining it here for convenience
type LocalCommitsController ¶
type LocalCommitsController struct {
*ListControllerTrait[*models.Commit]
// contains filtered or unexported fields
}
func NewLocalCommitsController ¶
func NewLocalCommitsController( c *ControllerCommon, pullFiles PullFilesFn, ) *LocalCommitsController
func (*LocalCommitsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *LocalCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*LocalCommitsController) GetKeybindings ¶
func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*LocalCommitsController) GetMouseKeybindings ¶
func (self *LocalCommitsController) GetMouseKeybindings(types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*LocalCommitsController) GetOnClick ¶
func (self *LocalCommitsController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*LocalCommitsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *LocalCommitsController) GetOnDoubleClick() func() error
func (*LocalCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnFocus() func(types.OnFocusOpts)
func (*LocalCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*LocalCommitsController) GetOnQuit ¶ added in v0.62.0
func (self *LocalCommitsController) GetOnQuit() func()
func (*LocalCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *LocalCommitsController) GetOnRenderToMain() func()
type MainViewController ¶ added in v0.50.0
type MainViewController struct {
// contains filtered or unexported fields
}
func NewMainViewController ¶ added in v0.50.0
func NewMainViewController( c *ControllerCommon, context *context.MainContext, otherContext *context.MainContext, ) *MainViewController
func (*MainViewController) Context ¶ added in v0.50.0
func (self *MainViewController) Context() types.Context
func (*MainViewController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *MainViewController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*MainViewController) GetKeybindings ¶ added in v0.50.0
func (self *MainViewController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*MainViewController) GetMouseKeybindings ¶ added in v0.50.0
func (self *MainViewController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MainViewController) GetOnClick ¶ added in v0.50.0
func (self *MainViewController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*MainViewController) GetOnDoubleClick ¶ added in v0.61.0
func (self *MainViewController) GetOnDoubleClick() func() error
func (*MainViewController) GetOnFocus ¶ added in v0.50.0
func (self *MainViewController) GetOnFocus() func(types.OnFocusOpts)
func (*MainViewController) GetOnFocusLost ¶ added in v0.50.0
func (self *MainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)
GetOnFocusLost stops an autoscroll that is still running when the view loses focus mid-drag, e.g. because a popup appeared, and gives up the mouse capture with it — otherwise the pointer would keep driving a view that no longer has focus.
func (*MainViewController) GetOnQuit ¶ added in v0.62.0
func (self *MainViewController) GetOnQuit() func()
func (*MainViewController) GetOnRenderToMain ¶ added in v0.50.0
func (self *MainViewController) GetOnRenderToMain() func()
type MenuController ¶
type MenuController struct {
*ListControllerTrait[*types.MenuItem]
// contains filtered or unexported fields
}
func NewMenuController ¶
func NewMenuController( c *ControllerCommon, listController *ListController, ) *MenuController
func (*MenuController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *MenuController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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 `essentialKeys` in `pkg/gui/menu_panel.go`, so that menu items can't shadow it
func (*MenuController) GetMouseKeybindings ¶
func (self *MenuController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*MenuController) GetOnClick ¶
func (self *MenuController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*MenuController) GetOnDoubleClick ¶ added in v0.61.0
func (self *MenuController) GetOnDoubleClick() func() error
func (*MenuController) GetOnFocus ¶ added in v0.39.0
func (self *MenuController) GetOnFocus() func(types.OnFocusOpts)
func (*MenuController) GetOnFocusLost ¶ added in v0.39.0
func (self *MenuController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*MenuController) GetOnRenderToMain ¶ added in v0.39.0
func (self *MenuController) GetOnRenderToMain() func()
type MergeConflictsController ¶ added in v0.36.0
type MergeConflictsController struct {
// contains filtered or unexported fields
}
func NewMergeConflictsController ¶ added in v0.36.0
func NewMergeConflictsController( c *ControllerCommon, ) *MergeConflictsController
func (*MergeConflictsController) Context ¶ added in v0.36.0
func (self *MergeConflictsController) Context() types.Context
func (*MergeConflictsController) Escape ¶ added in v0.36.0
func (self *MergeConflictsController) Escape() error
func (*MergeConflictsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *MergeConflictsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*MergeConflictsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *MergeConflictsController) GetOnDoubleClick() func() error
func (*MergeConflictsController) GetOnFocus ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnFocus() func(types.OnFocusOpts)
func (*MergeConflictsController) GetOnFocusLost ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*MergeConflictsController) GetOnQuit ¶ added in v0.62.0
func (self *MergeConflictsController) GetOnQuit() func()
func (*MergeConflictsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *MergeConflictsController) GetOnRenderToMain() func()
func (*MergeConflictsController) HandleEditFile ¶ added in v0.36.0
func (self *MergeConflictsController) HandleEditFile() error
func (*MergeConflictsController) HandleOpenFile ¶ added in v0.36.0
func (self *MergeConflictsController) HandleOpenFile() error
func (*MergeConflictsController) HandlePickBothHunks ¶ added in v0.63.0
func (self *MergeConflictsController) HandlePickBothHunks() 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 PromptController ¶ added in v0.55.0
type PromptController struct {
// contains filtered or unexported fields
}
func NewPromptController ¶ added in v0.55.0
func NewPromptController( c *ControllerCommon, ) *PromptController
func (*PromptController) Context ¶ added in v0.55.0
func (self *PromptController) Context() types.Context
func (*PromptController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *PromptController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*PromptController) GetKeybindings ¶ added in v0.55.0
func (self *PromptController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*PromptController) GetMouseKeybindings ¶ added in v0.55.0
func (self *PromptController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*PromptController) GetOnClick ¶ added in v0.55.0
func (self *PromptController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*PromptController) GetOnDoubleClick ¶ added in v0.61.0
func (self *PromptController) GetOnDoubleClick() func() error
func (*PromptController) GetOnFocus ¶ added in v0.55.0
func (self *PromptController) GetOnFocus() func(types.OnFocusOpts)
func (*PromptController) GetOnFocusLost ¶ added in v0.55.0
func (self *PromptController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*PromptController) GetOnQuit ¶ added in v0.62.0
func (self *PromptController) GetOnQuit() func()
func (*PromptController) GetOnRenderToMain ¶ added in v0.55.0
func (self *PromptController) GetOnRenderToMain() func()
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) EscapeDescription ¶ added in v0.55.0
func (self *QuitActions) EscapeDescription() string
func (*QuitActions) EscapeEnabled ¶ added in v0.55.0
func (self *QuitActions) EscapeEnabled() bool
func (*QuitActions) Quit ¶ added in v0.39.0
func (self *QuitActions) Quit() error
func (*QuitActions) QuitWithoutChangingDirectory ¶ added in v0.39.0
func (self *QuitActions) QuitWithoutChangingDirectory() error
type ReflogActionKind ¶
type ReflogActionKind int
const ( CHECKOUT ReflogActionKind = iota COMMIT REBASE CURRENT_REBASE )
type ReflogCommitsController ¶ added in v0.39.0
type ReflogCommitsController struct {
*ListControllerTrait[*models.Commit]
// contains filtered or unexported fields
}
func NewReflogCommitsController ¶ added in v0.39.0
func NewReflogCommitsController( c *ControllerCommon, ) *ReflogCommitsController
func (*ReflogCommitsController) Context ¶ added in v0.39.0
func (self *ReflogCommitsController) Context() types.Context
func (*ReflogCommitsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *ReflogCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*ReflogCommitsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *ReflogCommitsController) GetOnDoubleClick() func() error
func (*ReflogCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnFocus() func(types.OnFocusOpts)
func (*ReflogCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*ReflogCommitsController) GetOnQuit ¶ added in v0.62.0
func (self *ReflogCommitsController) GetOnQuit() func()
func (*ReflogCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *ReflogCommitsController) GetOnRenderToMain() func()
type RemoteBranchesController ¶
type RemoteBranchesController struct {
*ListControllerTrait[*models.RemoteBranch]
// contains filtered or unexported fields
}
func NewRemoteBranchesController ¶
func NewRemoteBranchesController( c *ControllerCommon, ) *RemoteBranchesController
func (*RemoteBranchesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *RemoteBranchesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*RemoteBranchesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *RemoteBranchesController) GetOnDoubleClick() func() error
func (*RemoteBranchesController) GetOnFocus ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnFocus() func(types.OnFocusOpts)
func (*RemoteBranchesController) GetOnFocusLost ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*RemoteBranchesController) GetOnQuit ¶ added in v0.62.0
func (self *RemoteBranchesController) GetOnQuit() func()
func (*RemoteBranchesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *RemoteBranchesController) GetOnRenderToMain() func()
type RemotesController ¶
type RemotesController struct {
*ListControllerTrait[*models.Remote]
// contains filtered or unexported fields
}
func NewRemotesController ¶
func NewRemotesController( c *ControllerCommon, setRemoteBranches func([]*models.RemoteBranch), ) *RemotesController
func (*RemotesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *RemotesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*RemotesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *RemotesController) GetOnDoubleClick() func() error
func (*RemotesController) GetOnFocus ¶ added in v0.39.0
func (self *RemotesController) GetOnFocus() func(types.OnFocusOpts)
func (*RemotesController) GetOnFocusLost ¶ added in v0.39.0
func (self *RemotesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*RemotesController) GetOnQuit ¶ added in v0.62.0
func (self *RemotesController) GetOnQuit() func()
func (*RemotesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *RemotesController) GetOnRenderToMain() func()
type RenameSimilarityThresholdController ¶ added in v0.43.0
type RenameSimilarityThresholdController struct {
// contains filtered or unexported fields
}
func NewRenameSimilarityThresholdController ¶ added in v0.43.0
func NewRenameSimilarityThresholdController( common *ControllerCommon, ) *RenameSimilarityThresholdController
func (*RenameSimilarityThresholdController) Context ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) Context() types.Context
func (*RenameSimilarityThresholdController) Decrease ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) Decrease() error
func (*RenameSimilarityThresholdController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *RenameSimilarityThresholdController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*RenameSimilarityThresholdController) GetKeybindings ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*RenameSimilarityThresholdController) GetMouseKeybindings ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*RenameSimilarityThresholdController) GetOnClick ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*RenameSimilarityThresholdController) GetOnDoubleClick ¶ added in v0.61.0
func (self *RenameSimilarityThresholdController) GetOnDoubleClick() func() error
func (*RenameSimilarityThresholdController) GetOnFocus ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetOnFocus() func(types.OnFocusOpts)
func (*RenameSimilarityThresholdController) GetOnFocusLost ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*RenameSimilarityThresholdController) GetOnQuit ¶ added in v0.62.0
func (self *RenameSimilarityThresholdController) GetOnQuit() func()
func (*RenameSimilarityThresholdController) GetOnRenderToMain ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) GetOnRenderToMain() func()
func (*RenameSimilarityThresholdController) Increase ¶ added in v0.43.0
func (self *RenameSimilarityThresholdController) Increase() error
type ScreenModeActions ¶ added in v0.39.0
type ScreenModeActions struct {
// contains filtered or unexported fields
}
func (*ScreenModeActions) Next ¶ added in v0.39.0
func (self *ScreenModeActions) Next() error
func (*ScreenModeActions) Prev ¶ added in v0.39.0
func (self *ScreenModeActions) Prev() error
type SearchController ¶ added in v0.39.0
type SearchController struct {
// contains filtered or unexported fields
}
func (*SearchController) Context ¶ added in v0.39.0
func (self *SearchController) Context() types.Context
func (*SearchController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SearchController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SearchController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SearchController) GetOnDoubleClick() func() error
func (*SearchController) GetOnFocus ¶ added in v0.39.0
func (self *SearchController) GetOnFocus() func(types.OnFocusOpts)
func (*SearchController) GetOnFocusLost ¶ added in v0.39.0
func (self *SearchController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SearchController) GetOnQuit ¶ added in v0.62.0
func (self *SearchController) GetOnQuit() func()
func (*SearchController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SearchController) GetOnRenderToMain() func()
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( c *ControllerCommon, ) *SearchPromptController
func (*SearchPromptController) Context ¶ added in v0.39.0
func (self *SearchPromptController) Context() types.Context
func (*SearchPromptController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SearchPromptController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SearchPromptController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SearchPromptController) GetOnDoubleClick() func() error
func (*SearchPromptController) GetOnFocus ¶ added in v0.39.0
func (self *SearchPromptController) GetOnFocus() func(types.OnFocusOpts)
func (*SearchPromptController) GetOnFocusLost ¶ added in v0.39.0
func (self *SearchPromptController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SearchPromptController) GetOnQuit ¶ added in v0.62.0
func (self *SearchPromptController) GetOnQuit() func()
func (*SearchPromptController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SearchPromptController) GetOnRenderToMain() func()
type ShellCommandAction ¶ added in v0.44.0
type ShellCommandAction struct {
// contains filtered or unexported fields
}
func (*ShellCommandAction) Call ¶ added in v0.44.0
func (self *ShellCommandAction) Call() error
func (*ShellCommandAction) GetShellCommandsHistorySuggestionsFunc ¶ added in v0.44.0
func (self *ShellCommandAction) GetShellCommandsHistorySuggestionsFunc() func(string) []*types.Suggestion
type SideWindowController ¶ added in v0.39.0
type SideWindowController struct {
// contains filtered or unexported fields
}
func NewSideWindowController ¶ added in v0.39.0
func NewSideWindowController( c *ControllerCommon, context types.Context, ) *SideWindowController
func (*SideWindowController) Context ¶ added in v0.39.0
func (self *SideWindowController) Context() types.Context
func (*SideWindowController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SideWindowController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SideWindowController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SideWindowController) GetOnDoubleClick() func() error
func (*SideWindowController) GetOnFocus ¶ added in v0.39.0
func (self *SideWindowController) GetOnFocus() func(types.OnFocusOpts)
func (*SideWindowController) GetOnFocusLost ¶ added in v0.39.0
func (self *SideWindowController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SideWindowController) GetOnQuit ¶ added in v0.62.0
func (self *SideWindowController) GetOnQuit() func()
func (*SideWindowController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SideWindowController) GetOnRenderToMain() func()
type SideWindowControllerFactory ¶ added in v0.39.0
type SideWindowControllerFactory struct {
// contains filtered or unexported fields
}
func NewSideWindowControllerFactory ¶ added in v0.39.0
func NewSideWindowControllerFactory(c *ControllerCommon) *SideWindowControllerFactory
func (*SideWindowControllerFactory) Create ¶ added in v0.39.0
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( c *ControllerCommon, ) *SnakeController
func (*SnakeController) Context ¶ added in v0.37.0
func (self *SnakeController) Context() types.Context
func (*SnakeController) Escape ¶ added in v0.37.0
func (self *SnakeController) Escape() error
func (*SnakeController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SnakeController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SnakeController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SnakeController) GetOnDoubleClick() func() error
func (*SnakeController) GetOnFocus ¶ added in v0.39.0
func (self *SnakeController) GetOnFocus() func(types.OnFocusOpts)
func (*SnakeController) GetOnFocusLost ¶ added in v0.39.0
func (self *SnakeController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SnakeController) GetOnQuit ¶ added in v0.62.0
func (self *SnakeController) GetOnQuit() func()
func (*SnakeController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SnakeController) GetOnRenderToMain() func()
func (*SnakeController) SetDirection ¶ added in v0.37.0
func (self *SnakeController) SetDirection(direction snake.Direction) func() error
type StashController ¶
type StashController struct {
*ListControllerTrait[*models.StashEntry]
// contains filtered or unexported fields
}
func NewStashController ¶
func NewStashController( c *ControllerCommon, ) *StashController
func (*StashController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *StashController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*StashController) GetOnDoubleClick ¶ added in v0.61.0
func (self *StashController) GetOnDoubleClick() func() error
func (*StashController) GetOnFocus ¶ added in v0.39.0
func (self *StashController) GetOnFocus() func(types.OnFocusOpts)
func (*StashController) GetOnFocusLost ¶ added in v0.39.0
func (self *StashController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*StashController) GetOnQuit ¶ added in v0.62.0
func (self *StashController) GetOnQuit() func()
func (*StashController) GetOnRenderToMain ¶ added in v0.39.0
func (self *StashController) GetOnRenderToMain() func()
type StatusController ¶ added in v0.39.0
type StatusController struct {
// contains filtered or unexported fields
}
func NewStatusController ¶ added in v0.39.0
func NewStatusController( c *ControllerCommon, ) *StatusController
func (*StatusController) Context ¶ added in v0.39.0
func (self *StatusController) Context() types.Context
func (*StatusController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *StatusController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*StatusController) GetOnDoubleClick ¶ added in v0.61.0
func (self *StatusController) GetOnDoubleClick() func() error
func (*StatusController) GetOnFocus ¶ added in v0.39.0
func (self *StatusController) GetOnFocus() func(types.OnFocusOpts)
func (*StatusController) GetOnFocusLost ¶ added in v0.39.0
func (self *StatusController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*StatusController) GetOnQuit ¶ added in v0.62.0
func (self *StatusController) GetOnQuit() func()
func (*StatusController) GetOnRenderToMain ¶ added in v0.39.0
func (self *StatusController) GetOnRenderToMain() func()
type SubCommitsController ¶ added in v0.39.0
type SubCommitsController struct {
*ListControllerTrait[*models.Commit]
// contains filtered or unexported fields
}
func NewSubCommitsController ¶ added in v0.39.0
func NewSubCommitsController( c *ControllerCommon, ) *SubCommitsController
func (*SubCommitsController) Context ¶ added in v0.39.0
func (self *SubCommitsController) Context() types.Context
func (*SubCommitsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SubCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SubCommitsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SubCommitsController) GetOnDoubleClick() func() error
func (*SubCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *SubCommitsController) GetOnFocus() func(types.OnFocusOpts)
func (*SubCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SubCommitsController) GetOnQuit ¶ added in v0.62.0
func (self *SubCommitsController) GetOnQuit() func()
func (*SubCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SubCommitsController) GetOnRenderToMain() func()
type SubmodulesController ¶
type SubmodulesController struct {
*ListControllerTrait[*models.SubmoduleConfig]
// contains filtered or unexported fields
}
func NewSubmodulesController ¶
func NewSubmodulesController( c *ControllerCommon, ) *SubmodulesController
func (*SubmodulesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SubmodulesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SubmodulesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SubmodulesController) GetOnDoubleClick() func() error
func (*SubmodulesController) GetOnFocus ¶ added in v0.39.0
func (self *SubmodulesController) GetOnFocus() func(types.OnFocusOpts)
func (*SubmodulesController) GetOnFocusLost ¶ added in v0.39.0
func (self *SubmodulesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SubmodulesController) GetOnQuit ¶ added in v0.62.0
func (self *SubmodulesController) GetOnQuit() func()
func (*SubmodulesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SubmodulesController) GetOnRenderToMain() func()
type SuggestionsController ¶ added in v0.39.0
type SuggestionsController struct {
*ListControllerTrait[*types.Suggestion]
// contains filtered or unexported fields
}
func NewSuggestionsController ¶ added in v0.39.0
func NewSuggestionsController( c *ControllerCommon, ) *SuggestionsController
func (*SuggestionsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SuggestionsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SuggestionsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SuggestionsController) GetOnDoubleClick() func() error
func (*SuggestionsController) GetOnFocus ¶ added in v0.39.0
func (self *SuggestionsController) GetOnFocus() func(types.OnFocusOpts)
func (*SuggestionsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SuggestionsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SuggestionsController) GetOnQuit ¶ added in v0.62.0
func (self *SuggestionsController) GetOnQuit() func()
func (*SuggestionsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SuggestionsController) GetOnRenderToMain() func()
type SwitchToDiffFilesController ¶
type SwitchToDiffFilesController struct {
// contains filtered or unexported fields
}
Not using our ListControllerTrait because we have our own way of working with range selections that's different from ListControllerTrait's
func NewSwitchToDiffFilesController ¶
func NewSwitchToDiffFilesController( c *ControllerCommon, context CanSwitchToDiffFiles, ) *SwitchToDiffFilesController
func (*SwitchToDiffFilesController) Context ¶
func (self *SwitchToDiffFilesController) Context() types.Context
func (*SwitchToDiffFilesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SwitchToDiffFilesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SwitchToDiffFilesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SwitchToDiffFilesController) GetOnDoubleClick() func() error
func (*SwitchToDiffFilesController) GetOnFocus ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnFocus() func(types.OnFocusOpts)
func (*SwitchToDiffFilesController) GetOnFocusLost ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SwitchToDiffFilesController) GetOnQuit ¶ added in v0.62.0
func (self *SwitchToDiffFilesController) GetOnQuit() func()
func (*SwitchToDiffFilesController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SwitchToDiffFilesController) GetOnRenderToMain() func()
type SwitchToFocusedMainViewController ¶ added in v0.50.0
type SwitchToFocusedMainViewController struct {
// contains filtered or unexported fields
}
func NewSwitchToFocusedMainViewController ¶ added in v0.50.0
func NewSwitchToFocusedMainViewController( c *ControllerCommon, context types.Context, ) *SwitchToFocusedMainViewController
func (*SwitchToFocusedMainViewController) Context ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) Context() types.Context
func (*SwitchToFocusedMainViewController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SwitchToFocusedMainViewController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*SwitchToFocusedMainViewController) GetKeybindings ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*SwitchToFocusedMainViewController) GetMouseKeybindings ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*SwitchToFocusedMainViewController) GetOnClick ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*SwitchToFocusedMainViewController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SwitchToFocusedMainViewController) GetOnDoubleClick() func() error
func (*SwitchToFocusedMainViewController) GetOnFocus ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetOnFocus() func(types.OnFocusOpts)
func (*SwitchToFocusedMainViewController) GetOnFocusLost ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SwitchToFocusedMainViewController) GetOnQuit ¶ added in v0.62.0
func (self *SwitchToFocusedMainViewController) GetOnQuit() func()
func (*SwitchToFocusedMainViewController) GetOnRenderToMain ¶ added in v0.50.0
func (self *SwitchToFocusedMainViewController) GetOnRenderToMain() func()
type SwitchToSubCommitsController ¶
type SwitchToSubCommitsController struct {
*ListControllerTrait[models.Ref]
// contains filtered or unexported fields
}
Not using our ListControllerTrait because our 'selected' item is not a list item but an attribute on it i.e. the ref of an item.
func NewSwitchToSubCommitsController ¶
func NewSwitchToSubCommitsController( c *ControllerCommon, context CanSwitchToSubCommits, ) *SwitchToSubCommitsController
func (*SwitchToSubCommitsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SwitchToSubCommitsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SwitchToSubCommitsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SwitchToSubCommitsController) GetOnDoubleClick() func() error
func (*SwitchToSubCommitsController) GetOnFocus ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnFocus() func(types.OnFocusOpts)
func (*SwitchToSubCommitsController) GetOnFocusLost ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SwitchToSubCommitsController) GetOnQuit ¶ added in v0.62.0
func (self *SwitchToSubCommitsController) GetOnQuit() func()
func (*SwitchToSubCommitsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SwitchToSubCommitsController) GetOnRenderToMain() func()
type SyncController ¶
type SyncController struct {
// contains filtered or unexported fields
}
func NewSyncController ¶
func NewSyncController( common *ControllerCommon, ) *SyncController
func (*SyncController) Context ¶
func (self *SyncController) Context() types.Context
func (*SyncController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *SyncController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*SyncController) GetOnDoubleClick ¶ added in v0.61.0
func (self *SyncController) GetOnDoubleClick() func() error
func (*SyncController) GetOnFocus ¶ added in v0.39.0
func (self *SyncController) GetOnFocus() func(types.OnFocusOpts)
func (*SyncController) GetOnFocusLost ¶ added in v0.39.0
func (self *SyncController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*SyncController) GetOnRenderToMain ¶ added in v0.39.0
func (self *SyncController) GetOnRenderToMain() func()
func (*SyncController) HandlePull ¶
func (self *SyncController) HandlePull() error
func (*SyncController) HandlePush ¶
func (self *SyncController) HandlePush() error
func (*SyncController) PullAux ¶
func (self *SyncController) PullAux(currentBranch *models.Branch, opts PullFilesOptions) error
type TagsController ¶
type TagsController struct {
*ListControllerTrait[*models.Tag]
// contains filtered or unexported fields
}
func NewTagsController ¶
func NewTagsController( c *ControllerCommon, ) *TagsController
func (*TagsController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *TagsController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*TagsController) GetOnDoubleClick ¶ added in v0.61.0
func (self *TagsController) GetOnDoubleClick() func() error
func (*TagsController) GetOnFocus ¶ added in v0.39.0
func (self *TagsController) GetOnFocus() func(types.OnFocusOpts)
func (*TagsController) GetOnFocusLost ¶ added in v0.39.0
func (self *TagsController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*TagsController) GetOnRenderToMain ¶ added in v0.39.0
func (self *TagsController) GetOnRenderToMain() func()
type ToggleWhitespaceAction ¶ added in v0.39.0
type ToggleWhitespaceAction struct {
// contains filtered or unexported fields
}
func (*ToggleWhitespaceAction) Call ¶ added in v0.39.0
func (self *ToggleWhitespaceAction) Call() error
type UndoController ¶
type UndoController struct {
// contains filtered or unexported fields
}
func NewUndoController ¶
func NewUndoController( c *ControllerCommon, ) *UndoController
func (*UndoController) Context ¶
func (self *UndoController) Context() types.Context
func (*UndoController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *UndoController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*UndoController) GetOnDoubleClick ¶ added in v0.61.0
func (self *UndoController) GetOnDoubleClick() func() error
func (*UndoController) GetOnFocus ¶ added in v0.39.0
func (self *UndoController) GetOnFocus() func(types.OnFocusOpts)
func (*UndoController) GetOnFocusLost ¶ added in v0.39.0
func (self *UndoController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*UndoController) GetOnRenderToMain ¶ added in v0.39.0
func (self *UndoController) GetOnRenderToMain() func()
type VerticalScrollController ¶ added in v0.36.0
type VerticalScrollController struct {
// contains filtered or unexported fields
}
func (*VerticalScrollController) Context ¶ added in v0.36.0
func (self *VerticalScrollController) Context() types.Context
func (*VerticalScrollController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *VerticalScrollController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
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(opts gocui.ViewMouseBindingOpts) error
func (*VerticalScrollController) GetOnDoubleClick ¶ added in v0.61.0
func (self *VerticalScrollController) GetOnDoubleClick() func() error
func (*VerticalScrollController) GetOnFocus ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnFocus() func(types.OnFocusOpts)
func (*VerticalScrollController) GetOnFocusLost ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*VerticalScrollController) GetOnQuit ¶ added in v0.62.0
func (self *VerticalScrollController) GetOnQuit() func()
func (*VerticalScrollController) GetOnRenderToMain ¶ added in v0.39.0
func (self *VerticalScrollController) GetOnRenderToMain() func()
func (*VerticalScrollController) HandleScrollDown ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollDown() error
func (*VerticalScrollController) HandleScrollUp ¶ added in v0.36.0
func (self *VerticalScrollController) HandleScrollUp() error
type VerticalScrollControllerFactory ¶ added in v0.36.0
type VerticalScrollControllerFactory struct {
// contains filtered or unexported fields
}
given we have no fields here, arguably we shouldn't even need this factory struct, but we're maintaining consistency with the other files.
func NewVerticalScrollControllerFactory ¶ added in v0.36.0
func NewVerticalScrollControllerFactory(c *ControllerCommon) *VerticalScrollControllerFactory
func (*VerticalScrollControllerFactory) Create ¶ added in v0.36.0
func (self *VerticalScrollControllerFactory) Create(context types.Context) types.IController
type WorkingTreeDiffActions ¶ added in v0.66.0
type WorkingTreeDiffActions struct {
// contains filtered or unexported fields
}
WorkingTreeDiffActions implements what the files panel offers on the diff it renders into the focused main view: the diff itself, for the commands that need to read lines out of it rather than off the screen.
func NewWorkingTreeDiffActions ¶ added in v0.66.0
func NewWorkingTreeDiffActions(c *ControllerCommon) *WorkingTreeDiffActions
func (*WorkingTreeDiffActions) DiscardSelection ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) DiscardSelection(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
DiscardSelection takes the selected diff lines out of the working tree — or, on the staged side, out of the index, which is where "discard this" means "I don't want it staged".
func (*WorkingTreeDiffActions) DiscardSelectionDisabledReason ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) DiscardSelectionDisabledReason(types.DiffPaneContext) *types.DisabledReason
DiscardSelectionDisabledReason is nil: a change of the working tree can always be thrown away, and one in the index always taken back out of it.
func (*WorkingTreeDiffActions) EditHunk ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) EditHunk( pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int, ) error
EditHunk opens the git hunk holding the selection in an editor, as a patch against the index, and applies whatever comes back. It is how you stage something the diff can't express — half of a changed line, or a change written differently from either side — since what the editor hands back is applied rather than matched against the file's own diff.
The hunk is the git one, context and all, rather than lazygit's block of adjacent changes: an editable patch is one that still applies, and the context lines are what let git place it.
func (*WorkingTreeDiffActions) PatchInclusion ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) PatchInclusion() func(types.DiffLineInfo) bool
PatchInclusion is nil: a custom patch is built from a commit's diff, never from the working tree's, so no line of this diff is ever in one.
func (*WorkingTreeDiffActions) PlainDiff ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) PlainDiff(pane types.DiffPaneContext, paths []string) string
PlainDiff hands out the working tree's diff for the given files, taken from the side of the index that the asking pane shows.
func (*WorkingTreeDiffActions) PrimaryAction ¶ added in v0.66.0
func (self *WorkingTreeDiffActions) PrimaryAction(pane types.DiffPaneContext, firstBufferLine int, lastBufferLine int) error
PrimaryAction stages the selected diff lines, or takes them back out of the index when what is selected is the staged side of the diff.
type WorktreesController ¶ added in v0.40.0
type WorktreesController struct {
*ListControllerTrait[*models.Worktree]
// contains filtered or unexported fields
}
func NewWorktreesController ¶ added in v0.40.0
func NewWorktreesController( c *ControllerCommon, ) *WorktreesController
func (*WorktreesController) GetFocusedMainViewDiffSource ¶ added in v0.66.0
func (self *WorktreesController) GetFocusedMainViewDiffSource() types.FocusedMainViewDiffSource
func (*WorktreesController) GetKeybindings ¶ added in v0.40.0
func (self *WorktreesController) GetKeybindings(opts types.KeybindingsOpts) []*types.Binding
func (*WorktreesController) GetMouseKeybindings ¶ added in v0.40.0
func (self *WorktreesController) GetMouseKeybindings(opts types.KeybindingsOpts) []*gocui.ViewMouseBinding
func (*WorktreesController) GetOnClick ¶ added in v0.40.0
func (self *WorktreesController) GetOnClick() func(opts gocui.ViewMouseBindingOpts) error
func (*WorktreesController) GetOnDoubleClick ¶ added in v0.61.0
func (self *WorktreesController) GetOnDoubleClick() func() error
func (*WorktreesController) GetOnFocus ¶ added in v0.40.0
func (self *WorktreesController) GetOnFocus() func(types.OnFocusOpts)
func (*WorktreesController) GetOnFocusLost ¶ added in v0.40.0
func (self *WorktreesController) GetOnFocusLost() func(types.OnFocusLostOpts)
func (*WorktreesController) GetOnQuit ¶ added in v0.62.0
func (self *WorktreesController) GetOnQuit() func()
func (*WorktreesController) GetOnRenderToMain ¶ added in v0.40.0
func (self *WorktreesController) GetOnRenderToMain() func()
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_diff_actions.go
- commit_message_controller.go
- commits_files_controller.go
- common.go
- confirmation_controller.go
- context_lines_controller.go
- custom_patch_options_menu_action.go
- diff_copy.go
- diff_paths.go
- diffing_menu_action.go
- edit_config_action.go
- files_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
- list_controller_trait.go
- local_commits_controller.go
- main_view_controller.go
- menu_controller.go
- menu_key.go
- merge_conflicts_controller.go
- options_menu_action.go
- prompt_controller.go
- quit_actions.go
- reflog_commits_controller.go
- remote_branches_controller.go
- remotes_controller.go
- rename_similarity_threshold_controller.go
- screen_mode_actions.go
- scroll_off_margin.go
- search_controller.go
- search_prompt_controller.go
- shell_command_action.go
- side_window_controller.go
- snake_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_focused_main_view_controller.go
- switch_to_sub_commits_controller.go
- sync_controller.go
- tags_controller.go
- toggle_whitespace_action.go
- undo_controller.go
- vertical_scroll_controller.go
- working_tree_diff_actions.go
- workspace_reset_controller.go
- worktrees_controller.go