Skip to content

SearchEntry beta ​

Interface of @v12-engine/editor

ts
export interface SearchEntry

One thing the search finds: what it says, what kind of thing it is, and what it does when it is picked

Members ​

detail ​

ts
detail?: string;

A word more, shown dimmed: a key, a path, whose

icon ​

ts
icon?: string;

Its icon before it, by name in the editor's table of icons (EditorOptions.icons)

id ​

ts
id: string;

Its id within its source: what is kept of what was used last

kind ​

ts
kind: string;

What kind of thing it is, shown beside it

label ​

ts
label: string;

The words of the entry, which the query is matched against and which the list shows

run ​

ts
run(editor: EditorClient): void | Promise<void>;

Does what the entry stands for when it is picked, given the editor

words ​

ts
words?: string;

More words it is found by, not shown