Permalink
Browse files

Initial commit

  • Loading branch information...
1 parent 1e9db84 commit 4243d041fb22d3c404fc716c67451b0fa684bfd2 @tnhu committed Jun 27, 2012
Showing with 35 additions and 12 deletions.
  1. +32 −0 README.md
  2. +2 −1 SimpleSync.py
  3. +1 −11 SimpleSync.sublime-settings
View
@@ -0,0 +1,32 @@
+## SimpleSync
+
+Simple Sublime Text 2 plugin for SSH and local syncing.
+
+### Before you start
+
+- Currently support MacOS and Linux.
+- SSH synchronization is done via scp, your system must have SSH public-key authentication enabled.
+
+### Settings
+
+When you finish installing SimpleSync, its settings can be found in Preferences > Package Settings > SimpleSync Settings
+
+Sample settings:
+
+``` javascript
+{
+ "sync": [{
+ "type" : "ssh",
+ "host" : "tnhu-ld",
+ "username" : "tnhu",
+ "local" : "/Users/tnhu/workspace/trunk",
+ "remote" : "/home/tnhu/workspace/trunk"
+ }, {
+ "type" : "local",
+ "local" : "/Users/tnhu/Library/Application Support/Sublime Text 2/Packages/SimpleSync",
+ "remote" : "/Users/tnhu/Dropbox/projects/SimpleSync"
+ }]
+}
+```
+
+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.
View
@@ -4,9 +4,10 @@
# Help the orphans, street children, disadvantaged people
# and physically handicapped in Vietnam (http://bit.ly/LPgJ1m)
#
-# Copyright (c) Tan Nhu, tnhu AT me . COM
+# @copyright (c) 2012 Tan Nhu, tnhu AT me . COM
# @version 0.0.1
# @licence MIT
+# @link https://github.com/tnhu/SimpleSync
#
import sublime
import sublime_plugin
@@ -1,13 +1,3 @@
{
- "sync": [{
- "type" : "ssh",
- "host" : "tnhu-ld",
- "username" : "tnhu",
- "local" : "/Users/tnhu/workspace/trunk",
- "remote" : "/home/tnhu/workspace/trunk"
- }, {
- "type" : "local",
- "local" : "/Users/tnhu/Library/Application Support/Sublime Text 2/Packages/SimpleSync",
- "remote" : "/Users/tnhu/Dropbox/projects/SimpleSync"
- }]
+ "sync": []
}

0 comments on commit 4243d04

Please sign in to comment.