Documentation
¶
Index ¶
- Constants
- func NewErrorWindow(pages *tview.Pages, name string, err error)
- func ReadCommitMessage(app *tview.Application, filename string) (string, error)
- type FlexElement
- type FloatingWindow
- func NewFloatingWindow(upperRow, lowerRow, leftColumn, rightColumn FlexElement, ...) *FloatingWindow
- func NewMiddleFloatingWindow(pages *tview.Pages, name string, focus bool, elements ...FlexElement) *FloatingWindow
- func NewStatusFloatingWindow(pages *tview.Pages, name string, focus bool, elements ...FlexElement) *FloatingWindow
- func NewTextNotificationWindow(pages *tview.Pages, name, text string) *FloatingWindow
- type Keybinding
- type Page
- type State
Constants ¶
View Source
const ( StatusPageName = "status" BranchesPageName = "branches" ReposPageName = "repos" )
Variables ¶
This section is empty.
Functions ¶
func ReadCommitMessage ¶
func ReadCommitMessage(app *tview.Application, filename string) (string, error)
Types ¶
type FlexElement ¶
type FloatingWindow ¶
type FloatingWindow struct {
// contains filtered or unexported fields
}
func NewFloatingWindow ¶
func NewFloatingWindow( upperRow, lowerRow, leftColumn, rightColumn FlexElement, columnFixedSize, columnRelativeSize int, pages *tview.Pages, name string, focus bool, elements ...FlexElement, ) *FloatingWindow
func NewMiddleFloatingWindow ¶
func NewMiddleFloatingWindow(pages *tview.Pages, name string, focus bool, elements ...FlexElement) *FloatingWindow
func NewStatusFloatingWindow ¶
func NewStatusFloatingWindow(pages *tview.Pages, name string, focus bool, elements ...FlexElement) *FloatingWindow
The status page has a header for each column, and so the upper padding needs to be a bit larger otherwise the window will render a bit oddly.
func NewTextNotificationWindow ¶
func NewTextNotificationWindow(pages *tview.Pages, name, text string) *FloatingWindow
func (*FloatingWindow) Hide ¶
func (f *FloatingWindow) Hide()
func (*FloatingWindow) Show ¶
func (f *FloatingWindow) Show()
type Keybinding ¶
type State ¶
type State struct { App *tview.Application Pages *tview.Pages Repository *git.Repository Branch string }
Click to show internal directories.
Click to hide internal directories.