Documentation
¶
Overview ¶
Package pkg provides the core functionality of the program.
Package pkg provides the core functionality of the program.
Package pkg provides the core functionality of the program.
Index ¶
- Variables
- func BuildHelpPane() *tview.Flex
- func BuildInlinePane(text, title string) *tview.TextView
- func BuildMainView(pages *tview.Pages, help *tview.Flex) *tview.Flex
- func BuildPages(split *tview.Flex, inline *tview.TextView) *tview.Pages
- func BuildSidePane(text, title string) *tview.TextView
- func BuildSplitPane(leftPane, rightPane *tview.TextView) *tview.Flex
- func GenStringForInline(l []diffy.Line) string
- func GenStringForSplit(l []diffy.Line) (string, string)
- func IsChangeModeKey(e *tcell.EventKey) bool
- func IsFocusLeftKey(e *tcell.EventKey) bool
- func IsFocusRightKey(e *tcell.EventKey) bool
- func IsHelpKey(e *tcell.EventKey) bool
- func IsQuitKey(e *tcell.EventKey) bool
- func IsScrollDownKey(e *tcell.EventKey) bool
- func IsScrollUpKey(e *tcell.EventKey) bool
- func ScrollDown(app *tview.Application) *tcell.EventKey
- func ScrollUp(app *tview.Application) *tcell.EventKey
- type Picker
Constants ¶
This section is empty.
Variables ¶
var Theme = irodori.Zen
Theme is the default color theme of the program.
Functions ¶
func BuildInlinePane ¶
BuildInlinePane returns a new inline pane.
func BuildMainView ¶
BuildMainView returns a new main view.
func BuildPages ¶
BuildPages returns a new pages.
func BuildSidePane ¶
BuildSidePane returns a new side pane.
func BuildSplitPane ¶
BuildSplitPane returns a new split pane.
func GenStringForInline ¶
GenStringForInline returns a string for inline view.
func GenStringForSplit ¶
GenStringForSplit returns a string for split view.
func IsChangeModeKey ¶
IsChangeModeKey returns true if the key is a change mode key.
func IsFocusLeftKey ¶
IsFocusLeftKey returns true if the key is a focus left key.
func IsFocusRightKey ¶
IsFocusRightKey returns true if the key is a focus right key.
func IsScrollDownKey ¶
IsScrollDownKey returns true if the key is a scroll down key.
func IsScrollUpKey ¶
IsScrollUpKey returns true if the key is a scroll up key.
func ScrollDown ¶
func ScrollDown(app *tview.Application) *tcell.EventKey
ScrollDown scrolls down the focused pane.