Page 1 of 1

Replace-in-files

Posted: Wed Dec 03, 2003 11:01 am
by solipsistD
To compliment the find-in-files search, it would be useful to have a replace-in-files option. Particularly using RegExp options.

Now clearly you could do a _lot_ of damage using replace-in-files without due care and attention, but that is not a reason not to allow it; we are all responsible adults (and it is not as dangerous as Unix allowing you to run 'rm -r *' from the root folder - don't try this at home). If necessary you can display a dialog warning.

It is the sort of thing which can be useful when refactoring code (although Eclipse handles this very nicely if you are into Java). Also useful for updating changed path references, URL links etc.

I can see situations where it would be difficult to support an undo after a bad replace-in-files.

I'm surprised I can't find anyone else suggesting it. It is a feature available in UltraEdit-32 for example.

Posted: Wed Dec 03, 2003 3:46 pm
by ramonsky
It's possible this thread here might be what you want. (There's no poll though :( ).

Jill