mtekman / org-tanglesync.el

A package to pull external changes into an org-mode source block if that block is tangled to an external file
GNU General Public License v3.0
90 stars 7 forks source link

Add live demo #1

Closed mtekman closed 5 years ago

mtekman commented 5 years ago

ezgif-2-f2d9f13ff3a6

mtekman commented 4 years ago

test

mtekman commented 4 years ago

Method:

recordmydesktop --windowid 0x160013f --no-sound
ffmpeg -i out-1.ogv -ss 1 -t 43 test.gif
mtekman commented 4 years ago

as per alphapapa request, I've sped up the screencast a little.

together

alphapapa commented 4 years ago

That is a big improvement. :)

BTW, here's a tool that makes recording screencasts easy: https://github.com/alphapapa/bashcaster

But for recording within Emacs (i.e. when you're only showing Emacs), you should generally use gif-screencast. It's on MELPA. Here's an example of a script I wrote to perform a demo in Emacs (I got tired of re-enacting the sequence of events): https://github.com/alphapapa/org-ql/blob/master/images/demo-helm-org-ql.sh

See also https://github.com/alphapapa/emacs-package-dev-handbook#animations--screencasts

mtekman commented 4 years ago

wow nice, I just gave them a go -- definitely much smaller sizes and better quality.

I really do like the one-action-one-screenshot ethos

mtekman commented 4 years ago

Added gif-screencast

output22

#!/bin/bash

wid=0xa0013f
type="xdotool type --window $wid --delay 70"
quick="xdotool type --window $wid --delay 10"
press="xdotool key --window $wid"

xdotool key "Hyper_L+Up"
$press "ctrl+F9"
sleep 4
$press "Return"
$press "Up"
$type "I can write into the ~/.xinitrc file in this buffer here,"
$press "Return"
sleep 0.1
$type "and when I save my changes,"
sleep 0.2
$type " they will be synced back into"
$press "Return"
$type "the tangled src block in the original org buffer."
$press "Return"; $type "3"; sleep 0.7;
$press "space"; $type "2"; sleep 0.7;
$press "space"; $type "1"; sleep 0.7;
$press "space"; $quick ": C-x C-s";
$press "ctrl+x"; $press "ctrl+s";
$press "space"; $press "BackSpace";
$press "ctrl+x"; $press "ctrl+s";
sleep 3
$press "ctrl+space"
$press "ctrl+a"; sleep 0.5;
$press "Up"; sleep 0.1;
$press "Up"; sleep 0.2;
$press "Up"; sleep 0.1;
$press "Delete";
$press "Delete";
sleep 0.5
$press "ctrl+x"; $press "ctrl+s";
$press "space"; $press "BackSpace";
$press "ctrl+x"; $press "ctrl+s";
sleep 2
$type "pretty neat,"; sleep 0.1; $type " huh."
$press "Return";
$press "ctrl+x"; $press "ctrl+s";
$press "space"; $press "BackSpace";
$press "ctrl+x"; $press "ctrl+s";
sleep 2
$press "F9"