Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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: dropbox.com –  Lukasa Jun 26 '11 at 10:08
1  
@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

4 Answers 4

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  
+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
1  
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 http://linux.die.net/man/1/rsync

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.