feat: add Anki deck dropdown with Yomitan auto-fill in settings (#95)

This commit is contained in:
2026-05-27 23:13:43 -07:00
committed by GitHub
parent 75f9b8a803
commit 8d0535f3ca
24 changed files with 415 additions and 9 deletions
+8
View File
@@ -23,6 +23,7 @@ export type ConfigSettingsControl =
| 'key-code'
| 'mpv-key'
| 'known-words-decks'
| 'anki-deck'
| 'anki-note-type'
| 'anki-field'
| 'mpv-keybindings'
@@ -96,6 +97,7 @@ export interface ConfigSettingsAPI {
modelName: string,
draftUrl?: string,
): Promise<ConfigSettingsAnkiListResult>;
getYomitanAnkiDeckName(): Promise<ConfigSettingsAnkiDeckResult>;
}
export interface ConfigSettingsAnkiListResult {
@@ -103,3 +105,9 @@ export interface ConfigSettingsAnkiListResult {
values: string[];
error?: string;
}
export interface ConfigSettingsAnkiDeckResult {
ok: boolean;
value: string;
error?: string;
}