Compare not saved data / files

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

Compare not saved data / files

Postby hveld » Tue May 24, 2005 7:39 am

Hi,

I very often need to compare something I pasted from the clipboard with an existing file, or just to compare two pieces of text I pasted from the clipboard.
However, UE (or Ultra-compare light that comes with it) can only compare *files saved to disk*. It's quite annoying and time-consuming to have to save something in order to be able to use the compare function.

Is there any way (macro or alike) that allows to use the compare function without having to save to disk first?

If this is not possible, consider it a feature request. It should be pretty easy to automatically make a temp file for the purposes of comparison, if this is really needed (I'm sure it's not).
User avatar
hveld
Basic User
Basic User
 
Posts: 42
Joined: Tue Nov 16, 2004 12:00 am

Re: Compare not saved data / files

Postby Mofi » Tue May 24, 2005 9:34 am

RAM content cannot be compared. (How should UE transfer the content to the UC with only 1 clipboard?). The files must be saved first.

Record a macro by yourself, with simply stores the 2 opened new files with default names in windows temp directory. Here is an example:

InsertMode
ColumnModeOff
HexOff
UnixReOff
IfNameIs ""
SaveAs "C:\Windows\Temp\MyCompare2.tmp"
EndIf
PreviousWindow
IfNameIs ""
SaveAs "C:\Windows\Temp\MyCompare1.tmp"
EndIf

IfNameIs "" makes sure, that only not named (new) files are saved.

Run your compare. Then leave the files there, because you use it often, or delete it with File - Special Functions - Delete Active File. You can assign a hotkey for this function, i.e. Alt+Del.

Edit: UltraCompare Professional v6.00 and later supports comparing memory buffers (not saved data).
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Compare not saved data / files

Postby jhook » Wed Nov 15, 2006 6:09 pm

I have UltraEdit 12.20a+2 and UltraEdit pro v. 4.10a installed.

Is it possible to compare 2 windows from within UltraEdit without first saving them to a files? If so, how?

I had a situation where I copied data from a couple of terminal sessions and pasted into new UE windows. I never saved them to files because I didn't need the data permanently. I thought I should be able to do a compare on those two windows, but I couldn't find the proper option.

John
User avatar
jhook
Newbie
 
Posts: 2
Joined: Wed Nov 15, 2006 12:00 am

Re: Compare not saved data / files

Postby fgeurts » Wed Nov 15, 2006 11:48 pm

I often open up a couple of files via FTP from an MVS (mainframe) system and then click the UC button on the toolbar to invoke UC Pro 4.1. The temporary files are loaded and displayed in UC Pro without any problem. And if I merge any changes and then go back to UE/S it also reloads the changed temporary file without any problem.

Cheers...

Frank
User avatar
fgeurts
Advanced User
Advanced User
 
Posts: 59
Joined: Sun Feb 20, 2005 12:00 am
Location: Brisbane, Australia

Re: Compare not saved data / files

Postby Mofi » Thu Nov 16, 2006 8:18 am

jhook: Please see my post at top of the now merged threads and maybe also Macro to save new files?

Yes, UC Lite does not support FTP file compare - see UltraCompare Professional vs. Lite.

Edit: UltraCompare Professional v6.00 and later supports comparing memory buffers (not saved data).
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4039
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Compare not saved data / files

Postby jhook » Thu Nov 16, 2006 11:57 am

Thanks for your suggestion Mofi. I'll give it a try.

Still, it would be nice if UC could do a direct compare on 2 window buffers. Maybe in the future.
User avatar
jhook
Newbie
 
Posts: 2
Joined: Wed Nov 15, 2006 12:00 am


Return to UltraEdit General Discussion

cron