MCPcopy
hub / github.com/mum4k/termdash / WrapAtWords

Function WrapAtWords

widgets/text/options.go:115–119  ·  view source on GitHub ↗

WrapAtWords configures the text widget so that it automatically wraps lines that are longer than the width of the widget at word boundaries. If not provided, long lines are trimmed instead.

()

Source from the content-addressed store, hash-verified

113// that are longer than the width of the widget at word boundaries. If not
114// provided, long lines are trimmed instead.
115func WrapAtWords() Option {
116 return option(func(opts *options) {
117 opts.wrapMode = wrap.AtWords
118 })
119}
120
121// WrapAtRunes configures the text widget so that it automatically wraps lines
122// that are longer than the width of the widget at rune boundaries. If not

Callers 15

newControlsTabFunction · 0.92
newVisualizeTabFunction · 0.92
explorerTextFunction · 0.92
explorerTextVariantsFunction · 0.92
newThreeDTabFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
buildWidgetsFunction · 0.92
newLockStateFunction · 0.92
newSidebarWidgetsFunction · 0.92
newTestTabFunction · 0.92
mainFunction · 0.92

Calls 1

optionFuncType · 0.70

Tested by 2

newTestTabFunction · 0.74
TestTextDrawsFunction · 0.68