@@ -4,27 +4,37 @@ source "%val{runtime}/rc/tools/git.kak"
44
55define-command run %{
66 try %{
7+ echo -end-of-line -to-file /dev/stderr %sh{ ls -l fifo 2>&1 }
78 git init
89 git add
910 git commit --message 'initial commit'
1011 execute-keys %{2gIchanged <esc>}
12+ echo -end-of-line -to-file /dev/stderr "writing"
1113 write
1214 git commit --all --message 'changed line 2'
15+ echo -end-of-line -to-file /dev/stderr "commit done"
1316 # Show the commit, jumping to the new version of line 2.
1417 git blame-jump
18+ echo -end-of-line -to-file /dev/stderr "blame done"
1519 hook -once buffer BufCloseFifo .* %{
20+ echo -end-of-line -to-file /dev/stderr "buf close fifo"
1621 evaluate-commands -client client0 %{
1722 # We've jumped to the new version of line 2. Move to the old
1823 # version so we can annotate the old version of the file.
1924 execute-keys k
25+ echo -end-of-line -to-file /dev/stderr "pre 2nd blame"
2026 git blame
27+ echo -end-of-line -to-file /dev/stderr "post 2nd blame"
2128 hook -once buffer BufCloseFifo .* %{
22- execute-keys -client client0 x
2329 # Wait for a redraw before reporting completion.
2430 hook -once buffer NormalIdle .* %{
31+ echo -end-of-line -to-file /dev/stderr "NormalIdle hook"
2532 echo -to-file fifo
2633 }
34+ execute-keys -client client0 x
35+ echo -end-of-line -to-file /dev/stderr "NormalIdle install"
2736 }
37+ echo -end-of-line -to-file /dev/stderr "hook installed"
2838 }
2939 }
3040 } catch %{
0 commit comments