SearchSource beta
Interface of @v12-engine/editor
ts
export interface SearchSourceSomewhere the search looks: its entries, made as the search opens (a promise for what is fetched)
Members
entries
ts
entries(editor: EditorClient): SearchEntry[] | Promise<SearchEntry[]>;The source's entries, made as the search opens; a promise for those that are fetched
fuzzy
ts
fuzzy?: boolean;Whether a typo finds its entries (flsh finds Flash; the kit's search, after everything found as typed): yes when left out. Off for entries that are codes or paths, where a near miss is another thing
id
ts
id: string;The source's id, unique among the search's sources: what an entry's FoundEntry.source names
name
ts
name: string;What it is, in the list of what a first character searches alone
prefix
ts
prefix?: string;A first character that searches it alone (> what the editor does, @ what is on the map, # files): none, for the search of everything only