matthayes / anki_cloze_anything

Add cloze deletions to any existing Anki notes without any modification to Anki
https://ankiweb.net/shared/info/330680661
Apache License 2.0
52 stars 10 forks source link

Formatting disappears when clicking on another input field. #29

Open epistularum opened 2 years ago

epistularum commented 2 years ago

Steps:

  1. Select text
  2. Press the cloze button (or use the shortcut key)
  3. Click on another input field

Result:

Generated formatting disappears.

This only happens when the last editing done on the field is generated via the cloze anything addon. The formatting doesn't disappear if you, for instance, add a character before switching field or if you write the formatting yourself.

Video examples:

Same steps as above: https://0x0.st/oa8y.webm

Same steps as above, but adding a character before clicking on another input field: https://0x0.st/oa8t.webm

Fully manual: https://0x0.st/oa8v.webm

Debug log Anki 2.1.51 (cf78a555) Python 3.10.4 Qt 6.3.0 PyQt 6.3.0 Platform: Linux Flags: frz=False ao=True sv=2 Add-ons, last update check: 2022-05-14 01:48:17 ===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) AJT Browser Play Button ['182970692', 2022-04-27T15:51, 'None', ''] AnkiConnect ['2055492159', 2022-04-28T12:05, 'None', ''] Cloze Anything ['330680661', 2021-12-09T16:34, 'None', ''] Kanji Grid ['909972618', 2019-01-10T07:40, 'None', ''] Review Heatmap ['review_heatmap', 2020-04-30T22:23, 'None', ''] True Retention ['613684242', 2017-11-20T05:43, 'None', ''] ===IDs of active AnkiWeb add-ons=== 182970692 2055492159 330680661 613684242 909972618 ===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed])
Futats commented 2 years ago

+1 for this. I also experience this on:

Anki Version ⁨2.1.54 (b6a7760c)⁩ Python 3.9.7 Qt 5.15.2 PyQt 5.15.5 Windows 10

This no longer happens if I disable the visual editor and edit in the HTML editor, but then again, the keyboard shortcut doesn't work there, so that also breaks my workflow. :( This issue doesn't occur in Anki 2.1.49, so I for now I've rolled back to that.

Naitreey commented 1 year ago

This also happens for me. Manually entering ((c1::text)) chunk still works though.

rwmpelstilzchen commented 1 year ago

+1

I work around the problem by hitting space and then backspace afterwards…