MCPcopy
hub / github.com/mathaou/termdbms / PrepareFormatMode

Function PrepareFormatMode

viewer/mode.go:24–32  ·  view source on GitHub ↗
(m *TuiModel)

Source from the content-addressed store, hash-verified

22)
23
24func PrepareFormatMode(m *TuiModel) {
25 m.UI.FormatModeEnabled = true
26 m.UI.EditModeEnabled = false
27 m.TextInput.Model.SetValue("")
28 m.FormatInput.Model.SetValue("")
29 m.FormatInput.Model.Focus = true
30 m.TextInput.Model.Focus = false
31 m.TextInput.Model.Blur()
32}
33
34func MoveCursorWithinBounds(m *TuiModel) {
35 defer func() {

Callers 4

initFunction · 0.85
CreateEmptyBufferFunction · 0.85
CreatePopulatedBufferFunction · 0.85
EditEnterFunction · 0.85

Calls 2

SetValueMethod · 0.80
BlurMethod · 0.80

Tested by

no test coverage detected