Documentation ¶
Overview ¶
Set of actions that can be dispatched. Actions are dispatched, and processed one at a time by the action bus for concurency safety.
Index ¶
- Variables
- func Dump(viewId int64)
- func Exec(action string, args []string) (res []string, err error)
- func ExecScript(script string)
- func NewActionBus() core.ActionDispatcher
- func NewSetCursorAction(viewId int64, ln, col int) core.Action
- func NewSetSelectionsActions(viewId int64, selections *[]core.Selection) []core.Action
- func NewViewDeleteAction(viewId int64, row1, col1, row2, col2 int, undoable bool) core.Action
- func NewViewInsertAction(viewId int64, row, col int, text string, undoable bool) core.Action
- func Redo(viewId int64)
- func RegisterActions()
- func Undo(viewId int64)
- func UndoAdd(viewId int64, do, undo []core.Action)
- func UndoClear(viewId int64)
- func Usage() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Ar *ar = &ar{}
Action runner, all actions are defined on this type AFAIK need to be on a type for easy reflection (go/importer may help ??)
Functions ¶
func ExecScript ¶
func ExecScript(script string)
Execute an external script, meant to be ran within a routine.
func NewActionBus ¶
func NewActionBus() core.ActionDispatcher
func NewSetSelectionsActions ¶
func NewViewDeleteAction ¶
func NewViewInsertAction ¶
func RegisterActions ¶
func RegisterActions()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.