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
  • 4 months ago
  • 3 minutes ago
  • 6 years ago

Installs

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

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.