Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remember language and destination field for each deck #27

Open
Expertium opened this issue Dec 14, 2023 · 3 comments
Open

Remember language and destination field for each deck #27

Expertium opened this issue Dec 14, 2023 · 3 comments

Comments

@Expertium
Copy link

Suppose I have deck A and deck B with different languages. Right now when I want to add audio to a card from deck A, I have to select the destination field and the language, and if afterwards I want to audio to a card from deck B, I have to re-select the language and teh destination field.
Solution: add a "Save preferences" button. It will save the destination field and language (for this deck) in the add-on configuration. That way users won't have to switch back and forth between languages and destination fields if they are learning 2 or more languages, or using 2 or more different decks with different field names.

@Expertium
Copy link
Author

Oh, nevermind, it already has something similar: "Remember language on a per deck basis": "True". Though I think it should remember the destination field too. Plus, it would be nice if there was a checkbox for this. I would've never figured this out if I didn't go to add-on configs, so having a checkbox would make it easier to find this feature.

@Rascalov
Copy link
Owner

Oh, nevermind, it already has something similar: "Remember language on a per deck basis": "True".

Small addition: It works by tagging the deck with the language code to later use as reference. Disabled by default since people may not be ok with their decks getting tagged without knowing what could cause it. To be honest it should just be a config only lookup, but what worked works.

I would've never figured this out if I didn't go to add-on configs,

Yup, I understand that an actual option menu would make it easier to find, but I figure those that require customization to that extent are bound to find it in the config (more honestly, my busy and lazy behind has not come around to it and just relies on the anki config.json).

Now for the destination field, my inital reaction is hessitant. Do people really use different types of cards for learning different languages? I assume they'd settle on a single (custom) card profile to suit their needs.
Nevertheless, if I ever get around to it (even christmas break is no break anymore), I might extend it to destination fields

@Expertium
Copy link
Author

Expertium commented Jan 27, 2024

Hey, it's me again. Any plans to make the add-on remember the destination field for each note type?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants