diff options
Diffstat (limited to 'test/snapshots/diffview.snap')
| -rw-r--r-- | test/snapshots/diffview.snap | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/test/snapshots/diffview.snap b/test/snapshots/diffview.snap index b5900db9..23d060b7 100644 --- a/test/snapshots/diffview.snap +++ b/test/snapshots/diffview.snap @@ -1,7 +1,9 @@ # A diff pane, for reviewing a change: each hunk's code coloured as Zig (a # multi-line string over three lines, `defer` inside it no keyword), added and # removed rows tinted to the pane's edge with their prefix in the tint's hue, -# headers muted. +# headers muted. Then a right click on an added line's `+` opens the new file +# at that line: the path is the repository's (a `.git` above the diff), b/ +# dropped. dirmk .git dirmk src file src/shape.zig const std = @import("std");\n\npub const Shape = union(enum) {\n circle: f32,\n square: f32,\n triangle: struct { base: f32, height: f32 },\n\n const note =\n \\\\areas, defer\n \\\\summed\n ;\n};\n @@ -11,9 +13,13 @@ wait 8000 Newcol Joincol stable 700 20000 snap diff-pane snapstyle diff-colours +press right 8 15 +release right 8 15 +stable 700 15000 +snap look-added-line # The same diff printed by a command (`git diff`, here `cat`) into a command # pane: its output is told for a diff and coloured the same, over the colours -# the program printed. +# the program printed, and a right click on a `+` there opens the file too. file cmds.txt cat change.diff\n start 31 100 cmds.txt wait 8000 cmds.txt @@ -25,3 +31,7 @@ wait 10000 exit 0 stable 700 15000 snap command-pane snapstyle command-colours +press right 3 21 +release right 3 21 +stable 700 15000 +snap command-look |
