As part of the upcoming TextMate 2 release, there will be a new feature called rmate, which will allow you to edit files from a remote machine (Linux/Unix/OSX) via SSH using your local copy of TextMate... Is there something similar for Windows? I know i could use CyberDuck, find the file i want to edit, download locally, work on it and then re-upload, but rmate looks like you just type rmate on the remote server, and text mate pops up with the file. (i have not tried since i am not a TextMate owner) Is there something similar for Windows?
Why not have a look at Sublime Text 2? This supports TextMate bundles and has plugins that support working over SSH/FTP/etc.
On Windows, I tend to use WinSCP and this works well with Sublime - I just double-click on a remote file in WinSCP and it opens locally with Sublime, when saving WinSCP monitors the temporary file and throws it back to the server as appropriate. But with the plugins, you don't have to work that way, you can open and save files direct to a remote server.
Looks like @Julian Knight was correct in saying that Sublime Text could support this, but adding my findings on this. Check out Doug Stephen's post on using Sublime Text with RMate with details on how to set this up. I have set it up and it works exactly as i wanted it to! The advantage of this, over, say, SFTP or FTP, is if i SSH into a box, i am not root. If i need to edit a file in the etc folder, example /etc/apt/apt.conf, i would type
sudo rmate /etc/apt/apt.conf
enter my password, and i can edit locally on my machine. with SFTP, i cant do that since i am not root... anyway, happy days!
rmate probably won't do much more than provide a nice abstraction to the same basic process:
- download the file
- write a copy somewhere on your local machine
- edit it
- write it
- upload the file to the remote machine
But I might be wrong.
Many editors/IDE can actually edit code remotely but they all follow the process outlined above, AFAIK. The only tool that I've heard of that allows you to launch a local editor from a remote machine is
bcvi. I don't know how it works, though, and it's Vim-specific, obviously. Maybe it's the inspiration behind
rmate? Or not?
I think that you have overlooked a nice feature of modern (S)FTP clients: many of them offer the ability to "Edit with…" your chosen text editor. It's not exactly what you are after but it sure is handy.
Another option is to edit your files directly on the remote machine. Vim and Emacs work perfectly well through SSH. Expect a steap (but rewarding) learning curve. If you often need to edit configuration files Vim has its place in any sysadmin's toolbelt.
If what you actually want to do is work on deployed production code, there are better and safer ways: running your code on a local server, using some version control system…