Welcome to the IDM Forum. This forum is meant as a user-to-user support mechanism where users can share knowledge and tips for all IDM software.
Since these forums are user-to-user based, IDM does not regularly read or reply to the posts in this forum. For problem reports, suggestions, or feature requests, you must email us directly. Our trained technical support staff answers most inquiries within 30 minutes.


Mofi wrote:The display updates during script and macro execution is a problem and makes them slower. But there are no commands to disable/enable the display updates. That's the reason why I try to write scripts in a manner to avoid display updates as much as possible by doing as much as possible with core objects and methods in memory and write to document as less as possible. Using Replace All command avoids also lots of display updates.
Mofi wrote:Another common method to avoid display updates on script execution is to determine at script start the index of active document in the documents array, then open a new file which becomes active document, but work with the script on the document with the before determined document index. At end of script this document is set active again and the new file is closed without saving it. If the document windows are maximized, this workaround helps to avoid unnecessary display updates during script execution.
Mofi wrote:You have modified the text of the dialog displayed at startup, so I can't really help you. I suppose the dialog is showing you that the installer is running to repair the installation of UltraEdit. UltraEdit is installed with MSI (Microsoft Installer). And the MSI service running in background checks for every application installed with MSI if all files installed by the installer (all files in program files directory of UltraEdit) are present and runs a repair if a file is missing. So I think you have manually deleted a file in the program files directory and its subdirectories and the installer wants to repair it. Let MSI do the repair or run manually a repair of UltraEdit installation via Control Panel and you should not see this dialog again.
Mofi wrote:BTW: You can upload *.png (best for screen shots) and *.jpg files directly to the board. Only other file types must be packed with ZIP or RAR.

rhapdog wrote:Seriously, we should all write in a feature request that there be made available both macro and script commands to pause/resume display updates. This is actually one reason I use PHP as a scripting language that I execute against a file, configured as a UE tool, where it prompts me for the PHP script to use. I can only do that if I don't need the UE application object. I can write to the file directly to the disk, and have UE "update" the file when it detects it has been changed on disk. So much faster for me. But I'd probably still use PHP where I can, since it is my primary programming language that I use the most often right now.

johnnyc wrote:I used Kedit for massaging massive amoounts of data. (Usually somewhat corrupted data from customers that I am trying to make some sense of. These are truely one time jobs and not worth the time to even write a Perl script for.
johnnyc wrote:Most of the time in Kedit I used ALL, MORE, LESS, RANGE amd varopis regex expressions to limit/edit the domain of records I was editing. I cannot find anywhere equivalent commands. Basically, I don't want anything "Hidden" to be within the scope of Find, Search, Replace and Delete commands.

johnnyc wrote:Can you guys give me a quick hand on Kedit equivalent commands? I am totally new to UES and am a bit confused. (By the way, I think you guys are probably "spring chickens" compared to me, since I worked on my first computer in 1957).
johnnyc wrote:I used Kedit for massaging massive amounts of data. (Usually somewhat corrupted data from customers that I am trying to make some sense of. These are truely one time jobs and not worth the time to even write a Perl script for.
Most of the time in Kedit I used ALL, MORE, LESS, RANGE and various regex expressions to limit/edit the domain of records I was editing. I cannot find anywhere equivalent commands. Basically, I don't want anything "Hidden" to be within the scope of Find, Search, Replace and Delete commands.

rhapdog wrote:Second, you need to change your mindset. That will be required to update to any modern editor or IDE. The way Kedit had to work back in its day is completely different from how modern editors work, simply because of the hardware limitations of the day. ALL, MORE, LESS, RANGE were all implemented because data often would not fit into memory, so only a piece of it could be worked on at a time.
rhapdog wrote:The additional reason ALL, MORE, LESS, and RANGE were implemented was as a make-shift "selection" area of the data when you only want to work with a specific section. Kedit called them RANGEs, other editors called them other things, like blocks. Working with tools provided from IBM, the editor I started with used blocks instead of ranges. Same thing.
2012-03-01 12:00:00 SRC1 DST1 29 19 88 19 A7 89 98 23 23 98 38 CRC=0xf2ad
2012-03-01 12:00:20 SRC1 DST1 29 19 88 19 A7 90 9A 23 24 98 38 CRC=0xd801
2012-03-01 12:00:20 SRC4 DST3 29 19 88 19 A7 90 9A 23 24 98 38 CRC=0xa9b1
2012-03-01 12:00:40 SRC1 DST1 29 19 88 19 A7 91 9A 23 24 98 38 CRC=0xc871
...
2012-03-14 20:00:00 SRC1 DST1 29 19 88 19 A7 33 98 23 23 98 38 CRC=0x092c
2012-03-14 20:00:20 SRC1 DST1 29 19 88 19 A7 34 9A 23 24 98 38 CRC=0xd8d1
2012-03-14 20:00:40 SRC1 DST1 29 19 88 19 A7 35 9A 23 24 98 38 CRC=0x2138ALL /2012-03-08 02/
MORE /2012-03-08 03:0/
ZONE 55 56
LESS ~/23/
ZONE 1 *
MORE /2012-03-11 05:/
ZONE 55 56
LESS ~/24/Let's not start getting confused. Perl Scripts, while they can technically be used, are not a part of the integration of UltraEdit as UE's scripting language. It uses JavaScript. But that's beside the point, since it wouldn't be worth writing any script from what you are saying. UE can use Perl Regular expressions, however, which might be what you are looking for in find/replace situations.
ALL, MORE, LESS, and RANGE are obsolete, because you don't need to "load" part of the file for viewing, because the entire file is available for editing and find/replace at once. If you decide you want to do a find/replace on a sub-set of the file, then "select" a range, and tell the find/replace to operate on that selection only. RANGE has been replaced by Selected Text.
Now, since you say you don't want anything "Hidden" to be within the scope of your operations, then you can easily perform those operations on "selected" text.


Ah, yes. Well, as I have always used the editors only for computer programming, I have never used these features in such a way as you describe. I see where it can definitely be useful, however.
There have been times when I needed to process data like that. Back in 1995 - 1998. I would simply write a small Pascal program to manipulate the data as was needed. As I was proficient in the language, it was very quick for me to do it in this manner. It then output a new file with the desired data in the desired format.
In UE/UES, while you can "hide" the lines in multiple sections by multiple regex searches, you can't perform the operations on just the "showing" lines, as it would effect the hidden lines as well. Perhaps Mofi has a suggestion on how to implement this? Perhaps a feature request may be in order to IDM to enable a feature to ignore hidden lines within the search/replace operations.


Mofi wrote:And if you are working with folded blocks, you might want to uncheck setting Automatically unfold hidden areas on Find and Goto at Advanced - Configuration - Editor Display - Code Folding.

There is also the advanced find option List Lines Containing String.
Of course if you edit them and finally want them back in the large file, the lines must be copied back into the large file replacing the lines there. If the lines are from a coherent block, this is an easy task.

Outside of Xedit (or SPF) based editors, I don't know of many, or any, that support this type of functionality.
MickRC3 wrote:I wondered if SPF was going to be mentioned. I did a lot of the things mentioned using ISFP on files 31 years ago on an IBM mainframe, 20 years ago on a VMS comm computer
and then again using SPF on an OpenVMS system a decade ago.
