Documentation ¶
Index ¶
- func EventLineNumber(w *acme.Win, e *acme.Event) (int, error)
- func GetCurrentWindow() (*acme.Win, error)
- func SetCursorBOL(w *acme.Win, line int)
- func SetCursorEOL(w *acme.Win, line int)
- func WindowBody(w *acme.Win) (string, error)
- func WindowBodyLines(w *acme.Win) ([]string, error)
- type EventFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EventLineNumber ¶
EventLineNumber returns the line that a e occurred on in w
func GetCurrentWindow ¶
GetCurrentWindow finds the current active window in acme, using the snooper if this is not called from inside of an acme window directly.
func SetCursorBOL ¶
SetCursorBOL will position the current window cursor at the beginning of line.
func SetCursorEOL ¶
SetCursorEOL will position the current window cursor at the end of line.
func WindowBody ¶
WindowBody reads the body of the current window as single string
Types ¶
type EventFilter ¶
type EventFilter struct { KeyboardInputBody handler KeyboardDeleteBody handler KeyboardInputTag handler KeyboardDeleteTag handler Mouse2Body handler Mouse3Body handler Mouse2Tag handler Mouse3Tag handler // contains filtered or unexported fields }
An EventFilter takes hold of an acme window's event file and passes all events it sees through a set of filter functions if they are defined. Unmatched events are passed through to acme.
Click to show internal directories.
Click to hide internal directories.