Documentation ¶
Index ¶
- type FileBrowser
- type MapBrowser
- func (C *MapBrowser) AddAt(target *tview.TreeNode, path string)
- func (C *MapBrowser) Decode(map[string]any) (widget.Widget, error)
- func (C *MapBrowser) Encode() (map[string]any, error)
- func (C *MapBrowser) OnLeafClick(node *tview.TreeNode)
- func (C *MapBrowser) OnSelect(node *tview.TreeNode)
- func (C *MapBrowser) TypeName() string
- type Shell
- type TextEditor
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 MapBrowser ¶
type MapBrowser struct { Name string Data map[string]any OnOpen func(string) OnClick func(string) LeafClick func(string) *tview.TreeView Root *tview.TreeNode Node *tview.TreeNode }
func NewMapBrowser ¶
func NewMapBrowser(name string, data map[string]any, onopen, onclick func(path string)) *MapBrowser
func (*MapBrowser) OnLeafClick ¶
func (C *MapBrowser) OnLeafClick(node *tview.TreeNode)
func (*MapBrowser) OnSelect ¶
func (C *MapBrowser) OnSelect(node *tview.TreeNode)
func (*MapBrowser) TypeName ¶
func (C *MapBrowser) TypeName() string
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.