This issue is caused by a bug as I found out after reading your post with
Replace in Files and
Find in Files tests done with several versions of UltraEdit for Windows.
I have just sent an issue report email to IDM support with following subject and content containing also the workaround for this issue in last but one paragraph.
UE/UES - Specified subdirectories to ignore not ignored on running Replace in Files
There is an issue with option
Subdirectories to ignore in search on being used with
Replace in Files which exists according to my tests with several versions of UltraEdit for Windows since v21.10.0.1021. I could not reproduce this issue with UE v21.00.0.1033, v20.00.0.156 and v19.10.0.1012 using the steps below. The issue was reproducible with v21.00.0.1033 and some other versions up to UE v26.10.0.72.
The issue is that the directory names entered in edit field of option
Subdirectories to ignore in search on tab
Replace in Files of the floating
Find and Replace window opened by pressing
Ctrl+Shift+R are not taken into account on running the
Replace in Files.
This issue can be reproduced as follows:
- Extract attached RAR file ignore_subdirectories_replace_in_files.rar to directory C:\Temp.
- Start UltraEdit with default settings.
- Press Ctrl+Shift+R to open floating Find and Replace window with tab Replace in Files selected. That is important as it turned out.
- Enter as search string the two words: search term
Press TAB and enter as replace string the two words: replace term
Files listed should be selected for option In, otherwise press Alt+L.
Press Alt+Y and enter *.txt for option In files/types.
Press TAB and enter C:\Temp\Test\ for option Directory.
- Click on gearwheel button to get displayed the advanced options.
None of these options should be checked by default.
- Check the options Search subdirectories (Alt+B), List changed files (Alt+N), Ignore hidden subdirectories (Alt+G) and press TAB to set input focus into edit field of Subdirectories to ignore in search.
Copy and paste or enter now the following three subdirectory names:
sub-folder 1;other_subfolder;01_subfolder_with-number
See also attached image ignore_subdirectories_replace_in_files.png.
- Press Alt+A to activate Replace all to run Replace in Files.
The directory
C:\Temp\Test\ contains six *.txt files all with just the two words:
search term. The
Replace in Files with the used options should
modify just
C:\Temp\Test\File1.txt and
C:\Temp\Test\replace_folder\File4.txt and ignore all other four files.
File6.txt in hidden subdirectory is indeed ignored, but not the files
File2.txt,
File3.txt and
File5.txt.
The reason is that the three directory names entered for option
Subdirectories to ignore in search are not taken over from dialog window before running
Replace in Files.
There is a simple workaround for this issue. After the first six steps the tab
Find in Files is selected with mouse, and without doing anything on this tab, the tab
Replace in Files is selected again. Executing now
Replace all results in subdirectories to ignore being really ignored.
This issue does not exist with tab
Find in Files according to my tests. The entered subdirectories are always taken over on execution of
Find in Files.