glutanimate / editor-find-replace

Find and Replace in Editor Add-on for Anki
1 stars 0 forks source link

combine editor-find-replace and Batch Note Editing function #1

Open adgjlsfhk123 opened 6 years ago

adgjlsfhk123 commented 6 years ago

Hi,

I hope that there is an add-on that could combine the function of editor-find-replace and Batch Note Editing function.

I have two field, 1.word field and 2.explanation and example sentence field. For example, The word field is

debunk

The explanation and example sentence field is

If you debunk a widely held belief, you show that it is false. If you debunk something that is widely admired, you show that it is not as good as people think it is. Historian Michael Beschloss debunks a few myths. [VERB noun] ...the Frenchmen of the enlightenment who debunked the church and the crown. [VERB noun]

I want to convert this card to bold form, so it looks like

The word field is still

debunk

The explanation and example sentence field is

If you debunk a widely held belief, you show that it is false. If you debunk something that is widely admired, you show that it is not as good as people think it is. Historian Michael Beschloss debunks a few myths. [VERB noun] ...the Frenchmen of the enlightenment who debunked the church and the crown. [VERB noun]

or the cloze form , so it looks like : The word field is

debunk

The explanation and example sentence field is

If you {{c1:debunk}} a widely held belief, you show that it is false. If you {{c1:debunk}} something that is widely admired, you show that it is not as good as people think it is. Historian Michael Beschloss {{c1:debunk}}s a few myths. [VERB noun] ...the Frenchmen of the enlightenment who {{c1:debunk}}ed the church and the crown. [VERB noun]

And I have lot of cards, so I need to batch replace them. Is it possible to do such thing? Thank you for your help.

glutanimate commented 6 years ago

Hi! Thanks a lot for the suggestion! I appreciate the time you put into detailing your idea.

This is a bit of a hidden functionality, but Anki actually does support advanced batch replacements like these natively. See here for more information: https://apps.ankiweb.net/docs/manual.html#find-and-replace

adgjlsfhk123 commented 6 years ago

Thanks for your kind reply. I know how to replace them by using this built-in function now. But it seems only suitable for replace in the same field. It seems not suitable for find something in field A and replace something in field B. I can replace debunk in card1 , but in card2 the word is different. maybe it is debut and its explanation and sentences. What I want is not replace debunk in card2, I want to replace debut in card2. Do I understand correctly? Thank you.