Code Monkey home page Code Monkey logo

Comments (4)

Stvad avatar Stvad commented on June 17, 2024 1

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.

from crowdanki.

Stvad avatar Stvad commented on June 17, 2024

Hi, I'm not sure I'm following what is your concern.
The name of the deck is already included in the JSON. And correspondingly code, internally, can handle any correct JSON file (though admittedly there is no UI to do that).
I've chosen to enforce the convention for deck directories to be the representation of the deck name as it was easier to implement and I haven't seen any particular advantage in the 'pick first json file strategy' (though it can be changed without breaking thins).
I've chosen to enforce convention name of the repository==the name of the deck directory for the same reason (and also to reinforce the notion one-repository=one-deck). I can see how the name of the repository may not be the nicest one as a consequence, with hierarchy and platform-specific name limitations.
Do I understand correctly that you would prefer mentioned 'pick first json file strategy' to be in place (that would imply that the repositories can have any valid name as long as they have the correct content in place)?

from crowdanki.

axelboc avatar axelboc commented on June 17, 2024

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":

  • If the box is ticked, the behaviour is the same as it is now.
  • If the box is unticked, CrowdAnki outputs the JSON file and media folder directly at the root of the folder selected by the user, and names the JSON file after that folder.

Does that make sense?

from crowdanki.

Stvad avatar Stvad commented on June 17, 2024

#56

from crowdanki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.