Random Geekery

Remote Editing In Atom

Added by to Tools on

Tags · atom-editor ·

Atom Works on openSUSE Making a Jekyll Collection

I am slowly learning more about how to use Atom for real work. First requirement: my “real work” almost exclusively takes place on a virtual machine. Atom alone cannot handle editing those files. remote-atom to the rescue!

Well, sort of. It’s not as reflexive as bouncing around in a Vim session, but some of that must be due to lack of familiarity.

It works, though.

You can install the remote-atom package from Atom’s Settings View. Follow the directions on the remote-atom package page, and you’ll end up with a rmate executable on your virtual machine, corresponding to a master copy in the remote-atom git repo.

rmate communicates with the Remote Atom service, which you need to manage yourself. You can do this from the Packages menu, but I want to get comfortable with the Command Palette.

Start Server From Command Palette
Start Remote Atom Server from Command Palette

Once the server is available, you can rmate files to your heart’s content.

$ rmate lib/secret-work-stuff
$ rmate test/secret-work-tests

No point showing a screenshot of lib/secret-work-stuff, because it’s just another tab as far as the Atom user interface is concerned. Saving correctly updated the file on my virtual machine. Simple and straightforward.

Eventually you may want to stop the server. Again, from the Command Palette.

Stop Server From Command Palette
Stop Remote Atom Server from Command Palette

I’m still not ready to use Atom as my primary or even secondary editor, but it’s starting to feel useful, thanks to packages like remote-atom.

Atom Works on openSUSE Making a Jekyll Collection
comments powered by Disqus