6 ms·
I've been wondering if there's a way to use a more graphical editor over SSH, such as vscode or sublime. I get that I could just "learn VIM" but I already know
by komali2 9y ago
I've been wondering if there's a way to use a more graphical editor over SSH, such as vscode or sublime. I get that I could just "learn VIM" but I already know a shitload of hotkeys for vscode/sublime (they're easily transferred), so I'd rather just use them.
- city41 9y agoYou can open the file via SSH but use a local copy of VSCode/Sublime: https://codepen.io/ginfuru/post/remote-editing-files-with-ssh https://codepen.io/ginfuru/post/remote-editing-files-with-ss...
- anderspitman 9y agoYou could do X forwarding
- josteink 9y agoElectron apps are terrible with X forwarding. Even locally, on your own LAN. It's all rendered bitmaps getting sent over, causing much lag and terrible performance. Not recommended.
- fooker 9y agoSurprising, considering it's origin from web tech.
- oneweekwonder 9y ago> Surprising Or not, your forcing rendered html/dom over the x window protocol. What web tech is in this stack? Only your rendered app on a gtk/qt/wtk(not sure what atom is using, etc) window. Nothing on the network side.
- oneweekwonder 9y agommm I wanted to edit my post but it seems to get locked after time. So just adding a comment with some info and corrections on the topic. - Atom on linux uses GTK+[0]. - GTK+ uses XLib[1]. - From the wikipedia link "Xlib makes the client synchronous with respect to replies and events." so much for js being async ;) - Do anybody know how workable chrome or even firefox is over the x window protocol? [0]: https://electron.atom.io/docs/development/build-instructions-linux/ https://electron.atom.io/docs/development/build-instructions... [1]: https://en.wikipedia.org/wiki/X_Window_System_core_protocol#Xlib_and_other_client_libraries https://en.wikipedia.org/wiki/X_Window_System_core_protocol#...
- cnp 9y agoLearning Vim -- even the smallest subset of it -- will continue to pay off years into the future! Then you can combine it with existing Atom/Sublime/VSCode keymaps where need be and really have a nice fusion of functionality. (VSCode vim mode is A+ btw)
- nobleach 9y agoI gave VSCode's vim mode a shot a few months ago and found it nowhere near Atom's vim-mode-plus. Has it gotten better?
- chillee 9y agoWell, I think it has (I'm one of the developers). Since the beginning of April there's been over 149 pull requests merged. It's definitely gotten better.
- chillee 9y agoNuclide has pretty good support for remote editing (it's Facebook's "official" code editor internally), and VSCode is adding similar functionality. https://github.com/Microsoft/vscode/pull/30337 https://github.com/Microsoft/vscode/pull/30337
- ronjouch 9y agoJust mount your remote folder with sshfs [1] and enjoy your local toolshed :) . X forwarding is overkill when all you need is accessing files. [1] https://github.com/libfuse/sshfs https://github.com/libfuse/sshfs , packaged by your distribution
- H1Supreme 9y agoAgreed. SSHFS is the way to go.