I can see all of these being possible, but the first thing that occurs to me regarding scripting these options, is what kind of format is the original text stored in? Is it in a hash table, a text file, an ini file or something else.
If a hash table, then the find would be done using $hfind
if a text file, the find would be done using $read(file.txt,w,<wildcard search item>) or $read(file.txt,s,<search item>)
We definetly(sp?) need more information before we could provide you with detailed assistance. Minimum, I would say, is the manner in which the original text was being stored.
Also, for the undo, would you want just the most recent change undoable? or be able to go back multiple changes?
I can see how this could be really complex, and personally, I think using Notepad or Wordpad would be far more efficient.