Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Every time I save a file on my Mac, I want it to auto-sync with the files on my remote server.

Are there any text editors that can do this?

share|improve this question
It's called Dropbox: – Lukasa Jun 26 '11 at 10:08
@Lukasa Some people (you know, those who value privacy) don't want everyone having access to all their private data. Therefore, Dropbox isn't the answer for them. – Daniel Beck Jun 26 '11 at 10:41
@Daniel Beck: Good point well made. You're absolutely right. :) – Lukasa Jun 26 '11 at 13:27
up vote 1 down vote accepted

Coda is a web developer oriented source code editor that has integrated "site" management and assists in keeping the local and remote sites synchronized by highlighting all files with local changes and providing easy means to upload changed files.

It supports SFTP (SSH File Transfer Protocol) for file transfer, and has some SSH capabilities (which I haven't used so far, though).

The TextMate 2 alpha was just released, and it has something similar to what you want: rmate. So if you log into SSH (not SFTP/SCP), you can run that script and edit the files locally using TextMate.

enter image description here

share|improve this answer
+1 Was going so suggest that as well (-> also worth taking a look at Transmit, because its actually the base of Coda) – slhck Jun 26 '11 at 11:00

Maybe not exactly what you want, but if you use Cyberduck you can actually edit the file remotely by right clicking and selecting Edit with... and it will be uploaded automatically each time you save.

enter image description here

Consider combining it with a free text editor like TextWrangler, or if you want to spend some money its full-featured (but paid) counterpart BBEdit, or alternatively TextMate.

Cyberduck also has the option to synchronize a folder on demand (Right clickSynchronize) in case you need that.

share|improve this answer
Be careful with that! You're not keeping a backup of the file the way you would be if you downloaded the file and edited it locally. If your connection hangs and dies with the file half-uploaded, or if you accidentally save bad code, you've just put something up on the FTP server that you don't have a way to roll back from. I thought this feature was very convenient until the first time I shot my foot off with it... – Dan Ray Dec 14 '11 at 18:26
Yes, that's a valid concern. Happened to me once and I lost quite a bit of work there. – slhck Dec 14 '11 at 19:15

What about using something like rsync? That way when you've saved your file it should get ssh'ed across to the target machine. Here's a link that describes ssh

share|improve this answer

TextWrangler for OS X is free, fast, and highly functional. It includes native capabilities to modify files via SFTP/SSH connections.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .