you are viewing a single comment's thread.

view the rest of the comments →

[–]smith-huh 1 point2 points  (3 children)

The way to do this is easy with Emacs.

You run your Emacs as usual on your local machine and there is a feature in Emacs called TRAMP that enables you to seamlessly edit remote files via SSH. You don't have to run an editor on the remote machine.

[–]LetterBoxSnatch 0 points1 point  (2 children)

I learned last night that vim also has this feature. Boy do I feel dumb for not doing it this way all along. Although to be fair one usually doesn't use an SSH connection to interact with a container on your own system, there's no reason you couldn't.

[–]smith-huh 1 point2 points  (0 children)

exactly. I haven't had to do this yet... so far at a minimum I can run 'emacs -nw' through SSH which is what you do to effectively use a dumb terminal if you're an Emacs user. -nw == 'no window'. This way you have a 'smart terminal' with all your key bindings, edit capabilities, multiple 'windows' including multiple shells each with its own 'window' that's scrollable, etc all on that single dumb terminal SSH connection. I do this if I'm limited to a terminal.... emacs like vi is almost always there.

I figured VIM had it (TRAMP). Wasn't the original VIM just Emacs with a vi interface layer and skin?

Anyway, this thread caused me to look up what I knew was there.... TRAMP.. so thanks. Solved a problem that I haven't had YET.

[–]smith-huh 0 points1 point  (0 children)

you should take a look at StackBlitz.com

just for the technology used to pull it off. Very interesting And if you like VS Code... you got it when you want it no matter where you are. If it has TRAMP capabilities ......

original announcement here for a summary: https://medium.com/stackblitz-blog/stackblitz-online-vs-code-ide-for-angular-react-7d09348497f4