SublimeFileSync is a plugin for the text editor SublimeText 2 providing an easy way to synchronise files between different locations.
The main goal is to keep files outside of Sublime Text projects in-sync with Sublime Text project files. The plugin works as an EventListener and will synchronise any matching files as soon as you save it.
Be aware that the synchronisation is only in one direction, from sublime Text to the outside world.
Sublime Package Control allows you to easily install or remove Filesync from within the editor. It offers automatically updating packages as well so you no longer need to keep track of changes in Filesync.
-
Install Sublime Package Control (if you haven't done so already) from http://wbond.net/sublime_packages/package_control. Be sure to restart Sublime Text 2 to complete the installation.
-
Bring up the command palette (default
ctrl+shift+porcmd+shift+p) and start typingPackage Control: Install Packagethen press return or click on that option to activate it. You will be presented with a new Quick Panel with the list of available packages. FindFilesyncin the list of packages and press return on its entry to install it.
-
Download is also available or clone directly and drop into your Sublime Text 2 packages directory (plugin folder must be named FileSync)
-
You may need to restart Sublime Text 2 after installation
To synchronise 2 distinct locations you just need to define mappings from within your User preferences file. Open Preferences\FileSync\Settings - User and add a mappings section to it
"mappings": [
{
"source": "C:/Documents/Work/MyAwesomeProject", //Windows style paths
"destination": "G:/Apache/project"
},
{
"source": "/Users/Benoit/Work/MySecretProject", //Unix style paths
"destination": "/www/myproject"
}
]
As mappings is an array, you can add as many number of synchronisation definitions as you want.
- FileSync plugin can be desactivated from Sublime Text 2 menubar. Click on
Tools\FileSync\Enable FileSync