manager represents an item completion component that manages completion state and UI
| 132 | |
| 133 | // manager represents an item completion component that manages completion state and UI |
| 134 | type manager struct { |
| 135 | keyMap completionKeyMap |
| 136 | width int |
| 137 | height int |
| 138 | editorBottom int // height from screen bottom where editor ends (for popup positioning) |
| 139 | items []Item |
| 140 | filteredItems []Item |
| 141 | query string |
| 142 | selected int |
| 143 | scrollOffset int |
| 144 | visible bool |
| 145 | matchMode MatchMode |
| 146 | loading bool // true when async loading is in progress |
| 147 | } |
| 148 | |
| 149 | // New creates a new completion component |
| 150 | func New() Manager { |
nothing calls this directly
no outgoing calls
no test coverage detected