Documentation ¶
Index ¶
- Constants
- func NewDetailsVM(view cui.View) *detailsVM
- func ShowAboutDlg(ui cui.UI)
- func ShowHelpDlg(ui cui.UI)
- type BranchDlg
- type CloneDlg
- type CommitView
- type Committer
- type DetailsView
- type DiffGetter
- type DiffView
- type MainWindow
- type Menus
- type RepoGraph
- type RepoView
- func (t *RepoView) Close()
- func (t *RepoView) CloseSearch()
- func (t *RepoView) NotifyChanged()
- func (t *RepoView) OpenRepoMenuItems() []cui.MenuItem
- func (t *RepoView) ScrollVertical(scroll int)
- func (t *RepoView) Search(text string)
- func (t *RepoView) SetCurrentView()
- func (t *RepoView) Show()
- func (t *RepoView) ShowCommitDetails()
- func (t *RepoView) ShowLineAtTop(line int)
- func (t *RepoView) ShowRepo(path string)
- func (t *RepoView) ShowSearchView()
- type RepoViewer
- type SearchView
- type Searcher
Constants ¶
View Source
const ( Repov1 = `` /* 957-byte string literal not displayed */ Repov = `` /* 960-byte string literal not displayed */ )
View Source
const (
LineLineCommit = line('┼')
)
https://en.wikipedia.org/wiki/List_of_Unicode_characters Foreground text colors
Variables ¶
This section is empty.
Functions ¶
func NewDetailsVM ¶
func ShowAboutDlg ¶
func ShowHelpDlg ¶
Types ¶
type CommitView ¶
type CommitView struct {
// contains filtered or unexported fields
}
func NewCommitView ¶
func (*CommitView) Close ¶
func (h *CommitView) Close()
func (*CommitView) Show ¶
func (h *CommitView) Show(text string)
type Committer ¶
type Committer interface { GetCommitDiff(info api.CommitDiffInfoReq) (api.CommitDiff, error) GetFileDiff(info api.FileDiffInfoReq) ([]api.CommitDiff, error) Commit(info api.CommitInfoReq) error }
type DetailsView ¶
func NewDetailsView ¶
func NewDetailsView(ui cui.UI, repoView *RepoView) *DetailsView
func (*DetailsView) SetCurrentLine ¶
func (*DetailsView) SetCurrentView ¶
func (t *DetailsView) SetCurrentView()
type DiffGetter ¶
type DiffGetter interface { GetCommitDiff(info api.CommitDiffInfoReq) (api.CommitDiff, error) GetFileDiff(info api.FileDiffInfoReq) ([]api.CommitDiff, error) }
type DiffView ¶
type DiffView interface { Show() SetTop() SetCurrentView() Close() NotifyChanged() }
func NewCommitDiffView ¶
func NewFileDiffView ¶
type MainWindow ¶
type MainWindow struct {
// contains filtered or unexported fields
}
func NewMainWindow ¶
func NewMainWindow(ui cui.UI, configService *config.Service) *MainWindow
func (*MainWindow) Close ¶
func (t *MainWindow) Close()
func (*MainWindow) OpenRepoMenuItems ¶
func (t *MainWindow) OpenRepoMenuItems() []cui.MenuItem
func (*MainWindow) ShowRepo ¶
func (t *MainWindow) ShowRepo(path string)
type RepoView ¶
type RepoView struct {
// contains filtered or unexported fields
}
func NewRepoView ¶
func (*RepoView) CloseSearch ¶
func (t *RepoView) CloseSearch()
func (*RepoView) NotifyChanged ¶
func (t *RepoView) NotifyChanged()
func (*RepoView) OpenRepoMenuItems ¶
func (*RepoView) ScrollVertical ¶
func (*RepoView) SetCurrentView ¶
func (t *RepoView) SetCurrentView()
func (*RepoView) ShowCommitDetails ¶
func (t *RepoView) ShowCommitDetails()
func (*RepoView) ShowLineAtTop ¶
func (*RepoView) ShowSearchView ¶
func (t *RepoView) ShowSearchView()
type RepoViewer ¶
type SearchView ¶
type SearchView struct {
// contains filtered or unexported fields
}
func NewSearchView ¶
func NewSearchView(ui cui.UI, searcher Searcher) *SearchView
func (*SearchView) Close ¶
func (t *SearchView) Close()
func (*SearchView) SetCurrentView ¶
func (t *SearchView) SetCurrentView()
func (*SearchView) Show ¶
func (t *SearchView) Show()
Click to show internal directories.
Click to hide internal directories.