File tree Expand file tree Collapse file tree 2 files changed +50
-3
lines changed
Expand file tree Collapse file tree 2 files changed +50
-3
lines changed Original file line number Diff line number Diff line change 6767 <key >Option Description </key >
6868 <string ></string >
6969 </dict >
70+ <dict >
71+ <key >Option Identifier </key >
72+ <string >front_field </string >
73+ <key >Option Label </key >
74+ <dict >
75+ <key >en </key >
76+ <string >Front Field </string >
77+ </dict >
78+ <key >Option Type </key >
79+ <string >string </string >
80+ <key >Option Default Value </key >
81+ <string >Front </string >
82+ <key >Option Description </key >
83+ <string ></string >
84+ </dict >
85+ <dict >
86+ <key >Option Identifier </key >
87+ <string >back_field </string >
88+ <key >Option Label </key >
89+ <dict >
90+ <key >en </key >
91+ <string >Back Field </string >
92+ </dict >
93+ <key >Option Type </key >
94+ <string >string </string >
95+ <key >Option Default Value </key >
96+ <string >Back </string >
97+ <key >Option Description </key >
98+ <string ></string >
99+ </dict >
100+ <dict >
101+ <key >Option Identifier </key >
102+ <string >tag </string >
103+ <key >Option Label </key >
104+ <dict >
105+ <key >en </key >
106+ <string >Tag </string >
107+ </dict >
108+ <key >Option Type </key >
109+ <string >string </string >
110+ <key >Option Default Value </key >
111+ <string >PopClip </string >
112+ <key >Option Description </key >
113+ <string ></string >
114+ </dict >
70115 </array >
71116 <key >Extension Description </key >
72117 <string >Create a new Anki Note with selected word. </string >
Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ safe_entry=$POPCLIP_URLENCODED_TEXT
1212dict_svc=$POPCLIP_OPTION_DICT_SVC
1313target_deck=$POPCLIP_OPTION_TARGET_DECK
1414note_type=$POPCLIP_OPTION_NOTE_TYPE
15- tag=" PopClip"
15+ front_field=$POPCLIP_OPTION_FRONT_FIELD
16+ back_field=$POPCLIP_OPTION_BACK_FIELD
17+ tag=$POPCLIP_OPTION_TAG
1618app_tag=${POPCLIP_APP_NAME// / _} # replace spaces with underscore
1719
1820
@@ -81,8 +83,8 @@ gen_post_data()
8183 "params": {
8284 "note": {
8385 "fields": {
84- "Front ": "$entry ",
85- "Back ": "$( look_up) "
86+ "$front_field ": "$entry ",
87+ "$back_field ": "$( look_up) "
8688 },
8789 "modelName": "$note_type ",
8890 "deckName": "$target_deck ",
You can’t perform that action at this time.
0 commit comments