UDC with WinMerge?

Features wanted...
Post Reply
avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

UDC with WinMerge?

Post by avsfan »

I often will use WinMerge to compare two files. My standard method of doing this is to select the two files, right-click, wait 3-5 seconds for the context menu to appear, locate WinMerge in the context menu, and then click it.

Since I didn't like waiting for the context menu, I started experimenting with a user-defined command to launch WinMerge. I just put the path to the WinMerge executable in the Argument field, and it launches just fine.

The problem is that when two files are selected, only one of them gets passed to WinMerge (so I then have to identify which one, select the other one, and drag it into WinMerge).

As WinMerge will just accept two files as command-line arguments, is there something that I can configure to make this work? If two files are selected, do both of them get passed to the UDC?

This is probably an easy fix, and I'm just missing it -- any ideas?

thanks!

andy

admin
Site Admin
Posts: 66258
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: UDC with WinMerge?

Post by admin »

I'm currently meditating exactly about this. Although I try to keep things as easy as possible, I'll probably add another field/dropdown called "Parameter" or "Options" (or so) to the command properties below "Argument" where you can add/select things like this. In your case you would have the choice between:
- single instance (what you want)
- multi instance (how it goes now)

Gandolf

Re: UDC with WinMerge?

Post by Gandolf »

avsfan wrote:I often will use WinMerge to compare two files....
But surely WinMerge does what you want already.

I have two entries in the context menu - "Compare to" and "Compare...". "Compare to" changes to "Re-select first" after the first file is selected.

Select the first file with "Compare to..." and then the second file with "Compare". WinMerge opens and does the comparison.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: UDC with WinMerge?

Post by jacky »

admin wrote:I'm currently meditating exactly about this. Although I try to keep things as easy as possible, I'll probably add another field/dropdown called "Parameter" or "Options" (or so) to the command properties below "Argument" where you can add/select things like this. In your case you would have the choice between:
- single instance (what you want)
- multi instance (how it goes now)
Sounds good! And will there be the same on Catalog?
Proud XYplorer Fanatic

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: UDC with WinMerge?

Post by avsfan »

Gandolf wrote:
avsfan wrote:I often will use WinMerge to compare two files....
But surely WinMerge does what you want already.

I have two entries in the context menu - "Compare to" and "Compare...". "Compare to" changes to "Re-select first" after the first file is selected.

Select the first file with "Compare to..." and then the second file with "Compare". WinMerge opens and does the comparison.
In my setup, I just have just a single "WinMerge" context menu entry. However, since the delay for the context menu to open is what I'm trying to avoid, having the context menu items that you mention would add even more delay. I just want to select the two files and hit a key combination that will automatically call "winmerge file1 file2" -- the current context menu works as desired, with the only problem being the 3-5 second wait for the context menu to appear i.e., the context menu is what causes the delay...

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: UDC with WinMerge?

Post by avsfan »

admin wrote:I'm currently meditating exactly about this. Although I try to keep things as easy as possible, I'll probably add another field/dropdown called "Parameter" or "Options" (or so) to the command properties below "Argument" where you can add/select things like this. In your case you would have the choice between:
- single instance (what you want)
- multi instance (how it goes now)
Ah, Ok. So what's happening now is that it's not using both files as command-line option to a single command, but rather executing two commands, each with one of the files... Yes, the "single instance" option sounds like the perfect solution!

Gandolf

Re: UDC with WinMerge?

Post by Gandolf »

avsfan wrote:...However, since the delay for the context menu to open is what I'm trying to avoid...
Is your context menu very large or contains entries to programs that no longer exist? I have a large context menu, with many sub-menus, and it open instantly.

Post Reply