Tapatalk

Compare not saved data / files

Compare not saved data / files

40
Basic UserBasic User
40

    May 24, 2005#1

    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).

    6,685587
    Grand MasterGrand Master
    6,685587

      May 24, 2005#2

      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).
      Best regards from an UC/UE/UES for Windows user from Austria

      2
      NewbieNewbie
      2

        Nov 15, 2006#3

        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

        10211
        Power UserPower User
        10211

          Nov 16, 2006#4

          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

          6,685587
          Grand MasterGrand Master
          6,685587

            Nov 16, 2006#5

            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).
            Best regards from an UC/UE/UES for Windows user from Austria

            2
            NewbieNewbie
            2

              Nov 16, 2006#6

              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.