actions

package
v0.0.0-...-a7e8193 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 16 Imported by: 0

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

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 Dump

func Dump(viewId int64)

Dump prints out the undo/redo stack of a view, for debugging

func Exec

func Exec(action string, args []string) (res []string, err error)

func ExecScript

func ExecScript(script string)

Execute an external script, meant to be ran within a routine.

func NewActionBus

func NewActionBus() core.ActionDispatcher

func NewSetCursorAction

func NewSetCursorAction(viewId int64, ln, col int) core.Action

func NewSetSelectionsActions

func NewSetSelectionsActions(viewId int64, selections *[]core.Selection) []core.Action

func NewViewDeleteAction

func NewViewDeleteAction(viewId int64, row1, col1, row2, col2 int, undoable bool) core.Action

func NewViewInsertAction

func NewViewInsertAction(viewId int64, row, col int, text string, undoable bool) core.Action

func Redo

func Redo(viewId int64)

func RegisterActions

func RegisterActions()

func Undo

func Undo(viewId int64)

or group by alphanum sequence ??

func UndoAdd

func UndoAdd(viewId int64, do, undo []core.Action)

func UndoClear

func UndoClear(viewId int64)

func Usage

func Usage() string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL