git-animate

Vim keystroke timelapse generator
git clone https://git.mitxela.com/git-animate.git
Log | Files | Refs | README

Branches

Name Last commit date Author
master2018-12-06 05:01:34 +0000mitxela

File Tree (HEAD)

Name Size
README.md1.024K
playback.py1.659K
process.py706B

History

* 16d400a (HEAD -> master) mitxela 2018-12-06 03:40 Initial commit

Contents of README.md:

git-animate

Reads through a git repo and turns each commit into a series of vim keystrokes. The result is a pseudo-timelapse which almost looks like it's being typed out by a real person. Results vary depending on how frequent the commits were. It's also still only doing linewise diffs, so even a single byte change means the whole line is re-typed.

Only works on a single file. If the repo has multiple files being changed in it, you will probably need to alter this script to filter out the one you want. It is a good idea to rebase any merge commits so that the history reads as if it was written by a single author.

pip install git whatthepatch keyboard

process.py reads the git history and outputs the patches as a list of tuples representing changes. E.g. python process.py > allpatches.txt

playback.py reads the patches file and turns it into keystrokes. Run the script and then focus on a new terminal window. Hold esc to abort.

These scripts were used to produce this video.