yi-0.6.2.3: The Haskell-Scriptable EditorSource codeContentsIndex
Yi.Buffer
Description

The Buffer module defines monadic editing operations over one-dimensional buffers, maintaining a current point.

This module acts as a Facade for the Buffer.* modules.

Synopsis
module Yi.Buffer.Basic
module Yi.Buffer.HighLevel
module Yi.Buffer.Indent
module Yi.Buffer.Misc
module Yi.Buffer.Normal
module Yi.Buffer.Region
module Yi.Buffer.Undo
data UIUpdate
= TextUpdate !Update
| StyleUpdate !Point !Size
data Update
= Insert {
updatePoint :: !Point
updateDirection :: !Direction
insertUpdateString :: !Rope
}
| Delete {
updatePoint :: !Point
updateDirection :: !Direction
deleteUpdateString :: !Rope
}
updateIsDelete :: Update -> Bool
Documentation
module Yi.Buffer.Basic
module Yi.Buffer.HighLevel
module Yi.Buffer.Indent
module Yi.Buffer.Misc
module Yi.Buffer.Normal
module Yi.Buffer.Region
module Yi.Buffer.Undo
data UIUpdate Source
Constructors
TextUpdate !Update
StyleUpdate !Point !Size
show/hide Instances
data Update Source

Mutation actions (also used the undo or redo list)

For the undoredo, we use the partial checkpoint/ (Berlage, pg16) strategy to store just the components of the state that change.

Note that the update direction is only a hint for moving the cursor (mainly for undo purposes); the insertions and deletions are always applied Forward.

Constructors
Insert
updatePoint :: !Point
updateDirection :: !Direction
insertUpdateString :: !Rope
Delete
updatePoint :: !Point
updateDirection :: !Direction
deleteUpdateString :: !Rope
show/hide Instances
updateIsDelete :: Update -> BoolSource
Produced by Haddock version 2.6.1