File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 5252 <key >Option Description </key >
5353 <string ></string >
5454 </dict >
55+ <dict >
56+ <key >Option Identifier </key >
57+ <string >note_type </string >
58+ <key >Option Label </key >
59+ <dict >
60+ <key >en </key >
61+ <string >Note Type </string >
62+ </dict >
63+ <key >Option Type </key >
64+ <string >string </string >
65+ <key >Option Default Value </key >
66+ <string >Basic </string >
67+ <key >Option Description </key >
68+ <string ></string >
69+ </dict >
5570 </array >
5671 <key >Extension Description </key >
5772 <string >Create a new Anki Note with selected word. </string >
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ entry=$POPCLIP_TEXT
1111safe_entry=$POPCLIP_URLENCODED_TEXT
1212dict_svc=$POPCLIP_OPTION_DICT_SVC
1313target_deck=$POPCLIP_OPTION_TARGET_DECK
14+ note_type=$POPCLIP_OPTION_NOTE_TYPE
1415tag=" PopClip"
1516app_tag=${POPCLIP_APP_NAME// / _} # replace spaces with underscore
1617
@@ -83,7 +84,7 @@ gen_post_data()
8384 "Front": "$entry ",
8485 "Back": "$( look_up) "
8586 },
86- "modelName": "Basic ",
87+ "modelName": "$note_type ",
8788 "deckName": "$target_deck ",
8889 "tags": [
8990 "$tag ",
You can’t perform that action at this time.
0 commit comments