Sublime Forum

Cross Platform Project Configurations

#1

Hello,

I apologize if this is already documented somewhere, however I haven’t been able find the answer.
I use sublime text on several Linux distributions, OSX, and Windows.

I store my Packages/User folder on dropbox and synchronize it across systems by symlinking it into the right place on each platform (works great so far).
My project files are not synchronized at the moment, because the paths to the projects change on each system.

For example, on linux, I create a directory in my home “.sublime-projects” and I store both the .sublime-project and the .sublime-workspace files in that directory on each system.
The .sublime-project file contains a full path to the platform specific project folder.
The .sublime-workspace file contains a whole bunch of data I haven’t looked into thoroughly.

So, is there a way that I can adjust this system, so that I can synchronize the the project files across systems with platform-specific paths to the actual project files?
Is there a way to set a default project path so that project list (when going to the switch project pallet) will be automatically populated from projects in this directory?

0 Likes

#2

I’m still not sure I’m using the project configurations correctly - but what I’m doing now is storing them on dropbox, symlinking that share to my home directory as .sublime_projects, then modifying the path in the .sublime-project file so it’s relative to that directory, i.e.:

{
	"folders":
	
		{
			"follow_symlinks": true,
			"path": "../Documents/Cortex"
		}
	]
}

Then on each system, if I want the project to work, I have to ensure the project files are located in the Documents folder.

0 Likes

#3

I’m not quite happy with my system* but what I do is drop the project and workspace files in the root folder of the project and then use relative paths:

"path": "."
  • What particularly bothers me is that I don’t have a handy way to edit the switch project palette, so that I sometimes have to clean it out and start over, hunting for the various project files around my disks.

If anyone has a better workflow to suggest, I’m all ears.

Alex

0 Likes