1

I am trying to create a custom tool in TextPad to call the Tortoise SVN merge tool.

If I have two files open in TextPad, I want to diff them with TortoiseMerge by going to Tools -> TortoiseMerge in TextPad. I don't want to have to manually add any file paths, I want these to be picked up via TextPad.

I am having trouble with the parameters for the tool, here is what I have:

Command: C:\Program Files\TortoiseSVN\bin\TortoiseMerge.exe
Parameters: $File $File
Initial folder: $FileDir

This successfully diffs the same file - is there any means of getting the path to the other open file .. a similar $File variable or some other means..?

Many thanks.

1 Answers1

0

I wanted this too, but it doesn't seem to be possible in one step.

Instead, I setup two simple tools:

  1. ctrl-1 copy $file C:\temp\temp1.txt
  2. ctrl-2 TortoiseMerge $file C:\temp\temp1.txt

So you select the first file and hit ctrl-1, then switch to the second file and hit ctrl-2.