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

Property Type Description
editor Editor The editor instance.
end EditorPosition The end position of the triggering text. This is used to position the popover.
(Inherited from EditorSuggestTriggerInfo)
file TFile The file instance.
query string They query string (usually the text between start and end) that will be used to generate the suggestion content.
(Inherited from EditorSuggestTriggerInfo)
start EditorPosition The start position of the triggering text. This is used to position the popover.
(Inherited from EditorSuggestTriggerInfo)

Links to this page: