Page 1 of 1
Replacement functionality
Posted: Sun May 30, 2004 8:05 pm
by ben_josephs
This is potentially a very useful tool.
A couple of suggestions:
An option to make replacements literal. Then, for example, replacement DOS-style paths (with backslashes) could be simply copy-and-pasted into the "Replace with:" field.
An option to display each match before it is replaced. The user would choose to replace it or ignore it, to replace all remaining matches, to stop the search (keeping all changes done so far), or to abandon it altogether (undoing all changes done so far).
Posted: Sun May 30, 2004 9:19 pm
by mo
second both these suggestions. The second is a feature of "Search and Replace" and can save you from a big mistake occasionally. The way they implement it is to show the line where the replacement occurs, the location of the replacement in that line (highlighted), and the replaced line the way it will look. The "log" is then made up of all this detail regarding the replacements.
Posted: Tue Jun 01, 2004 7:54 am
by Martin
ACK, in my case it took time and some mishaps to find out, that the 'Replace with'-text always is non-literal. No matter if 'Regular expression' in on or off.
Posted: Wed Jun 02, 2004 1:59 pm
by bbadmin
As suggested on the startup page of the online help, please read the Warnings section,
before starting to use WildEdit. It could save you a lot of time!
Keith MacDonald
Helios Software Solutions
Posted: Wed Jun 02, 2004 4:15 pm
by Martin
Yep, RTFM
. On the other hand, a hint in the interface or a more intuitive behavior wouldn't hurt either.
Posted: Thu Jun 03, 2004 2:58 am
by bgclarke
bbadmin wrote:As suggested on the startup page of the online help, please read the Warnings section, before starting to use WildEdit.
I don't think programmers read any of that stuff until something goes wrong
I know that's how I do it
While tinkering with WildEdit, I managed to mangle the package names in about half of our Java code base.....it's a good thing WildEdit makes backups
Also see the need for the "option" to accept on se
Posted: Tue Oct 25, 2005 7:12 pm
by zap_zip
I have used another multi-file editor that allow the user to review the "found" strings and where they occur in one or more documents without making the change unitl approved by the user. the user can accept or move to the next change or, at any time, decide to go ahead and let the program make all of the changes to all of the files at one.
a good batch simple operation with some commands
Posted: Thu Feb 09, 2006 6:58 pm
by Juan Macedo
Martin wrote:Yep, RTFM
. On the other hand, a hint in the interface or a more intuitive behavior wouldn't hurt either.
You could add an interface as this:
You can use the following batch file to replace the names Frank with Michael and Smith with Jones.
<Command>
<Search>Frank</Search>
<Replace>Michael</Replace>
</Command>
<Command>
<Search>Smith</Search>
<Replace>Jones</Replace>
</Command>
Copyright © 1998 Ingo Straub, Schützenhof 2, 73116 Wäschenbeuren