CrowdAnki icon indicating copy to clipboard operation
CrowdAnki copied to clipboard

Enhancement: deck diff viewer / merging tool

Open moltencrux opened this issue 3 years ago • 2 comments

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 .

moltencrux avatar Mar 14 '22 02:03 moltencrux

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:

ohare93 avatar Mar 14 '22 05:03 ohare93

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

aplaice avatar Mar 14 '22 14:03 aplaice