At first I thought subl --Project wasn’t working. Here’s an example from my linux start up file:
wmctrl -s 0
sleep 2s
subl --project /home/username/.config/sublime-text-3/Packages/User/BuildsNSnippets.sublime-project &
sleep 4s
All that would happen is that it would open a new BuildsNSnippets.sublime-project in workspace 0.
I’ve found out this this is because when ST3 loads up; it opens BuildsNSnippets automatically because that’s what was open at the time of shutdown. Subl is creating a new project because it’s already open. The cure is to shut that particular project before shutting down.
So before getting into this:
which looks a bit mareish…
Is there any kind of setting I can change in ST3, so when it closes down it automatically shuts a particular project, so on startup subl will then open the project I want in the right workspace.
At the moment I have five workspaces (on the same machine) and across those, five ST3 projects open which I can chop and change with a key press.
( Current project, source files and headers, next to that gitsavvy and git stuff, then a couple of open terminals, firefox, and then BuildsNSnippets which has got all kind of stuff in it )
It’d be good to have everything in the right place on start up and not have to close down ST3 specifically at the end of each session. I turn my computer off at the end of the day.
In summary, is there an automatic close and save project/file setting on shutdown for ST3 please ?
Ta, that was very long winded for what is probably a simple problem, so thanks for getting to the end of this !
ATB Lozminda