MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / initView

Function initView

init.go:78–92  ·  view source on GitHub ↗

initialize tview, buffer

()

Source from the content-addressed store, hash-verified

76
77// initialize tview, buffer
78func initView() {
79 app = tview.NewApplication()
80 app.EnableMouse(true) // Enable mouse support
81 b = createNewBuffer()
82 wrappedColumns = make(map[int]int) // Initialize wrapped columns map
83 searchResults = []SearchResult{}
84 currentSearchIndex = -1
85 searchQuery = ""
86 searchUseRegex = false
87 originalBuffer = nil // Initialize filter variables
88 isFiltered = false
89 activeFilters = make(map[int]FilterOptions) // Initialize active filters map
90 currentCursorColumn = 0 // Initialize cursor column
91 lastKeyWasG = false // Initialize vim navigation state
92}
93
94// stop UI
95func stopView() {

Callers 1

mainFunction · 0.85

Calls 1

createNewBufferFunction · 0.85

Tested by

no test coverage detected