ki icon indicating copy to clipboard operation
ki copied to clipboard

Automatically locate Anki collection

Open pwintz opened this issue 1 year ago • 6 comments

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 avatar Aug 04 '24 05:08 pwintz

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

pwintz avatar Aug 04 '24 09:08 pwintz

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.

langfield avatar Aug 04 '24 17:08 langfield

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

pwintz avatar Aug 05 '24 01:08 pwintz

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.

pwintz avatar Aug 05 '24 01:08 pwintz

@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 avatar Aug 08 '24 12:08 langfield

@pwintz Any luck?

langfield avatar Aug 17 '24 13:08 langfield