MCPcopy
hub / github.com/wagoodman/dive / FileTree

Struct FileTree

runtime/ui/view/filetree.go:24–37  ·  view source on GitHub ↗

FileTree holds the UI objects and data models for populating the right pane. Specifically the pane that shows selected layer or aggregate file ASCII tree.

Source from the content-addressed store, hash-verified

22// FileTree holds the UI objects and data models for populating the right pane. Specifically the pane that
23// shows selected layer or aggregate file ASCII tree.
24type FileTree struct {
25 name string
26 gui *gocui.Gui
27 view *gocui.View
28 header *gocui.View
29 vm *viewmodel.FileTreeViewModel
30 title string
31
32 filterRegex *regexp.Regexp
33 listeners []ViewOptionChangeListener
34 extractListeners []ViewExtractListener
35 helpKeys []*key.Binding
36 requestedWidthRatio float64
37}
38
39// newFileTreeView creates a new view object attached the global [gocui] screen object.
40func newFileTreeView(gui *gocui.Gui, tree *filetree.FileTree, refTrees []*filetree.FileTree, cache filetree.Comparer) (controller *FileTree, err error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected