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

Method StartEditing

internal/tui/settings.go:105–110  ·  view source on GitHub ↗

StartEditing begins inline editing of the selected string value.

()

Source from the content-addressed store, hash-verified

103
104// StartEditing begins inline editing of the selected string value.
105func (s *SettingsOverlay) StartEditing() {
106 if s.selectedIndex < len(s.items) && s.items[s.selectedIndex].Type == SettingsItemString {
107 s.editing = true
108 s.editBuffer = s.items[s.selectedIndex].StringVal
109 }
110}
111
112// ConfirmEdit saves the edit buffer to the selected item.
113func (s *SettingsOverlay) ConfirmEdit() {

Calls

no outgoing calls