I am wondering if anyone implemented a transparent way of editing text files locally.
As SSH supports SCP it means that it should be able to have a smart terminal which would be able to allow you to use a local editor to edit a remote file.
I am not thinking of methods of mounting drives locally, I am looking for a solution that could work only via your terminal (like iTerm2) and maybe with some help from the the remote server.
On linux is easy to configure your prefered editor and this preferred editor is a smart script that detects if you are in a terminal that supports remote-edit, would trigger that instead of one of the server provided editors.
Have anyone tried and maybe succesfully managed to implement this?
For example I know that iTerm support download and upload of files so why not going a step further.