Skip to content

pthaden/SublimeFileSync

 
 

Repository files navigation

What is this?

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.

Installation

Package Control

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.

  1. 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.

  2. Bring up the command palette (default ctrl+shift+p or cmd+shift+p) and start typing Package Control: Install Package then 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. Find Filesync in the list of packages and press return on its entry to install it.

Download or Clone

  1. Download is also available or clone directly and drop into your Sublime Text 2 packages directory (plugin folder must be named FileSync)

  2. You may need to restart Sublime Text 2 after installation

Usage

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.

Extra Features

  • FileSync plugin can be desactivated from Sublime Text 2 menubar. Click on Tools\FileSync\Enable FileSync

About

Sublime Text 2 FileSync plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors