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

rsub

by henrikpersson ALL

Use rmate with Sublime Text.

Details

  • 2017.12.29.07.44.36
  • github.​com
  • github.​com
  • 4 years ago
  • 1 hour ago
  • 10 years ago

Installs

  • Total 83K
  • Win 29K
  • Mac 37K
  • Linux 17K
May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 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
Windows 2 4 4 2 2 4 5 4 3 3 0 6 7 7 3 3 2 1 4 8 3 3 5 2 1 7 5 8 2 1 1 3 2 6 3 3 5 3 1 4 5 5 10 6 3 1
Mac 0 4 3 1 4 7 6 6 4 3 1 8 4 4 8 4 6 3 7 4 6 7 1 1 3 9 3 4 7 3 2 2 5 5 8 6 6 2 6 6 7 6 4 4 1 1
Linux 0 2 0 1 1 1 1 2 7 2 1 2 0 2 1 1 3 1 1 4 4 6 1 3 0 7 1 1 4 2 1 2 2 1 4 3 4 2 0 0 2 3 6 3 1 3

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.