3 ms·
I personally am much more excited by “sliders” than the structure-aware diffs. Marking additions between [], it is the difference between e.g. handle_case [s
by dan-robertson 5y ago
I personally am much more excited by “sliders” than the structure-aware diffs. Marking additions between [], it is the difference between e.g.
handle_case [some new
case over multiple lines
handle_case] some existing case
[ check_invariant();
}
function newFunc(){
...
] check_invariant();
}
And
[handle_case some
new case]
handle_case old case
[function newFunc(){
...
check_invariant();
}]
- Wilfred 5y agoI agree sliders are a problem, and I hope to have a solution there. Syntactic differs already do better because they understand that parentheses/brackets are paired. Difftastic does OK with this example: https://imgur.com/a/pVlVBo5 https://imgur.com/a/pVlVBo5
- dan-robertson 5y agoYeah I’m keen to see your solution. FWIW, the formatting of the snippets I wrote above was as two separate diffs for additions with the new additions (ie green parts) represented with [square brackets].