How to use kdiff3 to edit when comparing two files

I’m used to meld for editing while seeing an intra-line diff that’s updated live in response to edits. One just types in the left or right pane of the window and then save one or both files.

I’m trying to use kdiff3 for the same purpose. I believe it does support live edits in the same style as meld, but I can’t figure out how to edit. Both left and right panes show differences how I expect, but appear to be non-editable: if I click on them I see no cursor, and typing has no effect. I’ve explored the menus and command line options and can’t seem to find the right option.

Here’s how I’m running it:

kdiff3 ~/left_file.txt ~/right_file.txt

How can I use it to edit these files while viewing a live comparison?

Asked By: Croad Langshan


Being stated that I would personally prefer kompare (latest update
2023-12-07) to kdiff3 (last version 2014-07-04) when looking for some diff utility well integrated to the kde-plasma desktop applications (dolphin in particular) unless still using kde4.


AFAIK meld displays only 2 panes, one for each diffed file, each one enabling edition.

Since, above only diffing, merging is the primary goal of the project

KDiff3 started because I had to do a difficult merge.

kdiff3 uses a dedicated extra pane and editing facilities are only available into that Merge Output Editor Window.

Answered By: MC68020
Categories: Answers Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.