Documentation ¶
Index ¶
- type Buffer
- func (b *Buffer) Clear() error
- func (b *Buffer) CommandOutputf(format string, args ...interface{}) (string, error)
- func (b *Buffer) Commandf(format string, args ...interface{}) error
- func (b *Buffer) CurrentCursor() (Position, error)
- func (b *Buffer) FileType() (string, error)
- func (b *Buffer) Focus() error
- func (b *Buffer) Focused() (bool, error)
- func (b *Buffer) LineCount() (int, error)
- func (b *Buffer) Mode() (string, error)
- func (b *Buffer) Modifiable() (bool, error)
- func (b *Buffer) Name() (string, error)
- func (b *Buffer) Option() (Option, error)
- func (b *Buffer) SelectedRange() (Range, error)
- func (b *Buffer) SetCurrentCursor(p Position) error
- func (b *Buffer) SetFileType(t string) error
- func (b *Buffer) SetModifiable(m bool) error
- func (b *Buffer) SetName(name string) error
- func (b *Buffer) SetOption(o Option) error
- func (b *Buffer) Valid() (bool, error)
- func (b *Buffer) Write(lines [][]byte) error
- type Option
- type Position
- type Range
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
func (*Buffer) CommandOutputf ¶
func (*Buffer) CurrentCursor ¶
func (*Buffer) Modifiable ¶
func (*Buffer) SelectedRange ¶
func (*Buffer) SetCurrentCursor ¶
func (*Buffer) SetFileType ¶
SetFileType sets filetype t to buffer.
func (*Buffer) SetModifiable ¶
type Option ¶
type Option struct { BufHidden string BufListed bool BufType string ReadOnly bool SwapFile bool Modifiable bool Modified bool }
func (Option) MapPointer ¶
type Position ¶
func NewPosition ¶
Click to show internal directories.
Click to hide internal directories.