ui

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedConfig = Config{
	Application: nil,
}

Functions

This section is empty.

Types

type Config

type Config struct {
	RootPath string
	*tview.Application
}

type Editor

type Editor struct{}

func NewEditor

func NewEditor() Editor

func (Editor) Launch

func (Editor) Launch(path string)

type ErrorField

type ErrorField struct {
	*tview.TextView
}

func NewErrorField

func NewErrorField() ErrorField

type FormLayout

type FormLayout struct {
	*tview.Grid
}

func NewFormLayout

func NewFormLayout(form tview.Primitive, errorField ErrorField) FormLayout

type Usage

type Usage struct {
	*tview.List
}

func NewUsage

func NewUsage(window *Window) Usage

type Window

type Window struct {
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(width, height int) *Window

func (Window) Blur

func (window Window) Blur()

func (Window) Draw

func (window Window) Draw(screen tcell.Screen)

Confirm for tview.Primitive

func (Window) Focus

func (window Window) Focus(delegate func(p tview.Primitive))

func (Window) GetFocusable

func (window Window) GetFocusable() tview.Focusable

func (Window) GetRect

func (window Window) GetRect() (x int, y int, width int, height int)

func (Window) InputHandler

func (window Window) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

func (Window) RemoveFeedback

func (view Window) RemoveFeedback()

func (Window) SetRect

func (window Window) SetRect(x, y, width, height int)

func (Window) ShowFeedback

func (view Window) ShowFeedback(text string)

func (Window) ShowFileInfo

func (view Window) ShowFileInfo(path string)

func (*Window) SwitchAddDirectoryForm

func (window *Window) SwitchAddDirectoryForm(selectedNode *tview.TreeNode)

func (*Window) SwitchAddFileForm

func (window *Window) SwitchAddFileForm(selectedNode *tview.TreeNode)

func (*Window) SwitchRenameForm

func (window *Window) SwitchRenameForm(node *tview.TreeNode)

func (*Window) SwitchUsage

func (window *Window) SwitchUsage()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL