Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Init = Init
- data AfterInit = AfterInit
- data BeforeEvent = BeforeEvent
- data BeforeRender = BeforeRender
- data OnRender = OnRender
- data AfterRender = AfterRender
- data Exit = Exit
- data BufAdded = BufAdded BufRef
- data Keypress
- data Mod
- data BufTextChanged = BufTextChanged CrdRange YiString
Documentation
This event is dispatched exactly once when the editor starts up.
This event is dispatched exactly once when the editor starts up after onInit has occurred.
data BeforeEvent Source #
This event is dispatched immediately before dispatching any events from
asyncronous event listeners (like Keypress
s)
data BeforeRender Source #
This event is dispatched immediately before dispatching
the OnRender
event.
This event is dispatched when it's time for extensions to render to screen.
data AfterRender Source #
This event is dispatched immediately after dispatching OnRender
.
This event is dispatched before exiting the editor, listen for this to do any clean-up (saving files, etc.)
This event is dispatched after adding a new buffer. The contained BufRef refers to the new buffer.
This event is dispatched in response to keyboard key presses. It contains both
the char that was pressed and any modifiers (Mod
) that where held when the key was pressed.
This represents each modifier key that could be pressed along with a key.
data BufTextChanged Source #
This is triggered when text in a buffer is changed. The Event data includes the CrdRange
that changed and
the new text which is now contined in that range.