Documentation ¶
Index ¶
- type BackMsg
- type CopyURLMsg
- type FileContentMsg
- type FileItem
- type FileItemDelegate
- type FileItems
- type FileItemsMsg
- type Files
- func (f *Files) FullHelp() [][]key.Binding
- func (f *Files) Init() tea.Cmd
- func (f *Files) SetSize(width, height int)
- func (f *Files) ShortHelp() []key.Binding
- func (f *Files) StatusBarInfo() string
- func (f *Files) StatusBarValue() string
- func (f *Files) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (f *Files) View() string
- type Log
- func (l *Log) FullHelp() [][]key.Binding
- func (l *Log) Init() tea.Cmd
- func (l *Log) SetSize(width, height int)
- func (l *Log) ShortHelp() []key.Binding
- func (l *Log) StatusBarInfo() string
- func (l *Log) StatusBarValue() string
- func (l *Log) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (l *Log) View() string
- type LogCommitMsg
- type LogCountMsg
- type LogDiffMsg
- type LogItem
- type LogItemDelegate
- type LogItemsMsg
- type Readme
- func (r *Readme) FullHelp() [][]key.Binding
- func (r *Readme) Init() tea.Cmd
- func (r *Readme) SetSize(width, height int)
- func (r *Readme) ShortHelp() []key.Binding
- func (r *Readme) StatusBarInfo() string
- func (r *Readme) StatusBarValue() string
- func (r *Readme) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (r *Readme) View() string
- type ReadmeMsg
- type RefItem
- type RefItemDelegate
- type RefItems
- type RefItemsMsg
- type RefMsg
- type Refs
- func (r *Refs) FullHelp() [][]key.Binding
- func (r *Refs) Init() tea.Cmd
- func (r *Refs) SetSize(width, height int)
- func (r *Refs) ShortHelp() []key.Binding
- func (r *Refs) StatusBarInfo() string
- func (r *Refs) StatusBarValue() string
- func (r *Refs) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (r *Refs) View() string
- type Repo
- type RepoMsg
- type ResetURLMsg
- type UpdateStatusBarMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackMsg ¶ added in v0.4.2
type BackMsg struct{}
BackMsg is a message to go back to the previous view.
type CopyURLMsg ¶ added in v0.4.2
type CopyURLMsg struct{}
CopyURLMsg is a message to copy the URL of the current repository.
type FileContentMsg ¶
type FileContentMsg struct {
// contains filtered or unexported fields
}
FileContentMsg is a message that contains the content of a file.
type FileItem ¶
type FileItem struct {
// contains filtered or unexported fields
}
FileItem is a list item for a file.
func (FileItem) Description ¶
Description returns the description of the file item.
func (FileItem) FilterValue ¶
FilterValue implements list.Item.
type FileItemDelegate ¶
type FileItemDelegate struct {
// contains filtered or unexported fields
}
FileItemDelegate is the delegate for the file item list.
func (FileItemDelegate) Height ¶
func (d FileItemDelegate) Height() int
Height returns the height of the file item list. Implements list.ItemDelegate.
func (FileItemDelegate) Spacing ¶
func (d FileItemDelegate) Spacing() int
Spacing returns the spacing of the file item list. Implements list.ItemDelegate.
type FileItemsMsg ¶
type FileItemsMsg []selector.IdentifiableItem
FileItemsMsg is a message that contains a list of files.
type Files ¶
type Files struct {
// contains filtered or unexported fields
}
Files is the model for the files view.
func (*Files) StatusBarInfo ¶
StatusBarInfo returns the status bar info.
func (*Files) StatusBarValue ¶
StatusBarValue returns the status bar value.
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
Log is a model that displays a list of commits and their diffs.
func (*Log) StatusBarInfo ¶
StatusBarInfo returns the status bar info.
func (*Log) StatusBarValue ¶
StatusBarValue returns the status bar value.
type LogCommitMsg ¶
LogCommitMsg is a message that contains a git commit.
type LogCountMsg ¶
type LogCountMsg int64
LogCountMsg is a message that contains the number of commits in a repo.
type LogItem ¶
LogItem is a item in the log list that displays a git commit.
func (LogItem) Description ¶
Description returns the item description. Implements list.DefaultItem.
func (LogItem) FilterValue ¶
FilterValue implements list.Item.
type LogItemDelegate ¶
type LogItemDelegate struct {
// contains filtered or unexported fields
}
LogItemDelegate is the delegate for LogItem.
func (LogItemDelegate) Height ¶
func (d LogItemDelegate) Height() int
Height returns the item height. Implements list.ItemDelegate.
func (LogItemDelegate) Spacing ¶
func (d LogItemDelegate) Spacing() int
Spacing returns the item spacing. Implements list.ItemDelegate.
type LogItemsMsg ¶
type LogItemsMsg []selector.IdentifiableItem
LogItemsMsg is a message that contains a slice of LogItem.
type Readme ¶
type Readme struct {
// contains filtered or unexported fields
}
Readme is the readme component page.
func (*Readme) StatusBarInfo ¶
StatusBarInfo implements statusbar.StatusBar.
func (*Readme) StatusBarValue ¶
StatusBarValue implements statusbar.StatusBar.
type RefItem ¶
RefItem is a git reference item.
func (RefItem) Description ¶
Description implements list.DefaultItem.
func (RefItem) FilterValue ¶
FilterValue implements list.Item.
type RefItemDelegate ¶
type RefItemDelegate struct {
// contains filtered or unexported fields
}
RefItemDelegate is the delegate for the ref item.
func (RefItemDelegate) Height ¶
func (d RefItemDelegate) Height() int
Height implements list.ItemDelegate.
func (RefItemDelegate) Spacing ¶
func (d RefItemDelegate) Spacing() int
Spacing implements list.ItemDelegate.
type RefItemsMsg ¶
type RefItemsMsg struct {
// contains filtered or unexported fields
}
RefItemsMsg is a message that contains a list of RefItem.
type Refs ¶
type Refs struct {
// contains filtered or unexported fields
}
Refs is a component that displays a list of references.
func (*Refs) StatusBarInfo ¶
StatusBarInfo implements statusbar.StatusBar.
func (*Refs) StatusBarValue ¶
StatusBarValue implements statusbar.StatusBar.
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo is a view for a git repository.
type ResetURLMsg ¶ added in v0.4.2
type ResetURLMsg struct{}
ResetURLMsg is a message to reset the URL string.
type UpdateStatusBarMsg ¶
type UpdateStatusBarMsg struct{}
UpdateStatusBarMsg updates the status bar.