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

rsub

by henrikpersson ST2/ST3

Use rmate with Sublime Text.

Details

  • 2017.10.04.07.54.01
  • github.​com
  • github.​com
  • 3 weeks ago
  • 55 minutes ago
  • 6 years ago

Installs

  • Total 41K
  • Win 13K
  • OS X 19K
  • Linux 8K
Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8
Windows 12 7 10 12 15 10 22 9 7 5 13 21 16 11 18 9 6 25 24 19 21 19 8 10 26 16 21 15 22 10 13 16 15 19 15 17 15 11 20 24 16 19 15 7 11 19
OS X 7 13 14 17 21 10 30 21 12 13 27 24 13 27 19 13 13 25 17 32 17 19 13 9 18 32 29 40 32 9 12 21 20 24 25 17 15 18 28 42 38 28 19 10 19 29
Linux 5 6 9 12 13 6 11 21 4 2 5 12 6 11 7 6 4 14 11 7 6 12 4 5 9 11 17 9 9 3 7 14 9 6 11 6 6 6 5 19 9 9 13 4 13 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.