Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileBrowser ¶
type FileBrowser struct { Dir string OnOpen func(string) OnClick func(string) *tview.TreeView Root *tview.TreeNode Node *tview.TreeNode }
func NewFileBrowser ¶
func NewFileBrowser(dir string, onopen, onclick func(path string)) *FileBrowser
func (*FileBrowser) OnDoubleClick ¶
func (FB *FileBrowser) OnDoubleClick(node *tview.TreeNode)
func (*FileBrowser) OnSelect ¶
func (FB *FileBrowser) OnSelect(node *tview.TreeNode)
type TextEditor ¶
func NewTextEditor ¶
func NewTextEditor(onchange func()) *TextEditor
func (*TextEditor) Focus ¶
func (ED *TextEditor) Focus(delegate func(p tview.Primitive))
func (*TextEditor) OpenFile ¶
func (ED *TextEditor) OpenFile(path string)
Click to show internal directories.
Click to hide internal directories.