Perhaps I missed the obvious, but I canβt solve this rather simple and typical case (from v3 build 3022 on Debian or XP, if that matters):
- Launch Sublime Text by opening the "myprj" project specified on the command line,
- using default.sublime-project located under this dir project (say "/ repo / myprj" )
- Automatically reopen the last opened files of this project (i.e. its workspace),
- using default.sublime-workspace for this (also from the same dir project)
- but (obviously) do not automatically open any other files remembered from non-design sessions,
- and automatically save all open files (to the default.sublime-workspace specified above) upon exit.
Perfectly:
- $
sublime_text --project /repo/myprj/default.sublime-project
must work. But this is not so (see below).
Another approximation that seemed reasonable:
"hot_exit" and "remember_open_files" to false , and then calling ST with:
$ sublime_text --data /repo/myprj --project default.sublime-project
But ST3 either does not find the project file (via --data ), unless I chdir there ( --data seems to be no longer supported ?), And it either can not automatically open any files of the workspace from the last time (despite the previous " Project / Save Workspace As ... "), or, if I return true_open_files to true, it simply reopens the last opened files regardless of the project specified on the command line.
I think the problem is that the workspace file is not being processed automatically for some reason, and I just skipped some trivial step somewhere. (The official docs (as well as the unofficial one ) seem to discuss command line switches for OS X only , and the --help request didn't really help with that.)
(Note: I would not want to start ST first and then switch to some project from the inside manually, and I also do not want to store sublime-project / -workspace files outside of prj. Dir.) Thank you very much!
source share