CommandEditorSuggest.onTextTrigger method
CommandEditorSuggest › onTextTrigger
Decides whether the suggest opens on typed text, outside a command-opened session. Never, by default.Signature:
onTextTrigger(_cursor: EditorPosition, _editor: Editor, _file: TFile | null): EditorSuggestTriggerInfo | nullParameters:
| Parameter | Type | Description |
|---|---|---|
| _cursor | EditorPosition | The cursor. |
| _editor | Editor | The editor. |
| _file | TFile | null | The file open in the editor. |
Returns: EditorSuggestTriggerInfo | null — The trigger info, or null to stay closed.