Documentation ¶
Index ¶
- func NewRows() *rows
- func Split(s []rune, sep rune) (r [][]rune)
- type Action
- type ActionClass
- type ActionGroup
- type Cursor
- type Encoder
- type File
- func (ff *File) Backup() error
- func (ff *File) ChangePath(path string)
- func (ff *File) GetBase() string
- func (ff *File) GetClass() string
- func (ff *File) GetDispPath() string
- func (ff *File) GetEncoding() string
- func (ff *File) GetLinefeed() string
- func (ff *File) GetPath() string
- func (ff *File) GetRegion(cursor1, cursor2 Cursor) *[]rune
- func (ff *File) GetTabWidth() int
- func (ff *File) Insert(cursor Cursor, s []rune) (Cursor, bool)
- func (ff *File) IsDirtyFlag() bool
- func (m File) IsLastRow(rowIndex int) bool
- func (ff *File) IsReadonly() bool
- func (ff *File) IsSoftTab() bool
- func (m File) LenRows() int
- func (ff *File) Load() error
- func (ff *File) New() error
- func (ff *File) RemoveRegion(cursor1, cursor2 Cursor) *[]rune
- func (ff *File) RemoveRow(cursor1 Cursor) *[]rune
- func (ff *File) Row(rowIndex int) *Row
- func (ff *File) Rows() *rows
- func (ff *File) Save() error
- func (ff *File) SetPath(path string)
- func (ff *File) SetReadonly(b bool)
- func (ff *File) SetSoftTab(b bool)
- type Row
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionClass ¶
type ActionClass int
const ( Insert ActionClass = iota Delete DeleteBackward ActionSeparator )
type ActionGroup ¶
type ActionGroup []Action
func NewActionGroup ¶
func NewActionGroup() *ActionGroup
func (*ActionGroup) IsEmpty ¶
func (ag *ActionGroup) IsEmpty() bool
func (*ActionGroup) MoveTo ¶
func (undo *ActionGroup) MoveTo(redo *ActionGroup)
This bad function Move Undo ActionGroup to Redo
func (*ActionGroup) Pop ¶
func (ag *ActionGroup) Pop() (lastAction Action, _ bool)
try before isUndoEmpty() method
func (*ActionGroup) Push ¶
func (ag *ActionGroup) Push(a Action)
type File ¶
type File struct { Undo *ActionGroup Redo *ActionGroup // contains filtered or unexported fields }
func (*File) ChangePath ¶
func (*File) GetDispPath ¶
func (*File) GetEncoding ¶
func (*File) GetLinefeed ¶
func (*File) GetTabWidth ¶
func (*File) IsDirtyFlag ¶
func (*File) IsReadonly ¶
func (*File) RemoveRegion ¶
No undo/redo functionality
func (*File) SetReadonly ¶
func (*File) SetSoftTab ¶
type Row ¶
type Row []rune
func (*Row) BigginingSpaces ¶
Return the indented string at the beginning of the line
Source Files ¶
Click to show internal directories.
Click to hide internal directories.