Skip to content

EditorSuggestContext

Official

The context of the suggestion

Import:

import type { EditorSuggestContext } from 'obsidian';

Signature:

export interface EditorSuggestContext extends EditorSuggestTriggerInfo

Extends: EditorSuggestTriggerInfo

Properties

PropertyTypeDescription
editorEditorThe editor instance.
endEditorPositionThe end position of the triggering text. This is used to position the popover.
(Inherited from EditorSuggestTriggerInfo)
fileTFileThe file instance.
querystringThey query string (usually the text between start and end) that will be used to generate the suggestion content.
(Inherited from EditorSuggestTriggerInfo)
startEditorPositionThe start position of the triggering text. This is used to position the popover.
(Inherited from EditorSuggestTriggerInfo)

Links to this page: