Fog Creek Software
Discussion Board




Knowledge Base
Documentation
Terry's Tips
Darren's Tips

feature request: global find & replace

Occasionally I replace an old html file (e.g. file.htm) with a new one by bringing the new one across from an external editor (which CD calls file_2.htm).  I rename, inside CD, the original file, say 'file_old.htm' and then rename the 'copy' with the correct name (file.htm).

Problem is that my 'magic name' links are broken (mainly in the sidebars of articles) and I need to open each article and reestablish the link.

It would be great if this could be done more easily.  There are other times when I would find a simple search and replace for text useful

David Brewster
Wednesday, July 10, 2002

In this kind of situation you're better off using cut and paste because the Magic Name points to the original file regardless of what it's renamed to.

Do someting like...

Open old file.htm and Ctrl-a, Ctrl-c in the html view.
Create a new "old_file.htm", open it and paste into the html view (this is optional, just to save a copy of the old version).
Import new file.htm (file_2.htm), open it in html view and Ctrl-a, ctrl-c.
Switch back to the original file.htm and paste into the html view.

I'm sure you get the idea.

Of course, it would be better if you didn't use htm files but articles instead, then you could link to the right article by filename or keywork conditions in a foreach loop.

Ian Jones
Wednesday, July 10, 2002

*  Recent Topics

*  Fog Creek Home