Debian Codegraph @

demos/presentation/treeview.go

raw symbols SCIP
1 package mainscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/
2
3 import (
4 "stringsscip-go gomod github.com/golang/go/src go1.18 strings/"
5
6 "github.com/gdamore/tcell/v2scip-go gomod github.com/gdamore/tcell/v2 v2.7.4 `github.com/gdamore/tcell/v2`/"
7 "github.com/darkhz/tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/"
8 )
9
10 const treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode. = `[green]package[white] main
11
12 [green]import[white] [red]"github.com/darkhz/tview"[white]
13
14 [green]func[white] [yellow]main[white]() {
15 $$$
16
17 root := tview.[yellow]NewTreeNode[white]([red]"Root"[white]).
18 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"First child"[white]).
19 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Grandchild A"[white])).
20 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Grandchild B"[white]))).
21 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Second child"[white]).
22 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Grandchild C"[white])).
23 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Grandchild D"[white]))).
24 [yellow]AddChild[white](tview.[yellow]NewTreeNode[white]([red]"Third child"[white]))
25
26 tree.[yellow]SetRoot[white](root).
27 [yellow]SetCurrentNode[white](root)
28
29 tview.[yellow]NewApplication[white]().
30 [yellow]SetRoot[white](tree, true).
31 [yellow]Run[white]()
32 }`
33
34 const treeBasicCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeBasicCode. = `tree := tview.[yellow]NewTreeView[white]()`
35
36 const treeTopLevelCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeTopLevelCode. = `tree := tview.[yellow]NewTreeView[white]().
37 [yellow]SetTopLevel[white]([red]1[white])`
38
39 const treeAlignCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAlignCode. = `tree := tview.[yellow]NewTreeView[white]().
40 [yellow]SetAlign[white](true)`
41
42 const treePrefixCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treePrefixCode. = `tree := tview.[yellow]NewTreeView[white]().
43 [yellow]SetGraphics[white](false).
44 [yellow]SetTopLevel[white]([red]1[white]).
45 [yellow]SetPrefixes[white]([][green]string[white]{
46 [red]"[red[]* "[white],
47 [red]"[darkcyan[]- "[white],
48 [red]"[darkmagenta[]- "[white],
49 })`
50
51 type nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node# struct {
52 textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text. string
53 expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand. bool
54 selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected. func()
55 childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children. []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#
56 }
57
58 var (
59 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree. = tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.NewTreeViewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/NewTreeView().()
60 treeNextSlidescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeNextSlide. func()
61 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode. = tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.NewTextViewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/NewTextView().().SetWrapscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetWrap().(false).SetDynamicColorsscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetDynamicColors().(true)
62 )
63
64 var rootNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/rootNode. = &nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
65 textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Root",
66 childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children.: []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
67 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Expand all", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() { treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..GetRootscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#GetRoot().().ExpandAllscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#ExpandAll().() }},
68 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Collapse all", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() {
69 for _, child := range treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..GetRootscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#GetRoot().().GetChildrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#GetChildren().() {
70 child.CollapseAllscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#CollapseAll().()
71 }
72 }},
73 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Hide root node", expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand.: true, childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children.: []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
74 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Tree list starts one level down"},
75 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Works better for lists where no top node is needed"},
76 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Switch to this layout", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() {
77 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetAlignscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetAlign().(false).SetTopLevelscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetTopLevel().(1).SetGraphicsscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetGraphics().(true).SetPrefixesscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetPrefixes().(nil)
78 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode..SetTextscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetText().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Replacescip-go gomod github.com/golang/go/src go1.18 strings/Replace().(treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode., "$$$", treeTopLevelCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeTopLevelCode., -1))
79 }},
80 }},
81 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Align node text", expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand.: true, childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children.: []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
82 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "For trees that are similar to lists"},
83 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Hierarchy shown only in line drawings"},
84 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Switch to this layout", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() {
85 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetAlignscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetAlign().(true).SetTopLevelscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetTopLevel().(0).SetGraphicsscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetGraphics().(true).SetPrefixesscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetPrefixes().(nil)
86 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode..SetTextscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetText().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Replacescip-go gomod github.com/golang/go/src go1.18 strings/Replace().(treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode., "$$$", treeAlignCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAlignCode., -1))
87 }},
88 }},
89 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Prefixes", expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand.: true, childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children.: []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
90 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Best for hierarchical bullet point lists"},
91 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "You can define your own prefixes per level"},
92 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Switch to this layout", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() {
93 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetAlignscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetAlign().(false).SetTopLevelscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetTopLevel().(1).SetGraphicsscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetGraphics().(false).SetPrefixesscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetPrefixes().([]string{"[red]* ", "[darkcyan]- ", "[darkmagenta]- "})
94 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode..SetTextscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetText().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Replacescip-go gomod github.com/golang/go/src go1.18 strings/Replace().(treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode., "$$$", treePrefixCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treePrefixCode., -1))
95 }},
96 }},
97 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Basic tree with graphics", expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand.: true, childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children.: []*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#{
98 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Lines illustrate hierarchy"},
99 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Basic indentation"},
100 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Switch to this layout", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() {
101 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetAlignscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetAlign().(false).SetTopLevelscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetTopLevel().(0).SetGraphicsscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetGraphics().(true).SetPrefixesscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetPrefixes().(nil)
102 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode..SetTextscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetText().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Replacescip-go gomod github.com/golang/go/src go1.18 strings/Replace().(treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode., "$$$", treeBasicCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeBasicCode., -1))
103 }},
104 }},
105 {textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.: "Next slide", selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.: func() { treeNextSlidescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeNextSlide.() }},
106 }}
107
108 // TreeView demonstrates the tree view.
109 func TreeViewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/TreeView().(nextSlide func()) (title string, content tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.Primitivescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Primitive#) {
110 treeNextSlidescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeNextSlide. = nextSlide
111 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetBorderscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Box#SetBorder().(true).
112 SetTitlescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Box#SetTitle().("TreeView")
113
114 // Add nodes.
115 var add func(target *nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#) *tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.TreeNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#
116 add = func(target *nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#) *tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.TreeNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode# {
117 node := tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.NewTreeNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/NewTreeNode().(target.textscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#text.).
118 SetSelectablescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetSelectable().(target.expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand. || target.selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected. != nil).
119 SetExpandedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetExpanded().(target == rootNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/rootNode.).
120 SetReferencescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetReference().(target)
121 if target.expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand. {
122 node.SetColorscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetColor().(tcellscip-go gomod github.com/gdamore/tcell/v2 v2.7.4 `github.com/gdamore/tcell/v2`/.ColorGreenscip-go gomod github.com/gdamore/tcell/v2 v2.7.4 `github.com/gdamore/tcell/v2`/ColorGreen.)
123 } else if target.selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected. != nil {
124 node.SetColorscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetColor().(tcellscip-go gomod github.com/gdamore/tcell/v2 v2.7.4 `github.com/gdamore/tcell/v2`/.ColorRedscip-go gomod github.com/gdamore/tcell/v2 v2.7.4 `github.com/gdamore/tcell/v2`/ColorRed.)
125 }
126 for _, child := range target.childrenscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#children. {
127 node.AddChildscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#AddChild().(add(child))
128 }
129 return node
130 }
131 root := add(rootNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/rootNode.)
132 treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree..SetRootscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetRoot().(root).
133 SetCurrentNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetCurrentNode().(root).
134 SetSelectedFuncscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeView#SetSelectedFunc().(func(n *tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.TreeNodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#) {
135 original := n.GetReferencescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#GetReference().().(*nodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#)
136 if original.expandscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#expand. {
137 n.SetExpandedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#SetExpanded().(!n.IsExpandedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TreeNode#IsExpanded().())
138 } else if original.selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected. != nil {
139 original.selectedscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/node#selected.()
140 }
141 })
142
143 treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode..SetTextscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/TextView#SetText().(stringsscip-go gomod github.com/golang/go/src go1.18 strings/.Replacescip-go gomod github.com/golang/go/src go1.18 strings/Replace().(treeAllCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeAllCode., "$$$", treeBasicCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeBasicCode., -1)).
144 SetBorderPaddingscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Box#SetBorderPadding().(1, 1, 2, 0)
145
146 return "Tree", tviewscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/.NewFlexscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/NewFlex().().
147 AddItemscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Flex#AddItem().(treescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/tree., 0, 1, true).
148 AddItemscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview`/Flex#AddItem().(treeCodescip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/treeCode., codeWidthscip-go gomod github.com/darkhz/tview . `github.com/darkhz/tview/demos/presentation`/codeWidth., 1, false)
149 }