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
  • 2 years ago
  • 32 minutes ago
  • 7 years ago

Installs

  • Total 63K
  • Win 22K
  • OS X 29K
  • Linux 13K
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 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5
Windows 5 16 16 14 14 8 4 2 10 16 16 19 14 6 5 13 19 17 17 11 13 3 8 13 6 15 16 7 5 17 16 17 22 14 7 8 13 11 20 11 16 10 8 8 13 14
OS X 8 14 16 28 23 18 4 13 25 13 14 19 27 7 7 16 14 16 13 21 7 7 13 13 8 13 15 5 6 18 19 15 18 17 5 7 16 16 14 11 14 16 3 12 23 23
Linux 2 4 11 7 13 7 3 2 12 11 11 6 9 4 1 9 9 9 13 8 4 2 13 8 6 2 6 7 5 9 3 4 7 10 2 3 5 9 8 10 11 4 3 12 17 8

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.