<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>@Summitt Dweller’s Personal Blog - Atom</title>
    <link>https://blog.summittdweller.com/tags/atom/</link>
    <description>All entries in Atom on Personal Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    
    <lastBuildDate>Thu, 09 Jun 2022 09:14:39 -0500</lastBuildDate>
    <atom:link href="https://blog.summittdweller.com/tags/atom/" rel="self" type="application/rss+xml" />
    
      
      <item>
        <title>Atom No More?</title>
        <link>https://blog.summittdweller.com/posts/2022/06/atom-no-more/</link>
        <pubDate>Thu, 09 Jun 2022 09:14:39 -0500</pubDate>
        <author>Mark McFate</author>
        <guid>https://blog.summittdweller.com/posts/2022/06/atom-no-more/</guid>
        <description>&lt;p&gt;Yesterday one of my library colleagues at Grinnell College posted an &lt;a href=&#34;https://github.blog/2022-06-08-sunsetting-atom/&#34;&gt;announcement&lt;/a&gt; that &lt;a href=&#34;https://atom.io&#34;&gt;Atom&lt;/a&gt; would be retired (sunset) in December 2022.  Ouch, I have a lot of workflows that depend on &lt;em&gt;Atom&lt;/em&gt;!&lt;/p&gt;
&lt;p&gt;So, today part of my mission is to begin the process of migrating workflows, both work-related and personal/at-home, from &lt;em&gt;Atom&lt;/em&gt; to its most logical replacement, &lt;a href=&#34;https://code.visualstudio.com/&#34;&gt;Visual Studio Code&lt;/a&gt; or &lt;em&gt;VS Code&lt;/em&gt; as it&amp;rsquo;s largely known in the development community.  The other part of today&amp;rsquo;s mission was to update &lt;a href=&#34;https://blog.summittdweller.com/&#34;&gt;this blog&lt;/a&gt;, something I&amp;rsquo;ve not done in far too long!&lt;/p&gt;
&lt;p&gt;What better time to begin using &lt;em&gt;VS Code&lt;/em&gt; than right now, to edit &lt;a href=&#34;posts/2022/06/atom-no-more/&#34;&gt;this blog post&lt;/a&gt;?  So, that&amp;rsquo;s what I did, er, am doing.&lt;/p&gt;
&lt;p&gt;This could be a long story, but I&amp;rsquo;ll keep it short and just share the links, mostly.  I&amp;rsquo;ll begin on my personal Mac Mini, where I&amp;rsquo;m editing now, so I can test the entire process before repeating it on my other Mac workstations.&lt;/p&gt;
&lt;h2 id=&#34;install-using-homebrew&#34;&gt;Install Using Homebrew&lt;/h2&gt;
&lt;p&gt;I like to use &lt;code&gt;homebrew&lt;/code&gt; whenever possible to manage installations on my Mac. On this Mac Mini I found &lt;a href=&#34;https://formulae.brew.sh/cask/visual-studio-code&#34;&gt;this Homebrew Formulae&lt;/a&gt; and put it to use&amp;hellip;  All done.  Nice!&lt;/p&gt;
&lt;h2 id=&#34;adding-a-command-line--terminal-shortcut&#34;&gt;Adding a Command Line / Terminal Shortcut&lt;/h2&gt;
&lt;p&gt;I&amp;rsquo;ve gotten quite used to launching &lt;em&gt;Atom&lt;/em&gt; in my working directory with a simple command of the form &lt;code&gt;atom .&lt;/code&gt;.  Can I do the same with &lt;em&gt;VS Code&lt;/em&gt;?  Sure!  I used the guidance found in &lt;a href=&#34;https://www.freecodecamp.org/news/how-to-open-visual-studio-code-from-your-terminal/&#34;&gt;How to Open Visual Studio Code From Your Terminal&lt;/a&gt; to set that up.  Piece of cake.  I love finding timely, not stale, advice that just works!&lt;/p&gt;
&lt;p&gt;Now I can simply navigate to a project folder on my Mac and type &lt;code&gt;code .&lt;/code&gt; to open it all in &lt;em&gt;VS Code&lt;/em&gt;.  Sweet!&lt;/p&gt;
&lt;h2 id=&#34;replacing-my-atom-packages&#34;&gt;Replacing My Atom Packages&lt;/h2&gt;
&lt;p&gt;There are quite a few, nothing that I&amp;rsquo;ve written personally, but lots of published packages/extensions borrowed from others.  That&amp;rsquo;s one of the things I love(d) about &lt;em&gt;Atom&lt;/em&gt;. On my Mac Mini, and most other Macs, that list looks something like this:&lt;/p&gt;
&lt;p&gt;&lt;!-- hugo: layouts/_default/_markup/render-image.html --&gt;
&lt;figure&gt;
  &lt;img src=&#34;https://blog.summittdweller.com/img/my-atom-packages.png&#34; alt=&#34;My Installed Atom Packages&#34;&gt;
  &lt;figcaption&gt;&lt;/figcaption&gt;
