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:

ParameterTypeDescription
editorEditorThe editor.
fileTFileThe file being edited.
forcebooleanWhether to (re)open the suggestion popover even if it is not currently open.

Returns: booleanWhether a trigger matched.