MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetSelectedItem

Method GetSelectedItem

internal/tui/settings.go:175–180  ·  view source on GitHub ↗

GetSelectedItem returns the currently selected settings item.

()

Source from the content-addressed store, hash-verified

173
174// GetSelectedItem returns the currently selected settings item.
175func (s *SettingsOverlay) GetSelectedItem() *SettingsItem {
176 if s.selectedIndex >= 0 && s.selectedIndex < len(s.items) {
177 return &s.items[s.selectedIndex]
178 }
179 return nil
180}
181
182// Render renders the settings overlay.
183func (s *SettingsOverlay) Render() string {

Callers 2

handleSettingsKeysMethod · 0.80

Calls

no outgoing calls

Tested by 1