&lt;/figure&gt;
&lt;!-- /hugo: layouts/_default/_markup/render-image.html --&gt;&lt;/p&gt;
&lt;p&gt;I told you there were quite a few.  I&amp;rsquo;m posting this image of my list just so I have a document as I begin to build the same into &lt;em&gt;VS Code&lt;/em&gt;.  Oh, when I added the above image to this post, I did so by dragging my screen-capture from my desktop directly into the &lt;em&gt;VS Code&lt;/em&gt; &lt;code&gt;EXPLORER&lt;/code&gt; panel (left side of my window), just like I used to do with &lt;em&gt;Atom&lt;/em&gt;.  Nice!&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;ll take my time and start replacing these as-needed.  First up&amp;hellip;&lt;/p&gt;
&lt;h3 id=&#34;replacing-iso-8601-timestamp&#34;&gt;Replacing &lt;code&gt;ISO 8601 timestamp&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;This &lt;em&gt;Atom&lt;/em&gt; package allows me to add the current date and time, in ISO 8601 format, to the frontmatter of a blog post like the one you are reading now.  I found and followed &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=jsynowiec.vscode-insertdatestring&#34;&gt;this documentation&lt;/a&gt; to set it up in &lt;em&gt;VS Code&lt;/em&gt;.  In &lt;em&gt;Atom&lt;/em&gt; I put my cursor at the point where my timestamp was needed, and went to the &lt;code&gt;Packages&lt;/code&gt; menu to insert it.  In &lt;em&gt;VS Code&lt;/em&gt; there doesn&amp;rsquo;t appear to be such a menu, but the documentation says I can use &lt;code&gt;command-shift-P&lt;/code&gt; to open the &amp;ldquo;command pallette&amp;rdquo;, where I can scroll to or search for the command I want to engage.  Another piece of cake!&lt;/p&gt;
&lt;p&gt;The result of inserting the current timestamp should be reflected in the frontmatter of this blog post.  &amp;#x1f600;&lt;/p&gt;
&lt;h2 id=&#34;more-goodies&#34;&gt;More Goodies&lt;/h2&gt;
&lt;p&gt;This morning I updated this entry after adding a &lt;code&gt;Duplicate file or directory&lt;/code&gt; command using the &lt;a href=&#34;https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-duplicate&#34;&gt;Duplicate Action&lt;/a&gt; extension from the marketplace.  It works very nicely!&lt;/p&gt;
&lt;p&gt;What&amp;rsquo;s could be better?  Well, finding a list of &lt;a href=&#34;https://dev.to/gsdev/10-vscode-extensions-i-can-t-live-without-1i5c&#34;&gt;10 &amp;ldquo;must-have&amp;rdquo; &lt;em&gt;VSCode&lt;/em&gt; extensions&lt;/a&gt; and working my way through them!&lt;/p&gt;
&lt;h2 id=&#34;luna-paint&#34;&gt;Luna Paint&lt;/h2&gt;
&lt;p&gt;I just stumbled across another handy &lt;em&gt;VSCode&lt;/em&gt; extension, &lt;code&gt;Luna Paint&lt;/code&gt;.  I&amp;rsquo;ve installed it, took all of 2 minutes to update TWO Macs, using the guidance provided in &lt;a href=&#34;https://www.youtube.com/watch?v=I_6bZQZheC0&#34;&gt;this YouTube video&lt;/a&gt;.  It rocks!   2022-07-19T10:07:39-05:00&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;With any luck I&amp;rsquo;ll be able to use this post to perform much the same configuration on my other Macs, soon.  I promised I&amp;rsquo;d keep this long story short, so, until next time&amp;hellip;&lt;/p&gt;
</description>
      </item>
      
    
      
      <item>
        <title>Adding &#34;Remote Atom&#34; to My DigitalOcean Server</title>
        <link>https://blog.summittdweller.com/posts/2020/03/adding-remote-atom-to-my-digitalocean-server/</link>
        <pubDate>Sun, 15 Mar 2020 00:00:00 +0000</pubDate>
        <author>Mark McFate</author>
        <guid>https://blog.summittdweller.com/posts/2020/03/adding-remote-atom-to-my-digitalocean-server/</guid>
        <description>&lt;p&gt;Last evening and early this morning I completed the addition of a new (to me) package to &lt;em&gt;Atom&lt;/em&gt; on my Mac Mini.  The package is &lt;a href=&#34;https://atom.io/packages/remote-atom&#34;&gt;Remote Atom&lt;/a&gt; and I found the configuration to be a little confusing, but in the end it was worth the work.&lt;/p&gt;
