Interface OnEnterRule
Expand description
interface OnEnterRule {
action: EnterAction;
afterText?: RegExp;
beforeText: RegExp;
previousLineText?: RegExp;
}Properties§
§§§§
action: EnterActionThe action to execute.
after Text?: RegExpThis rule will only execute if the text after the cursor matches this regular expression.
before Text: RegExpThis rule will only execute if the text before the cursor matches this regular expression.
previous Line Text?: RegExpThis rule will only execute if the text above the this line matches this regular expression.
Describes a rule to be evaluated when pressing Enter.