Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

dabekf/QuickSFTP

Repository files navigation

QuickSFTP

Deprecation warning. I was unable to install Paramiko in newer versions of Sublime Text so I'm not going to maintain this project anymore.

Upload single file to remote server via sftp in Sublime Text 3.

This plugin allows you to send a file from a local project to a remote server using SFTP protocol. You can use a command from the command palette, or enable upload after save. It doesn't start external processes, instead using the Sublime Text Python interface and Python SSH library, Paramiko. That way start times are shorter and you can reuse open connections, so subsequent uploads are even faster.

Paramiko and many of its dependencies are not packaged with Sublime Text 3. Bundled Python 3.3 is quite old now, but neccessary packages can be downloaded from PyPI and extracted into user's configuration directory.

Requirements

  • Sublime Text 3 (tested with version 3.2.1 build 3207)
  • Paramiko and a number of its dependencies

Installation

These versions specify compatibility with Python 3.3. For every library go to "Download files" section and find the correct .whl file for your architecture. You are looking for files with 'cp33' or 'none-any' in their name. These files are zip archives and can be extracted with standard tools.

Some dependencies (enum, pathlib, six) might install automatically. If they do, restart will be required.

Configuration

Put sftp.json in a .sublime directory in the root directory of your project. The plugin searches upwards for every open file. See sftp.json.example for possible values. Most fields should be self-explanatory, but here's some notes:

  • name is required, it is used to cache connections and properly group files from different projects
  • filePermissions and directoryPermissions are used when files and directories don't exists on remote and need to be created
  • uploadOnSave is false by default
  • ignore takes regular expressions relative to configuration parent directory
  • Paramiko can authenticate using the password field or the key in privateKeyPath, but it can also use Pageant.

Usage

Two commands are available:

  • "QuickSFTP: Upload file" - upload file in current view (useful if uploadOnSave is off)
  • "QuickSFTP: Reload configuration" - searches for sftp.json and reloads it (useful if changes were made)

You can bind these commands to keys using labels quick_sftp_upload and quick_sftp_init respectively.

License

vim-sftpsync is licensed under the MIT License.

About

Upload single file to remote server via sftp in Sublime Text 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages