4da1c77220
Matches should arrive in alphabetical order. Currently results are not capped (JS should be able to handle ~1k tags without too much hassle), and no reordering based on match location is done. Matches are substring based, and multiple can be provided, eg "foo::bar" will match "foof::baz::abbar". This is not hooked up properly on the frontend at the moment - updateSuggestions() seems to be missing the most recently typed character, and is not updating the list of completions half the time.
12 lines
421 B
TypeScript
12 lines
421 B
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
import { anki } from "./backend_proto";
|
|
import Cards = anki.cards;
|
|
import DeckConfig = anki.deckconfig;
|
|
import Notetypes = anki.notetypes;
|
|
import Scheduler = anki.scheduler;
|
|
import Stats = anki.stats;
|
|
import Tags = anki.tags;
|
|
export { Stats, Cards, DeckConfig, Notetypes, Scheduler, Tags };
|