Do a better job setting search within.
Don't continue if the user cancels selecting a file.
Also don't try to open "http" as a file.
Need to close the window on cancel as well.
Only use the default style with plain text documents.
Added some logs.
Do a better job setting automatic substitutions