langfield / ki

version control for Anki collections
https://langfield.github.io/ki/
GNU Affero General Public License v3.0
80 stars 3 forks source link

Automatically locate Anki collection #174

Open pwintz opened 3 months ago

pwintz commented 3 months ago

Since we know where the Anki collection files are located on each OS, it would be great to have ki clone automatically locate the collection files and clone from a given profile name instead of needing users to locate the collection location.

The command line interface I'm imagining is something like this:

ki clone --profile=Paul
pwintz commented 3 months ago

Working on this here: https://github.com/pwintz/ki/tree/issue_174_automatic_collection_location

langfield commented 3 months ago

Hey! It's not a bad idea 🙂

Unfortunately I can't merge it as-is, since as I mentioned in another issue, I'm explicitly not supporting Windows.

pwintz commented 3 months ago

Ah, that's news to me! I've been using ki on Windows. What is the holdup for supporting Windows?

pwintz commented 3 months ago

Also, the work I've done isn't ready to merge yet. I need to rework the command line interface a bit so that ki clone --profile=Paul creates the desired result.

langfield commented 3 months ago

@pwintz Well I haven't got a Windows machine to test on anymore, and anyway it added a ton of complexity to the implementation. It needs to be rewritten anyway, I believe most of the logic is better expressed in a bash script or something.

Also, the work I've done isn't ready to merge yet. I need to rework the command line interface a bit so that ki clone --profile=Paul creates the desired result.

Interested in seeing how this turns out! 🙂

langfield commented 3 months ago

@pwintz Any luck?