I was reading this thread, and I think we can improve the auto restore functionality as it relates to files.
Here are the behaviors I see if I select Tools > Options > General and put a check in the Files checkbox or Workspace File:
"Files" only:
1) Switching workspaces preserves the currently open files. So, if I open workspace A and open 2 files from that workspace, then switch to workspace B, the 2 files I just opened in A are still open.
2) Closing SlickEdit and reopening it brings up the last open workspace and all open files.
"Workspace Files" only:
1) Switching workspaces opens the files that were open the last time I used that workspace, closing any that I opened in the first workspace.
2) Closing SlickEdit and reopening it causes SlickEdit to open with no files open, even though they were open when I closed SlickEdit. If I now switch workspaces, the files that were last open in the other workspace are loaded.
"Files" and "Workspace Files":
1) Switching workspaces behaves as described in Workspace Files only.
2) Closing SlickEdit and reopening it behaves as described in Files only.
The current choice of names, "Files" and "Workspace Files" is confusing and doesn't give much in terms of predictability for what to expect.
I propose the following:
- Drop the "Workspace Files" item. Checking the "Files" item would behave as described above, in "Files and Workspace Files".
- Optionally, add a checkbox labelled, "Keep files open during editing session". When checked, all files open during that session will be open until closed, even if you switch workspaces. Would anyone ever use this? I wouldn't.
- Add a checkbox labelled, "Don't restore if file names are specified on command line", or something better that conveys the same meaning. When checked, if SlickEdit is launched with command line arguments specifying files to edit, then SlickEdit comes up with no open workspace and just those files open.
OK, I need your feedback to guide us. Let us know what you like and we'll see if we can get this in v12.
--Scott