Open local text application to edit remote text file using ssh?

Viewed 12312

So i am in a VPS terminal using ssh.

In normal case I could just run locally

mate <file>

and it fires up TextMate with that file.

Is it possible to use the same command and somehow open the local TextMate application but editing the remote file?

That would be good if you are working in VPS and don't want to use vim all the time.

6 Answers

Another option is to use one of the two available Textmate Sync bundles - both use rsync and ssh to keep the remote and local folders synchronized.

  1. Textmate remote sync bundle
    This is the bundle I use. It looks to have the exact same functionality as the second bundle but I found this one first.

  2. Textmate Sync bundle

The only word of warning I would add is the first sync will clear the remote folder and replace it with the contents from the local folder.

Related