ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Preference​Sync

by devdinu ST3

Syncs Sublime Preferences Across Machines

Labels sync, preferences

Details

Installs

  • Total 1K
  • Win 1K
  • Mac 281
  • Linux 115
Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0
Mac 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Text Sync

Syncs User Package Folder of Sublime Text.

Features

It uploads the User packages directory of Sublime Text, and can dowload it later via UUID.

  • The UUID 'll be written to Sync Prerences.sublime-settings in User Packages directory.
  • Default Mac location $HOME/Library/Application Support/Sublime Text 3/Packages/User
  • The plugin accepts configuration via Sync Prerences.sublime-settings file present inside the plugin directory PreferencesSync present in packages folder of Sublime Text.
    • user_package_location: accepts relative path to package directory, its defaulted to Mac location.
    • files_to_exclude_in_sync: [accepts an array of files to exclude in the User directory to prevent syncing]

Key Shortcut

sync_preferences syncs to remote, and sync_local sync files from remote to local. To change Trigger for Download / Upload change the keymap file content to your option.

[
    { "keys": ["alt+super+u"], "command": "sync_preferences" },
    { "keys": ["alt+super+l"], "command": "sync_to_local" }
]

linux and windows keymap: - alt+ctrl+u in for sync_preferences (uploading). - alt+ctrl+l to sync to local (downloading).

Recovering old Data

Before overwritting the existing files, plugin creates an archive in $TMPDIR folder, the filename and logs can be viewed in sublime console (ctrl +). you can unzip the gzip, untar and use it in case if you want the old directory.

Try Out

Do you want to see what magic it does? Try syncing to local, the preferences from 27819a81-4f46-4fae-b89f-588951560aa6.

Wait…

Wow! Your sublime looks different.

This is a sample that i've uploaded, and its available in service and can be downloaded. you have something cool, you can upload yours, and other can download it. You can look at files Prefernce Settings User, to see whats different, or available, also Packages Contorl Settings to know about the list of available packages. This is more in a thought process similar to uploading and browsing themes, but with more customization.