Meld is very useful for programming work

I have been editing some R code .
I work in a temporary copy, in an R workspace.
I have some modifications ready… I want to add them to the new version, but I cant simply copy in the .R files, because my temporary workspace is out of date.
So I have to re-edit all the changes into the new version’s files.
Here is how

You can see my workspace screeen with a terminal for editing the new version on the left.
On the right top you see a meld screen, comparing the new version file with the temporary workspace file.
The other terminal window is the command that started meld.

There are 4 new lines to be added, plus one line to be edited.
Easy… and that way I do not miss anything…it even gives me the line numbers for vi , so I dont have to search.
I can even copy/paste straight from the meld screen into vi.
When finished , I can run meld again to check they are the same.

I know people have IDE’s for this sort of thing, but I like simple methods where I know what is going on.

Here is a more complicated example

It makes merging in changes almost foolproof… although undoubtedly I will find a way to mess it up.

7 Likes

I like meld. I use it to manage some configuration files in Garuda following an update (I momentarily forget the file extension). Essentially, meld displays both the old and new versions of a configuration file (the new one is the one with the file extension I can’t remember just now), highlighting any differences, so I can choose which version I want to keep for each difference. It’s a great tool.

Ernie

4 Likes

Yes, it is of broader use than for comparing source code files.
It will compare the contents of directories too.

3 Likes