byteclubfr / copycast

Live remote copy-pasta explorer for training sessions
39 stars 0 forks source link

add diff with time travel #16

Open Delapouite opened 8 years ago

Delapouite commented 8 years ago

Kind of implemented in https://github.com/byteclubfr/copycast/commit/3cee2fcb5a061506928f8dd08f3983602bffd20a

But not really the optimal solution.

The socket emits the full tree at each change. We keep the last 5 received client side. A slider on the top right of the screen let the user go back in time or keep synchronized with last revision.

naholyr commented 6 years ago

We may store versions based on datetime instead of a count, whenever the trainer presses Ctrl+S every half second :P

Maybe even regroup close changes into one single change.