-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Deck name vs. repository name #15
Comments
Hi, I'm not sure I'm following what is your concern. |
Ah sorry, I can indeed see the name of the deck in the JSON - not sure how I missed that. It makes my second option irrelevant... So what I'm suggesting is to remove the first convention you mention that the deck directory has to match the name of the deck. I think the import can still work the same way: select a folder and look for a JSON file with the same name. No need for a 'pick first json file strategy'. The problem is with the export. A solution might be to have a checkbox that says something like "Create deck directory":
Does that make sense? |
I see, the thing is that right now plugin integrates into export infrastructure already present in Anki (not that it fits well or the infrastructure is any good). And within this constraints, I'm not sure how/where to elegantly fit additional ui options for the export. |
… jsons be called deck.json. This way their name doesn't need to be tied to the deck name or to the folder name or to the github repo name. Did some tests and it seems to work just fine. A repo called 'myRepo', when imported, will create a deck called 'Spanish castellano' from a json called 'deck.json'
…kwards compatibility in the importer, and changed the function description
…s be called deck.json. This way their name doesn't need to be tied to the deck name or to the folder name or to the github repo name. Did some tests and it seems to work just fine. A repo called 'myRepo', when imported, will create a deck called 'Spanish castellano' from a json called 'deck.json'
…s compatibility in the importer, and changed the function description
My_Deck
.My_Deck
.I'm not very keen on having the name of my GitHub repo bound to the name of the deck. I think the add-on would really benefit from a bit more flexibility in this regard.
I can think of a couple of options:
media
folder at the root of the repo and parse the content of the file to get the name of the deck.The text was updated successfully, but these errors were encountered: