Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) AutoSelect(addr address.Simple) address.Selection
- func (b *Buffer) ClearSel(sel address.Selection) address.Selection
- func (b *Buffer) Contents() []byte
- func (b *Buffer) Find(dot address.Simple, s string) (address.Selection, bool)
- func (b *Buffer) GetSel(sel address.Selection) string
- func (b *Buffer) InsertString(addr address.Simple, s string) address.Simple
- func (b *Buffer) JumpTo(dot address.Simple, addr string) (address.Selection, bool)
- func (b *Buffer) LastAddress() address.Simple
- func (b *Buffer) NextSimple(a address.Simple) address.Simple
- func (b *Buffer) PrevSimple(a address.Simple) address.Simple
- func (b *Buffer) SelFunc(addr address.Simple, sepFn func(sep rune) bool) address.Selection
- func (b *Buffer) SelLine(addr address.Simple) address.Selection
- func (b *Buffer) SelWord(addr address.Simple) address.Selection
- type Line
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct { Lines []*Line // contains filtered or unexported fields }
func (*Buffer) AutoSelect ¶
AutoSelect selects some text around a. Based on acme's double click selection rules.
func (*Buffer) InsertString ¶
InsertString inserts s into the buffer at a, adding new Lines if s contains newline characters.
func (*Buffer) LastAddress ¶
func (*Buffer) SelFunc ¶
SelFunc is analogous to strings.FieldsFunc, returning a selection specified by sepFn. SepFn should return true when sep is the desired separator.
Click to show internal directories.
Click to hide internal directories.