Documentation ¶
Index ¶
- Constants
- func RuneWidthBackJump(r rune, runes []rune, runeOffset, spacingOffset int) int
- func RuneWidthJump(r rune, offset int) int
- type File
- func (file *File) Add(character rune) (xPosition int, addedLine bool)
- func (file *File) Backspace() (xPosition int, deletedLine bool)
- func (file *File) CanSafeQuit() bool
- func (file *File) Down(isInsert bool) (wasPossible bool, xPosition int)
- func (file *File) Init(fileName string)
- func (file *File) Left() (xPosition int)
- func (file *File) Remove() (xPosition int)
- func (file *File) RemoveBefore() (xPosition int)
- func (file *File) RemoveLine(isInsert bool) (xPosition int, wasFirst bool, wasLast bool)
- func (file *File) RemoveRestOfLine(isInsert bool) (xPosition int)
- func (file *File) Right(isInsert bool) (xPosition int)
- func (file *File) Save() error
- func (file *File) Up(isInsert bool) (wasPossible bool, xPosition int)
- type Line
Constants ¶
View Source
const TabSize = 8
Variables ¶
This section is empty.
Functions ¶
func RuneWidthBackJump ¶ added in v0.4.0
func RuneWidthJump ¶ added in v0.4.0
Types ¶
type File ¶ added in v0.4.0
func (*File) CanSafeQuit ¶ added in v0.4.0
func (*File) RemoveBefore ¶ added in v0.4.0
func (*File) RemoveLine ¶ added in v0.4.0
func (*File) RemoveRestOfLine ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.