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
  • 6 years ago
  • 31 minutes ago
  • 12 years ago

Installs

  • Total 88K
  • Win 31K
  • Mac 39K
  • Linux 18K
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 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
Windows 0 3 0 3 3 0 0 1 3 6 2 4 2 0 2 2 3 1 0 0 0 2 3 3 1 2 0 6 2 3 4 3 1 1 0 2 3 3 1 2 1 2 3 4 0 4
Mac 2 5 3 2 1 0 2 0 3 3 2 0 1 1 2 1 3 2 2 0 3 5 1 2 2 1 1 4 2 2 4 2 1 2 1 2 2 3 2 2 1 1 3 2 1 1
Linux 0 2 2 0 0 0 0 0 0 2 0 3 1 0 2 0 0 1 1 0 0 0 2 2 3 0 0 0 4 3 0 1 0 1 1 1 0 1 2 1 0 0 0 0 0 0

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.