&lt;h2 id=&#34;use&#34;&gt;Use&lt;/h2&gt;
&lt;p&gt;The addition and configuration of this package allows me to open an &lt;em&gt;SSH&lt;/em&gt; terminal/session from my Mac Mini to my &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt; droplet and, with &lt;em&gt;Atom&lt;/em&gt; open locally on my Mac I can issue a command like&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ratom /opt/README.md
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;in the terminal connected to &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt;, and the specified &amp;ldquo;remote&amp;rdquo; file will open in my local &lt;em&gt;Atom&lt;/em&gt;.  Better still, if I make changes to the file and save them, the remote copy is automatically updated as saved.&lt;/p&gt;
&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;
&lt;p&gt;As I said, configuration was a little dicey.  Mine followed exactly what&amp;rsquo;s documented in &lt;a href=&#34;https://atom.io/packages/remote-atom&#34;&gt;the project site&lt;/a&gt;, complete with renaming &lt;code&gt;rmate&lt;/code&gt; to &lt;code&gt;ratom&lt;/code&gt; as suggested.  The real key to configuration has two parts:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;First, &lt;em&gt;Atom&lt;/em&gt; has to be open locally. This is necessary to get the package running so that it can accept connections from the remote, and that also requires that the package is auto-started along with &lt;em&gt;Atom&lt;/em&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Next, I added the following specs to &lt;code&gt;~/.ssh/config&lt;/code&gt; on my Mac Mini:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Host 104.248.237.235
  RemoteForward 52698 localhost:52698
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That addition to &lt;code&gt;~/.ssh/config&lt;/code&gt; allows me to run my usual &lt;em&gt;ssh&lt;/em&gt; connection commands without having to specify any remote/reverse tunneling&amp;hellip;the config does it for me automatically when the &amp;ldquo;Host&amp;rdquo; or target is &lt;em&gt;summitt-dweller-DO-docker&lt;/em&gt;.  Without that spec I&amp;rsquo;d have to configure each &lt;em&gt;ssh&lt;/em&gt; connection I open, like so:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ssh -R 52698:localhost:52698 administrator@104.248.237.235
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That&amp;rsquo;s a wrap. Until next time&amp;hellip;&lt;/p&gt;
</description>
      </item>
      
    
  </channel>
</rss>
