Documentation ¶
Index ¶
- Constants
- type BasicBuffer
- type Buffer
- type BytesContent
- type Column
- type Content
- type Editor
- type Text
- func (t *Text) DeleteSel()
- func (t *Text) ExecuteUnderCursor(q int64)
- func (t *Text) Insert(s string)
- func (t *Text) InsertNewLine()
- func (t *Text) MoveSel(q int64)
- func (t *Text) Origin() int64
- func (t *Text) Plumb(q int64)
- func (t *Text) PrevNewLine(p int64, n int) int64
- func (t *Text) ReadRune() (r rune, size int, err error)
- func (t *Text) Reset()
- func (t *Text) Select(q0, q1 int64)
- func (t *Text) SelectUnderCursor(q int64)
- func (t *Text) Selected() (q0, q1 int64)
- func (t *Text) SelectionToString(q0, q1 int64) string
- func (t *Text) SetOrigin(org int64)
- func (t *Text) StartSel(q int64)
- func (t *Text) StopSel()
- type UndoBuffer
- func (b *UndoBuffer) Delete(q0, q1 int64)
- func (b *UndoBuffer) End() int64
- func (b *UndoBuffer) FindRange(off, n int64) (q0, q1 int64)
- func (b *UndoBuffer) Insert(q int64, s string)
- func (b *UndoBuffer) ReadRuneAt(pos int64) (r rune, size int, err error)
- func (b *UndoBuffer) Redo() (q0, q1 int64)
- func (b *UndoBuffer) RuneReaderFrom(q int64) (r io.RuneReader, off int64)
- func (b *UndoBuffer) Undo() (q0, q1 int64)
- type Window
Constants ¶
View Source
const EOF = utf8.MaxRune + 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicBuffer ¶
type BasicBuffer struct {
// contains filtered or unexported fields
}
func (*BasicBuffer) Delete ¶
func (bb *BasicBuffer) Delete(q0, q1 int64)
func (*BasicBuffer) End ¶
func (bb *BasicBuffer) End() int64
func (*BasicBuffer) Insert ¶
func (bb *BasicBuffer) Insert(q int64, s string)
func (*BasicBuffer) ReadRuneAt ¶
func (bb *BasicBuffer) ReadRuneAt(q int64) (r rune, size int, err error)
type BytesContent ¶
type BytesContent []byte
func (BytesContent) Bytes ¶
func (b BytesContent) Bytes() []byte
func (BytesContent) Close ¶
func (b BytesContent) Close() error
type Column ¶
type Column struct {
// contains filtered or unexported fields
}
func (*Column) MoveWindow ¶
type Editor ¶
type Editor struct {
// contains filtered or unexported fields
}
func (*Editor) MoveColumn ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) ExecuteUnderCursor ¶
func (*Text) InsertNewLine ¶
func (t *Text) InsertNewLine()
func (*Text) SelectUnderCursor ¶
func (*Text) SelectionToString ¶
type UndoBuffer ¶
func NewUndoBuffer ¶
func NewUndoBuffer(buf *undo.Buffer) *UndoBuffer
func (*UndoBuffer) Delete ¶
func (b *UndoBuffer) Delete(q0, q1 int64)
func (*UndoBuffer) End ¶
func (b *UndoBuffer) End() int64
func (*UndoBuffer) FindRange ¶
func (b *UndoBuffer) FindRange(off, n int64) (q0, q1 int64)
func (*UndoBuffer) Insert ¶
func (b *UndoBuffer) Insert(q int64, s string)
func (*UndoBuffer) ReadRuneAt ¶
func (b *UndoBuffer) ReadRuneAt(pos int64) (r rune, size int, err error)
func (*UndoBuffer) Redo ¶
func (b *UndoBuffer) Redo() (q0, q1 int64)
func (*UndoBuffer) RuneReaderFrom ¶
func (b *UndoBuffer) RuneReaderFrom(q int64) (r io.RuneReader, off int64)
RuneReaderFrom returns an io.RuneReader and the offset in bytes that corresponds to q.
func (*UndoBuffer) Undo ¶
func (b *UndoBuffer) Undo() (q0, q1 int64)
type Window ¶
type Window struct {
// contains filtered or unexported fields
}
func (*Window) SetFilename ¶
Click to show internal directories.
Click to hide internal directories.