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

rsub

by henrikpersson ST2/ST3

Use rmate with Sublime Text.

Details

  • 2017.12.29.07.44.36
  • github.​com
  • github.​com
  • 3 weeks ago
  • 49 minutes ago
  • 6 years ago

Installs

  • Total 44K
  • Win 14K
  • OS X 21K
  • Linux 9K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7
Windows 1 10 22 23 20 17 15 8 10 15 15 26 23 11 11 10 18 20 11 10 5 6 10 18 10 12 8 7 1 7 13 17 18 16 16 10 7 8 10 21 21 12 11 13 18 20
OS X 0 14 31 32 16 33 30 12 12 26 32 22 24 24 15 11 15 22 21 11 6 9 15 13 11 16 7 3 4 8 11 19 18 17 14 10 13 16 15 18 31 21 8 13 23 26
Linux 0 7 16 16 15 20 15 4 5 8 11 11 11 13 3 8 8 15 9 7 5 3 3 6 10 10 7 5 7 4 5 11 5 12 13 2 4 12 8 12 8 11 5 6 11 9

Readme

Source
raw.​githubusercontent.​com

rsub

Description

Rsub is an implementation of TextMate 2's 'rmate' feature for Sublime Text 2, allowing files to be edited on a remote server using SSH port forwarding / tunnelling.

Included in this repository are two implementations of the 'rmate' command, the original written in Ruby, and another version written using bash scripting. You will need to choose and copy one of these up to your server, usually with scp, sftp, or plain FTP. See the README file inside rmate-bash for more detail.

Installation

You can install this plugin using sublime package control. It will keep all your plugins up to date. http://wbond.net/sublime_packages/package_control


OR

You can also clone this repository into the Sublime Text 2 'Packages' directory, but you will have to update it manually.

On Mac OS X, this is located at ~/Library/Application Support/Sublime Text 2/Packages.

Run the following commands in Terminal, then restart Sublime Text 2:

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/henrikpersson/rsub.git rsub

SSH tunneling

Due to security reasons, rsub is only listening for local connections.

Simply put this in your ~/.ssh/config to enable remote forwarding for your server(s):

Host example.com
    RemoteForward 52698 127.0.0.1:52698

Usage

Once you have rmate installed on your remote server (installation instructions can be found here), rsub installed on your local machine and an ssh tunnel open, execute the following command on your remote server to edit files in SublimeText:

rmate <filename>

More information on command line options can be found in the rmate repository.