FooSoft / yomichan-anki

Plugin for sentence/vocab mining Japanese books in Anki.
https://foosoft.net/projects/yomichan-anki
Other
58 stars 12 forks source link

Persistent text box #7

Closed felixvd closed 9 years ago

felixvd commented 9 years ago

Text is saved in the JSON upon closing and loaded on startup if the flag “rememberTextBoxContent” is true (default). Text seems to be escaped automatically for export into the JSON. Tested with quote characters only.

Missing the UI for controlling this feature, as discussed.

FooSoft commented 9 years ago

There are a couple of issues that I found when trying these changes locally. The fact that whole files for things like books can dumped into preferences is probably not a good thing; also this change ends up making the "load recent file on startup" setting appear to work in a strange way.

Basically, if you load a book text file, close, and restart the app, the book contents will display on next startup even if you don't have that checkbox set. Because I'm not sure what the best way to deal with this is, I'm making this feature "off" by default (user has to tick the checkbox).

This is now on dev branch.