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): booleanParameters:
| 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: boolean — Whether a trigger matched.