diff --git a/shared/src/lib.rs b/shared/src/lib.rs index 789962d..a61f142 100644 --- a/shared/src/lib.rs +++ b/shared/src/lib.rs @@ -79,8 +79,8 @@ impl Default for Settings { deck: String::from("Default"), note_type: String::from("Basic"), note_fields: String::from( - "Front:$sent -Back:$word:$def", + "Front:{sent} +Back:{word}:{def}", ), model: String::new(), dicts: Vec::new(), diff --git a/src-tauri/src/add_to_anki.rs b/src-tauri/src/add_to_anki.rs index 1762eb5..948480f 100644 --- a/src-tauri/src/add_to_anki.rs +++ b/src-tauri/src/add_to_anki.rs @@ -145,9 +145,9 @@ def3"}) deck: String::from("deck"), note_type: String::from("note"), note_fields: String::from( - "sentence:$sent[$word] -word:$word -def:$def", + "sentence:{sent}[{word}] +word:{word} +def:{def}", ), ..Default::default() }; @@ -174,8 +174,8 @@ def:$def", deck: String::from("deck"), note_type: String::from("note"), note_fields: String::from( - "sentence:$sent -sentence:$word", + "sentence:{sent} +sentence:{word}", ), ..Default::default() };