0

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?

2

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

  • 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
1

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.

  • 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
1

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

0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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