langfield / ki

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

Can you put anki notes revision history in a git repo with ki? #176

Open parrotcar00 opened 1 month ago

parrotcar00 commented 1 month ago

Being able to put one's anki notes in a git controlled repo is a great idea. But a second part of this idea would be to put anki notes revision history into a git controlled repo as well.

Does ki provide any workflow to be able to export from anki and put one's revision history in a git repo as well?

langfield commented 1 month ago

No, it is intentionally unsupported. Revision history is more-or-less linear and Anki already does an excellent job of resolving conflicts and making backups. Ki is for things that you edit manually.


From: parrotcar00 @.> Sent: Sunday, October 20, 2024 12:29:34 PM To: langfield/ki @.> Cc: Subscribed @.***> Subject: [langfield/ki] Can you put anki notes revision history in a git repo with ki? (Issue #176)

Being able to put one's anki notes in a git controlled repo is a great idea. But a second part of this idea would be to put anki notes revision history into a git controlled repo as well. Does ki provide any workflow to be able to export from

Being able to put one's anki notes in a git controlled repo is a great idea. But a second part of this idea would be to put anki notes revision history into a git controlled repo as well.

Does ki provide any workflow to be able to export from anki and put one's revision history in a git repo as well?

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/langfield/ki/issues/176__;!!KGKeukY!z7ZTGKdeZk6bznGRRogVh7Gnz8kijk-eXhEpV4R9_cHcS5SC91H3hH7-QXASinSXCGRjsVqz8TFzQazX8xGlCeYrGAqpiA$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AISQNIZMLNJZIAVVJPPQPITZ4PK65AVCNFSM6AAAAABQIVCNSOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGYYDANRSGYYDENA__;!!KGKeukY!z7ZTGKdeZk6bznGRRogVh7Gnz8kijk-eXhEpV4R9_cHcS5SC91H3hH7-QXASinSXCGRjsVqz8TFzQazX8xGlCeZ6PUSRlw$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

parrotcar00 commented 1 month ago

Having my anki notes in a git repo frees me from any fear of anything weird that Anki gui might do to my notes. Since I can see my git repo, my notes will be safe from any unforeseen actions by the anki gui.

If I could put my notes revision history into a git repo, it would free me of similar fear for my revision history.

While it's true that there is no need to collaborate on one's revision history of notes, simply putting them into a git repo still does provide the benefit of safeguarding the data IMO.

Just wanted to point out my usecase that I had in my mind when thinking about this issue, just my $0.02.

Thanks for the wonderful work with ki!

langfield commented 1 month ago

A git repo is not really any more "visible" than Anki's database format. The sqlite3 schema is sensibly laid-out and you can generate a dump much more easily than the process that's required to marshall things into a git repo in Ki. There are even extant tools for diffing database files.

IMO the data is a lot safer in Anki than it is during the conversion to and from the git repo format in Ki. You have no guarantee that what you see in the repository is what is actually overwritten onto the sqlite file. Your only evidence that it's doing what it says it's doing is from manual inspection of the tests, manual inspection of the logic itself, or appeal to the size of the userbase. Obviously, Anki's userbase is several orders of magnitude larger than that of this tool.


From: parrotcar00 @.> Sent: Sunday, October 20, 2024 1:05:41 PM To: langfield/ki @.> Cc: langfield @.>; Comment @.> Subject: Re: [langfield/ki] Can you put anki notes revision history in a git repo with ki? (Issue #176)

Having my anki notes in a git repo frees me from any fear of anything weird that Anki gui might do to my notes. Since I can see my git repo, my notes will be safe from any unforeseen actions by the anki gui. If I could put my notes revision

Having my anki notes in a git repo frees me from any fear of anything weird that Anki gui might do to my notes. Since I can see my git repo, my notes will be safe from any unforeseen actions by the anki gui.

If I could put my notes revision history into a git repo, it would free me of similar fear for my revision history.

While it's true that there is no need to collaborate on one's revision history of notes, simply putting them into a git repo still does provide the benefit of safeguarding the data IMO.

Just wanted to point out my usecase that I had in my mind when thinking about this issue, just my $0.02.

Thanks for the wonderful work with ki!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/langfield/ki/issues/176*issuecomment-2425126750__;Iw!!KGKeukY!zf6j1cm4x00eU7Z5904r5qhtoPc6SJfdqXEesqS_l07v1io1jAH9w40YeIAp16vLq9Z3KBl-SMt5BiityhVP9TrcwXM84A$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AISQNI2FGPESRVLRWYPQ6PLZ4PPGLAVCNFSM6AAAAABQIVCNSOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRVGEZDMNZVGA__;!!KGKeukY!zf6j1cm4x00eU7Z5904r5qhtoPc6SJfdqXEesqS_l07v1io1jAH9w40YeIAp16vLq9Z3KBl-SMt5BiityhVP9TpSHdzTTw$. You are receiving this because you commented.Message ID: @.***>