Browsing differences of 2 (or 3) directories
Hi :-)
Currently, we can browse differences of a file by block, with Alt-Up/Down
.
When I review the code before commit, I would like to browse all the differences of the 2 directories with keyboard shortcuts like Alt-Up/Down/Right/Left
, please. :-) (Please choose a key-modifier that I can find on the right of the keyboard, so I'd be able to browse using a single hand.)
Alt-Right/Left
would allow to change the focus:
- files being different
- differences of a file by block
- differences of a block by inline differences.
Copying differences from a file to the other could be done by adding a key-modifier to the previous keyboard shortcuts, for example Ctrl-Alt-Right/Left
.
Then, if we start at the top of a directory comparison:
-
Alt-Down
: go to the next file -
Alt-Right
: go to the 1st block in the current file -
Alt-Down
: go to the next block -
Ctrl-Alt-Right
: Copy the current block from the left file to the right file -
Alt-Down
: go to the next block -
Alt-Right
: go to the 1st inline in the current block -
Alt-Down
: go to the next inline -
Ctrl-Alt-Right
: Copy the current inline from the left file to the right file -
Alt-Left
: come back to the current block -
Alt-Left
: come back to the current file
The view which I imagine is:
- 3/4 top: current file comparison
- 1/4 bottom: directory comparison
Edited by Thomas