Merging Changes

Diffoniq is not only a viewer. In a text file comparison you can take lines from one side over to the other and write the result back to disk — which is how you resolve the differences you have just looked at.

Copying an area onto the other side

  1. Mark the lines you want to take over. Click or drag with the left mouse button on the side you want to copy from; the marked area is highlighted. See Mouse Operations.
  2. Drag the marked area to the other pane. Press the left button on the marking again and move the mouse across the separator. The mouse cursor shows whether the drop is accepted there.
  3. Release the button. The marked lines replace the corresponding lines on the other side.

Two things are worth knowing about the result:

Where merging is possible

Merging is available in text file comparisons. The side that receives the lines has to be writable — the side you drag from does not:

Through the clipboard instead

The same area can travel through the Windows clipboard: Copy puts the marked lines there, Paste replaces a marked area with the clipboard contents, and Clear marks the area as deleted. Use this to move text between two Diffoniq windows or in from another program.

Making it permanent

All of this happens in memory first. A line changed by a merge is marked with a + next to its line number, and an asterisk appears in front of the file name in that pane's header. Nothing is written until you choose Save Modifications (Ctrl+S).

Every step can be taken back with Undo (Ctrl+Z) and reapplied with Redo (Ctrl+Y), as long as the comparison is not reloaded.