gregorias / anki-code-highlighter

Anki plugin for code syntax highlighting.
GNU Affero General Public License v3.0
54 stars 3 forks source link

Remember my highlighter and language selections #81

Closed slnc closed 1 month ago

slnc commented 1 month ago

I normally create code snippets for the same language and I open and close Anki all the time. Right now the plugin asks me for a highlighter and a language for every card, and the language choice gets reset if I reopen Anki.

Consider adding a set of config options so that when I press the "Highlight current selection" toolbar button, it always uses the configured settings. E.g.:

If I activate any of those options and I want to change highlighter or language for a card, I will need to go to the addon's settings.

In the past couple of weeks alone I've created 120 code snippet cards. A feature like this would have saved me a lot of keypresses and context switches between focusing on the card contents and the mechanics of creating a card.

Thanks!

gregorias commented 1 month ago

I’ve implemented wizard state persistence, which should satisfy this feature request. Let me know if you have further comments.

slnc commented 4 weeks ago

Thanks Greg, it works great! I first tried to update the plugin via Anki's Tools > Add-ons > Check for Updates, but it didn't detect any updates. I guess it's a caching issue, but I mention it in case it's not that.