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 ¶
func IsChangeModeKey(e *tcell.EventKey) bool
IsChangeModeKey returns true if the key is a change mode key.
func IsFocusLeftKey ¶
func IsFocusLeftKey(e *tcell.EventKey) bool
IsFocusLeftKey returns true if the key is a focus left key.
func IsFocusRightKey ¶
func IsFocusRightKey(e *tcell.EventKey) bool
IsFocusRightKey returns true if the key is a focus right key.
func IsHelpKey ¶
func IsHelpKey(e *tcell.EventKey) bool
IsHelpKey returns true if the key is a help key.
func IsQuitKey ¶
func IsQuitKey(e *tcell.EventKey) bool
IsQuitKey returns true if the key is a quit key.
func IsScrollDownKey ¶
func IsScrollDownKey(e *tcell.EventKey) bool
IsScrollDownKey returns true if the key is a scroll down key.
func IsScrollUpKey ¶
func IsScrollUpKey(e *tcell.EventKey) bool
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.
func ScrollUp ¶
func ScrollUp(app *tview.Application) *tcell.EventKey
ScrollUp scrolls up the focused pane.