Allow working directory to be deleted
Posted: Sat Oct 25, 2003 5:54 pm
As discussed in this thread, it is not possible to delete the "current working" directory, even if no documents are open in TextPad.
Therefore, when the last document is closed, I recommend the current working directory change to the one in which TextPad was installed. But remember the "actual" current working directory, as it was before the last document was closed.
Then, if you call the "open" command, switch the working directory back to the "actual" one before triggering the open dialog. If the directory doesn't exist, give this dialog instead:
I'd say button 2 is the default.
I think this is a great idea. Thanks to gormania for sparking it in me! :' )
Therefore, when the last document is closed, I recommend the current working directory change to the one in which TextPad was installed. But remember the "actual" current working directory, as it was before the last document was closed.
Then, if you call the "open" command, switch the working directory back to the "actual" one before triggering the open dialog. If the directory doesn't exist, give this dialog instead:
Code: Select all
Working directory does not exist. From which directory do you wish to open a document?
Button1: <The working directory (recreate it first)>
Button2: <The default/startup directory>
Button3: <Browse...>
I think this is a great idea. Thanks to gormania for sparking it in me! :' )