Index

Type aliases

ContentStateChangedCallback

ContentStateChangedCallback: (property: ContentStateProperty, oldValue: any, newValue: any, suffix: any) => void

Type declaration

ContentStateProperty

ContentStateProperty: "mode" | "cmdHistory" | "prevInputs" | "suffix" | "group"

ModeName

ModeName: "normal" | "insert" | "hint" | "ignore" | "gobble" | "input" | "visual" | "nmode"

Variables

Const contentState

contentState: ContentState = (new Proxy({ mode: "normal" },{get(target, property: ContentStateProperty) {return target[property]},set(target, property: ContentStateProperty, newValue) {logger.debug("Content state changed!", property, newValue)const oldValue = target[property]const mode = target.modetarget[property] = newValuefor (const listener of onChangedListeners) {listener(property, mode, oldValue, newValue)}return true},},) as any) as ContentState

Const logger

logger: Logger = new Logger("state")

Const onChangedListeners

onChangedListeners: ContentStateChangedCallback[] = []

Functions

addContentStateChangedListener