MCPcopy Create free account
hub / github.com/codehamr/codehamr / currentSuggestion

Method currentSuggestion

internal/tui/popover.go:16–21  ·  view source on GitHub ↗

currentSuggestion returns the highlighted popover row, or false when the popover is closed or empty.

()

Source from the content-addressed store, hash-verified

14// currentSuggestion returns the highlighted popover row, or false when the
15// popover is closed or empty.
16func (m Model) currentSuggestion() (argOption, bool) {
17 if !m.suggestOpen || len(m.suggest) == 0 {
18 return argOption{}, false
19 }
20 return m.suggest[m.suggestIdx], true
21}
22
23// popoverMoveSelection wraps the selection index modulo the filtered list.
24func (m Model) popoverMoveSelection(delta int) (tea.Model, tea.Cmd) {

Callers 1

handleEnterMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected