Documentation
¶
Index ¶
- type BufferId
- type EditorBuffer
- func (eb *EditorBuffer) Cursor() (lineno int, col int)
- func (eb *EditorBuffer) CursorCol() int
- func (eb *EditorBuffer) CursorLine() int
- func (eb *EditorBuffer) Id() BufferId
- func (eb *EditorBuffer) SetCursor(lineno, col int)
- func (eb *EditorBuffer) SetHighlighting(hi highlighting.Highlighting)
- func (eb *EditorBuffer) Update(res buffer.ActionResult)
- type EditorBuffers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EditorBuffer ¶
type EditorBuffer struct { Buffer *buffer.Buffer Viewport *viewport.Viewport Filepath string Hilite highlighting.Highlighting // contains filtered or unexported fields }
func (*EditorBuffer) Cursor ¶
func (eb *EditorBuffer) Cursor() (lineno int, col int)
func (*EditorBuffer) CursorCol ¶
func (eb *EditorBuffer) CursorCol() int
func (*EditorBuffer) CursorLine ¶
func (eb *EditorBuffer) CursorLine() int
func (*EditorBuffer) Id ¶
func (eb *EditorBuffer) Id() BufferId
func (*EditorBuffer) SetCursor ¶
func (eb *EditorBuffer) SetCursor(lineno, col int)
func (*EditorBuffer) SetHighlighting ¶
func (eb *EditorBuffer) SetHighlighting(hi highlighting.Highlighting)
func (*EditorBuffer) Update ¶
func (eb *EditorBuffer) Update(res buffer.ActionResult)
type EditorBuffers ¶
type EditorBuffers struct {
// contains filtered or unexported fields
}
func New ¶
func New() EditorBuffers
func (*EditorBuffers) All ¶
func (e *EditorBuffers) All() map[BufferId]*EditorBuffer
func (*EditorBuffers) Close ¶
func (e *EditorBuffers) Close(bid BufferId)
func (*EditorBuffers) Get ¶
func (e *EditorBuffers) Get(bid BufferId) *EditorBuffer
func (*EditorBuffers) Len ¶
func (e *EditorBuffers) Len() int
Click to show internal directories.
Click to hide internal directories.