Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Initial commit

  • Loading branch information...
commit 4243d041fb22d3c404fc716c67451b0fa684bfd2 1 parent 1e9db84
Tan Nhu authored

Showing 3 changed files with 35 additions and 12 deletions. Show diff stats Hide diff stats

  1. +32 0 README.md
  2. +2 1  SimpleSync.py
  3. +1 11 SimpleSync.sublime-settings
32 README.md
Source Rendered
... ... @@ -0,0 +1,32 @@
  1 +## SimpleSync
  2 +
  3 +Simple Sublime Text 2 plugin for SSH and local syncing.
  4 +
  5 +### Before you start
  6 +
  7 +- Currently support MacOS and Linux.
  8 +- SSH synchronization is done via scp, your system must have SSH public-key authentication enabled.
  9 +
  10 +### Settings
  11 +
  12 +When you finish installing SimpleSync, its settings can be found in Preferences > Package Settings > SimpleSync Settings
  13 +
  14 +Sample settings:
  15 +
  16 +``` javascript
  17 +{
  18 + "sync": [{
  19 + "type" : "ssh",
  20 + "host" : "tnhu-ld",
  21 + "username" : "tnhu",
  22 + "local" : "/Users/tnhu/workspace/trunk",
  23 + "remote" : "/home/tnhu/workspace/trunk"
  24 + }, {
  25 + "type" : "local",
  26 + "local" : "/Users/tnhu/Library/Application Support/Sublime Text 2/Packages/SimpleSync",
  27 + "remote" : "/Users/tnhu/Dropbox/projects/SimpleSync"
  28 + }]
  29 +}
  30 +```
  31 +
  32 +Files are saved to remote server when you save them locally. In case of "local", they are copied to "remote" folder which is on the same machine.
3  SimpleSync.py
@@ -4,9 +4,10 @@
4 4 # Help the orphans, street children, disadvantaged people
5 5 # and physically handicapped in Vietnam (http://bit.ly/LPgJ1m)
6 6 #
7   -# Copyright (c) Tan Nhu, tnhu AT me . COM
  7 +# @copyright (c) 2012 Tan Nhu, tnhu AT me . COM
8 8 # @version 0.0.1
9 9 # @licence MIT
  10 +# @link https://github.com/tnhu/SimpleSync
10 11 #
11 12 import sublime
12 13 import sublime_plugin
12 SimpleSync.sublime-settings
... ... @@ -1,13 +1,3 @@
1 1 {
2   - "sync": [{
3   - "type" : "ssh",
4   - "host" : "tnhu-ld",
5   - "username" : "tnhu",
6   - "local" : "/Users/tnhu/workspace/trunk",
7   - "remote" : "/home/tnhu/workspace/trunk"
8   - }, {
9   - "type" : "local",
10   - "local" : "/Users/tnhu/Library/Application Support/Sublime Text 2/Packages/SimpleSync",
11   - "remote" : "/Users/tnhu/Dropbox/projects/SimpleSync"
12   - }]
  2 + "sync": []
13 3 }

0 comments on commit 4243d04

Please sign in to comment.
Something went wrong with that request. Please try again.