src.elv.sh/pkg/edit/complete.CodeBuffer.Content (field)
47 uses
src.elv.sh/pkg/edit
builtins.go#L163: if isSyntaxComplete(buf.Content) {
builtins.go#L273: buf.Dot = m(buf.Content, buf.Dot)
builtins.go#L279: newDot := m(buf.Content, buf.Dot)
builtins.go#L283: buf.Content = buf.Content[:newDot] + buf.Content[buf.Dot:]
builtins.go#L287: buf.Content = buf.Content[:buf.Dot] + buf.Content[newDot:]
completion.go#L165: complete.CodeBuffer{Content: buf.Content, Dot: buf.Dot}, cfg)
completion.go#L185: rep := s.Buffer.Content[result.Replace.From:result.Replace.To]
histwalk.go#L70: Bindings: bindings, Store: hs, Prefix: buf.Content[:buf.Dot]})
minibuf.go#L40: code := codeArea.CopyState().Buffer.Content
navigation.go#L46: if dot != 0 && !strings.ContainsRune(" \n", rune(s.Buffer.Content[dot-1])) {
state_api.go#L36: s.Buffer = tk.CodeBuffer{Content: text, Dot: len(text)}
state_api.go#L85: return vals.FromGo(app.CodeArea().CopyState().Buffer.Content)
src.elv.sh/pkg/cli
app.go#L287: content := a.codeArea.CopyState().Buffer.Content
app.go#L381: code := a.codeArea.CopyState().Buffer.Content
src.elv.sh/pkg/cli/mode
histlist.go#L67: if buf.Content == "" {
histwalk.go#L111: From: len(w.Prefix), To: len(s.Buffer.Content),
instant.go#L63: code := w.app.CodeArea().CopyState().Buffer.Content
navigation.go#L82: filter := w.codeArea.CopyState().Buffer.Content
src.elv.sh/pkg/cli/tk
codearea.go#L64: Content string
codearea.go#L90: Content: c.Content[:c.Dot] + text + c.Content[c.Dot:],
codearea.go#L216: Content: c.Content[:c.Dot-len(abbr)] + full + c.Content[c.Dot:],
codearea.go#L227: if c.Dot < len(c.Content) {
codearea.go#L259: if len(c.Content) > len(a)+triggerLen {
codearea.go#L260: r1, _ := utf8.DecodeLastRuneInString(c.Content[:len(c.Content)-len(a)-triggerLen])
codearea.go#L270: Content: c.Content[:c.Dot-len(abbr)-triggerLen] + full + string(trigger),
codearea.go#L305: _, chop := utf8.DecodeLastRuneInString(c.Content[:c.Dot])
codearea.go#L307: Content: c.Content[:c.Dot-chop] + c.Content[c.Dot:],
codearea_render.go#L23: styledCode, errors := w.Highlighter(code.Content)
codearea_render.go#L40: if p.From > p.To || p.From < 0 || p.To > len(c.Content) {
codearea_render.go#L47: newContent := c.Content[:p.From] + p.Content + c.Content[p.To:]
codearea_render.go#L61: return CodeBuffer{Content: newContent, Dot: newDot}, p.From, p.From + len(p.Content)
combobox.go#L64: filter := w.codeArea.CopyState().Buffer.Content
combobox.go#L75: w.OnFilter(w, w.codeArea.CopyState().Buffer.Content)
src.elv.sh/cmd/examples/e3bc
main.go#L47: if codearea.CopyState().Buffer.Content != "" {