Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve Deck Edit history #37

Closed
Stvad opened this issue Feb 16, 2019 · 4 comments
Closed

Preserve Deck Edit history #37

Stvad opened this issue Feb 16, 2019 · 4 comments

Comments

@Stvad
Copy link
Owner

Stvad commented Feb 16, 2019

The idea would be to do have the git repo (not sure if for the whole collection/top level deck/more granular - potentially can be configurable)
And on each edit (adding, removing notes, changing options, etc) - make an automated export and commit (and optionally push to origin).
Alternatively it can be performed on the regular intervals (e.g. every 5 min), but the change hook feels more meaningful to me (regular push to origin makes sense to me though).

Having git repo would open the route to further enhancements

@Stvad
Copy link
Owner Author

Stvad commented Feb 23, 2019

Pure Python implementation of Git: https://github.com/dulwich/dulwich - can bundle this, so people don't have to install git separately. Would be nice if it provided same interface as GitPython, so people can do performance boost optionally

@Stvad Stvad changed the title Preserved Deck Edit's history Preserve Deck Edit history Feb 23, 2019
@Stvad
Copy link
Owner Author

Stvad commented Feb 23, 2019

Specifically this can help with #2 #36

@Stvad
Copy link
Owner Author

Stvad commented Feb 23, 2019

The most annoying part about Anki's packaging is this https://apps.ankiweb.net/docs/addons.html#standard-modules which would likely require me to copy things from standard lib again :(

@Stvad Stvad added in-progress and removed planned labels Feb 26, 2019
@Stvad
Copy link
Owner Author

Stvad commented Mar 9, 2019

Implemented an initial version in 0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant