1) Implemented "Global replace" feature. It is a part of Find+ (second dialog page).
Using this feature" (all available search conditions can be used) it is possible
to replace searched/found strings in two main modes.
A) Smart mode (wildcards NOT used for searching string):
If search string and replace string are of different length, file will be resized and
found string smartly replaced with the supplied one. If replace string is "" (empty)
the found string will be just removed and file shortened for the the required
number of bytes (search string length).
B) Simple (overwriting) mode:
If search and replace string are of the same length or if wildcards used for
searching string, found string will be simply overwritten!
There are 2 ways (options) to do it: INCREMENTAL and AUTOMATIC and OFF.
If Incremental way used, you get the dialog as on the screenshot (explained below),
and via Automatic mode all replacing is done without further user intervention.
OFF is ALWAYS default mode!
INCREMENTAL mode:
You get the dialog displaying files (one by one as they are found) that contain
searched string.
(Found) occurrence is shown with an Offset (both Hex$ and Dec) and the total number
of occurrences in the file. Also, found string is shown in a context (first 32 chars/bytes).
Options are:
"Cancel" the whole process (current file changes skipped).
"Skip file" skips the current file (if any changes done in a file, they are not written.
"Skip offset" skips the current (displayed) found offset.
"Replace" replaces found string at the current offset.
"Replace all" continue replacing strings) in the current and all found files automatically.
"Hex view" enables you to jump to current offset in Hex Editor. You can do all things
as usual with one limitation (it can be changed in future!): Editing cannot be combined -
both in "Global replace" mode and in Hex Editor view! Either one or other! If you want
to edit in HEx view, you have to skip all offsets or skip file or just cancel
"Global replace" operation.
When change (replacement) is made a command button "Save now" appears in dialog.
Using that button, you can save all changes that are already done in a file!
Also a kind of "SAFE" mode is built in, where you can just preview all found offset
occurrences, but you cannot do editing (replace). It is invoked by searching string
using wildcards and leaving replace string empty!
Of course, you can "preview" in all other modes too, provided that you do not replace
(edit) any occurrence of found strings.
!!! "Global replace" additionally includes the ability to dynamically replace strings:
If wildcards are used in searched string and in replacement string, it is possible, within
the same "Global replace" process, to replace different searched strings with different
replacement strings, provided they match the patterns set !!!
This is an example, depending on use of "wildcards" in "Search for string" edit box.
1) If wildcards are not used and length of search string and replace string are different,
"smart" replace will be applied. "Smart" replace means that file will be resized accordingly.
Example:
search string="GEL"
replace string="GELLER"
Found in file: "GEL IS A NICKNAME"
After replace: "GELLER IS A NICKNAME"
File will be resized, in this case increased for 3 bytes.
If wildcards are not used and search and replace strings are of the same length, found
string will be just overwritten.
2) If wildcards are used, "smart" replace is skipped.
Found string is simply overwritten.
If replace string is longer, like in above sample, the result will be:
After replace: "GELLER A NICKNAME"
2) Note+ changes:
- It is now possible to rename files/folders in Copy/Move dialog (on the fly!), when copying
to the opposite panel. Deep nesting (restore folder) and assigned notes (keep note) kept!
- Selected (marked) files can be saved to FND files, via Fn+Menu menu.
FND files are internal View+ files and can be opened using Space (View) in system or by
pressing Enter on them in Note+ - it's worth exploring it
3) Fulfilling one Kees's wish
Files/folders can be renamed to the same name but different low/upper case.
Example: rename "straten" to "Straten"
It can be done wherever renaming is used, in N+, Browser+, History, etc...
4) Added simple (info) scrollbar to Hex viewer/editor - relative to current offset vs file size!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum