Skip to content

EditorSuggest.trigger method

EditorSuggest › trigger

Unofficial

Evaluates the trigger at the cursor and updates the suggestion context.

Signature:

trigger(editor: Editor, file: TFile, force: boolean): boolean

Parameters:

Parameter Type Description
editor Editor The editor.
file TFile The file being edited.
force boolean Whether to (re)open the suggestion popover even if it is not currently open.

Returns: booleanWhether a trigger matched.