any 3:2 multi-map group: any pairing of the 3 with the 2 is valid, one is shown
all 3:1 all-to-all group: each of the 3 corresponds to the 1
inserted
deleted
updated
moved
click a highlight to reveal its counterpart
Requires N:M multi-map to solve perfectly
This mapping has 7 all-to-all groups: every node on one side corresponds to every node on the other, and none is deleted or inserted. Each member carries an all N:M badge; selecting one highlights all of its counterparts, in the tree and in the code view alike.
Code view:
A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.
Before
1fn main() {
2foo();
3 foo();
4foo();
5 bar();
6}
7
After
1fn main() {
2 bar();
3foo();
4 foo();
5}
6
Before
1fn main() {
2foo();
3foo();
4foo();
5bar();
6}
7
After
1fn main() {
2bar();
3foo();
4foo();
5}
6
Before
1fn main() {
2 foo();
3 foo();
4 foo();
5 bar();
6}
7
After
1fn main() {
2 bar();
3 foo();
4 foo();
5}
6
Before
source_filefunction_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
expression_statement all 3:2call_expression all 3:2
identifier "foo" all 3:2
arguments all 3:2
( "(" all 3:2
) ")" all 3:2
; ";" all 3:2
expression_statement all 3:2call_expression all 3:2
identifier "foo" all 3:2
arguments all 3:2
( "(" all 3:2
) ")" all 3:2
; ";" all 3:2
expression_statement all 3:2call_expression all 3:2
identifier "foo" all 3:2
arguments all 3:2
( "(" all 3:2
) ")" all 3:2
; ";" all 3:2
expression_statementcall_expression
identifier "bar"
arguments
( "("
) ")"
; ";"
} "}"
After
source_filefunction_item
fn "fn"
identifier "main"
parameters
( "("
) ")"
block
{ "{"
expression_statementcall_expression
identifier "bar"
arguments
( "("
) ")"
; ";"
expression_statement all 3:2call_expression all 3:2
identifier "foo" all 3:2
arguments all 3:2
( "(" all 3:2
) ")" all 3:2
; ";" all 3:2
expression_statement all 3:2call_expression all 3:2
identifier "foo" all 3:2
arguments all 3:2
( "(" all 3:2
) ")" all 3:2
; ";" all 3:2
} "}"
Keybindings
j / k
next / previous visible node (tree panels)
h / l
collapse / expand the focused node
g / G
jump to first / last visible node
Tab
switch focus between Before/After panels
/
search: jump to next node whose text contains a given string
a
jump the other panel to this node's mapped counterpart
i
hide identical matches, showing only inserted/deleted/updated nodes and their ancestors
v
cycle the view: split / code only / tree only
p
cycle what the code view renders: the node mapping, then each human painting
r
mark this fixture as reviewed, or forget the mark (kept in this browser only)