Skip to main content

rmate

The rmate program enables editing files on a remote computer with TextMate 2 via an SSH connection. This is a port of the official Ruby version and was made for system that cannot (or just preferably do not) have Ruby installed. This version (very intentionally) has no dependencies beyond the Python standard library and has been tested with Python versions 2.4 - 3.5.

This port is probably compatible with Sublime Text, Atom, or other editors that use the rmate protocol, but it is not officially tested.

Install

Standalone

rmate is a single file script, so you can simply download it to a location in your PATH. For example, assuming /usr/local/bin is in the PATH

wget https://raw.githubusercontent.com/sclukey/rmate-python/master/bin/rmate
chmod +x ./rmate
mv ./rmate /usr/local/bin/rmate

PyPI

You can also install rmate with pip

pip install rmate

SSH Connection Settings

For rmate to be able to connect back to TextMate, a port must be tunneled through the ssh connection. By default, rmate uses port 52698, and the port can be tunneled for an individual connection on the command line

ssh -R 52698:localhost:52698 user@example.com

or for all connections by adding a rule to your ~/.ssh/config

Host *
RemoteForward 52698 localhost:52698

Usage

You can use rmate --help to see the usage

usage: rmate [OPTION]... FILE...

      --host HOST  Connect to HOST. Use 'auto' to detect the host from
                   SSH. Defaults to localhost
  -p, --port PORT  Port number to use for connection. Defaults to 52698
  -w, --[no-]wait  Wait for file to be closed by TextMate
  -l, --line LINE  Place carat on line LINE after loading the file.
                   TextMate selection strings can be used
  -m, --name NAME  The display name shown in TextMate
  -t, --type TYPE  Treat file as having TYPE
  -f, --force      Open even if the file is not writable
  -v, --verbose    Verbose logging messages
  -h, --help       Show this help and exit
      --version    Show version and exit

When FILE is -, read standard input.

More information can be found in this blog post

Metadata

Release files for rmate 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rmate 1.0.3
File Size Uploaded Provenance
rmate-1.0.3.tar.gz 6.1 kB Without provenance Details

Release files / rmate-1.0.3.tar.gz

Download URL rmate-1.0.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0f6e00d846b488b93d757b901a40788fec272cce3a8f91e6beb2d95afa2b4086
BLAKE2b-256 checksum
How to use checksums
e453180585cade142283f5aec6a1246ab65de0abcd7a68d40f289984a9d45bb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for rmate 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page