Stvad / CrowdAnki

Plugin for Anki SRS designed to facilitate cooperation on creation of notes and decks.
MIT License
536 stars 43 forks source link

Enhancement: deck diff viewer / merging tool #165

Open moltencrux opened 2 years ago

moltencrux commented 2 years ago

I was thinking that it would be a really great tool for deck collaboration if there was some kind of tool to view at a glance the differences between two similar decks much like meld or other source code diff viewers. There could be one split screen to view differences on a deck level, something analogous to the directory level view: Screenshot from 2022-03-13 22-09-19 Then there would be the split screen view for card level differences, analogous to the file content diff: Screenshot from 2022-03-13 22-10-57

I realize something like this could potentially be a lot of work, especially if you wanted to do syntax highlighting or the differences between two HTML documents, however just the ability to view two cards side by side when choosing what changes to accept by the deck maintainer would be very powerful.

Also, if it were implemented as a standalone utility, the deck level differences would be made much simpler if CrowdAnki had the ability to store notes in individual files as previously proposed by EtzBetz in #163 .

ohare93 commented 2 years ago

Also, if it were implemented as a standalone utility, the deck level differences would be made much simpler if CrowdAnki had the ability to store notes in individual files as previously proposed by EtzBetz in https://github.com/Stvad/CrowdAnki/issues/163 .

Fully agreed. Splitting CrowdAnki exports into a whole folder would be fantastic. My comparison tool of choice is Beyond Compare :+1:

aplaice commented 2 years ago

Yeah, I fully agree that a nice, easy-to-integrate diff/merge tool would be lovely!

I (still..) haven't actually tried it, but there already is a tool that is supposed to more-or-less fulfil that role:

https://gitlab.com/dodod/crowdanki-diff

(When I had briefly glanced at it a while ago, it looked great.)

See also: https://github.com/Stvad/CrowdAnki/issues/75