Documentation ¶
Index ¶
- func ByteWidth(str string, tabSize int) int
- func Count(b []byte) int
- func GetCursorVisualX(x int, line string) int
- func Max(a, b int) int
- func Min(a, b int) int
- type Block
- type Dataview
- type Editor
- func (e *Editor) Init()
- func (e *Editor) NewFooter() *Footer
- func (e *Editor) NewFooterTree() *FooterTree
- func (e *Editor) NewGotoLine() *GotoLine
- func (e *Editor) NewGutter() *Gutter
- func (e *Editor) NewHeader() *Header
- func (e *Editor) NewLinenums() *Linenums
- func (e *Editor) NewOpenFile() *OpenFile
- func (e *Editor) OpenFile(path string) string
- func (e *Editor) Quit()
- func (e *Editor) Start()
- type File
- type Footer
- type FooterTree
- type GotoLine
- type Gutter
- type Header
- type Linenums
- type OpenFile
- type View
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCursorVisualX ¶
Types ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func (*Editor) NewFooterTree ¶
func (e *Editor) NewFooterTree() *FooterTree
NewView returns a new view view primitive.
func (*Editor) NewGotoLine ¶
NewView returns a new view view primitive.
func (*Editor) NewLinenums ¶
NewView returns a new view view primitive.
func (*Editor) NewOpenFile ¶
NewView returns a new view view primitive.
type FooterTree ¶
type FooterTree struct {}
func (*FooterTree) Draw ¶
func (m *FooterTree) Draw(screen tcell.Screen)
Draw draws this primitive onto the screen.
type View ¶
View implements the view editor view.
func (*View) InputHandler ¶
InputHandler returns the handler for this primitive.
func (*View) MakeVisible ¶
Click to show internal directories.
Click to hide internal directories.