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

Struct Filter

runtime/ui/view/filter.go:18–28  ·  view source on GitHub ↗

Filter holds the UI objects and data models for populating the bottom row. Specifically the pane that allows the user to filter the file tree by path.

Source from the content-addressed store, hash-verified

16// Filter holds the UI objects and data models for populating the bottom row. Specifically the pane that
17// allows the user to filter the file tree by path.
18type Filter struct {
19 gui *gocui.Gui
20 view *gocui.View
21 header *gocui.View
22 labelStr string
23 maxLength int
24 hidden bool
25 requestedHeight int
26
27 filterEditListeners []FilterEditListener
28}
29
30// newFilterView creates a new view object attached the global [gocui] screen object.
31func newFilterView(gui *gocui.Gui) (controller *Filter) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected