<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: knowvergreen</title>
    <description>The latest articles on DEV Community by knowvergreen (@knowverdev).</description>
    <link>https://dev.to/knowverdev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1266824%2F8befae13-62bc-465e-8a1d-fa38022b2b0c.png</url>
      <title>DEV Community: knowvergreen</title>
      <link>https://dev.to/knowverdev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/knowverdev"/>
    <language>en</language>
    <item>
      <title>`Nano`sphere</title>
      <dc:creator>knowvergreen</dc:creator>
      <pubDate>Wed, 31 Jan 2024 16:24:59 +0000</pubDate>
      <link>https://dev.to/knowverdev/nanosphere-13e3</link>
      <guid>https://dev.to/knowverdev/nanosphere-13e3</guid>
      <description>&lt;h2&gt;
  
  
  Blastoff 🚀
&lt;/h2&gt;

&lt;p&gt;You know!!! I just wanted to make nano work for me, and I went down this rabbit hole, just a bit 😂🤣&lt;/p&gt;

&lt;p&gt;If I want to get line numbers, have mouse functionality, and at least be able to use &lt;code&gt;CTRL-V&lt;/code&gt;, &lt;code&gt;CTRL-C&lt;/code&gt;, and &lt;code&gt;CTRL-F&lt;/code&gt; 🫤 you know🧐 things I'm used to on non-terminal things 😩 then, I thought 🤔 I need to setup a file to customize nano to my taste, right? Sure do!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nm3aglzfd8nu6bl05p7.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1nm3aglzfd8nu6bl05p7.jpg" alt="Black &amp;amp; White two hands, fist close, with thumbs touching" width="800" height="533"&gt;&lt;/a&gt;  Photo by srini on &lt;a href="https://www.pexels.com/photo/close-up-of-hands-of-man-and-woman-touching-thumbs-12798521/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The Yellow Brick Road
&lt;/h2&gt;

&lt;p&gt;Welp, I went down the yellow brick road, or should I say fell down the rabbit hole?! 😂 Either way, I created a &lt;code&gt;~/.config/nano/&lt;/code&gt; directory and placed a &lt;code&gt;.nanorc&lt;/code&gt; file in there. I also created a &lt;code&gt;~/.cache/nano/backups/&lt;/code&gt; file to act as another location where data from what I'm working on gets saved too when I hit save on the original. The way I'm seeing it is like a manual versioning 😁.&lt;/p&gt;

&lt;p&gt;Now, I said something key here, &lt;em&gt;hit save&lt;/em&gt;. So, it doesn't save automatically. That's key, backups only occur when original saves 😁 Either way, initial goal ✅&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flnem5ov89er5y3uw19q6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flnem5ov89er5y3uw19q6.png" alt="Screenshot of terminal showing creation of nano and backup folders" width="698" height="60"&gt;&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;:~$ mkdir -p ~/.config/nano ## contains the nanorc file

:~$ mkdir -p ~/.cache/nano/backups/ ## backup folder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzeombc7hhw1yle6niy5z.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzeombc7hhw1yle6niy5z.jpg" alt="A person holding a tablet and raising her hand Description&amp;lt;br&amp;gt;
automatically generated" width="800" height="1164"&gt;&lt;/a&gt;Photo by Andrea Piacquadio on &lt;a href="https://www.pexels.com/photo/photo-of-a-woman-holding-an-ipad-761977/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Nope, not done, wait a minute, didn't stop ⛔ there. I wanted to keep &lt;del&gt;playing&lt;/del&gt;, oops, I meant experimenting with it... and for sure, yep, my experimenting 🤬 it up 🤣😂 I mean, I had my line numbers, auto indent, and &lt;code&gt;CTRL-V&lt;/code&gt;, &lt;code&gt;CTRL-C&lt;/code&gt;, &lt;code&gt;CTRL-S&lt;/code&gt; and mouse support 🪤, but then I had to go and be like why not add &lt;code&gt;syntax&lt;/code&gt; support and shit 🤔👀&lt;/p&gt;

&lt;p&gt;Me looking at myself 👀🤣 I mean... What could go wrong?!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq192wmemn1czshqx7el.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foq192wmemn1czshqx7el.jpg" alt="A person in a hat Description automatically&amp;lt;br&amp;gt;
generated" width="800" height="532"&gt;&lt;/a&gt;Photo by Brett Sayles on &lt;a href="https://www.pexels.com/photo/man-with-facial-expression-at-picture-taking-2771786/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Really!!! Why!!!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi0kn7xpl1i938mzbh6tr.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi0kn7xpl1i938mzbh6tr.jpg" alt="A person in a suit with his hands up in front of a computer&amp;lt;br&amp;gt;
Description automatically generated" width="800" height="533"&gt;&lt;/a&gt;Photo by Andrea Piacquadio on &lt;a href="https://www.pexels.com/photo/man-showing-distress-3777572/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Shit went wrong! 🙀
&lt;/h2&gt;

&lt;p&gt;I indeed went down that rabbit hole again 🐰 and, too long didn't read (TLDR), I landed on &lt;a href="https://github.com/scopatz/nanorc" rel="noopener noreferrer"&gt;Scopatz/nanorc Github&lt;/a&gt;, which had a nice magic wand 🪄 in the form of an &lt;a href="https://github.com/scopatz/nanorc?tab=readme-ov-file#1-automatic-installer" rel="noopener noreferrer"&gt;install.sh&lt;/a&gt; 🙌 Welp, I would like to say that all went well, but as you can probably tell by the next paragraph, I 🤬 again 🤣 I followed steps and all, the issue though, I wasn't expecting to get assimilated&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1izdvq9hbs5dtsenzeqs.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1izdvq9hbs5dtsenzeqs.jpg" alt="A group of men standing in a line, with the words " width="800" height="800"&gt;&lt;/a&gt;Image by &lt;a href="https://pixabay.com/users/diggeo-305964/?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaign=image&amp;amp;utm_content=373783" rel="noopener noreferrer"&gt;George&lt;/a&gt; from &lt;a href="https://pixabay.com//?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaign=image&amp;amp;utm_content=373783" rel="noopener noreferrer"&gt;Pixabay&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So, now none of my shit worked! I'm laughing at myself and pulling my hair and laughing again 🤣&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqvckexsygpjhrcgvu09.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqvckexsygpjhrcgvu09.jpg" alt="A person holding her hair Description automatically&amp;lt;br&amp;gt;
generated" width="800" height="534"&gt;&lt;/a&gt;Photo by SHVETS production on &lt;a href="https://www.pexels.com/photo/young-obese-woman-rumpling-hair-with-closed-eyes-in-white-studio-6975383/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Nano&lt;/code&gt; wasn't reading the &lt;code&gt;~/.config/nano&lt;/code&gt; directory anymore. No matter what I tried to do, from &lt;code&gt;symlink&lt;/code&gt; or renaming the &lt;code&gt;.nanorc&lt;/code&gt; file in that directory and &lt;code&gt;re-symlink&lt;/code&gt; or adding the &lt;code&gt;configs&lt;/code&gt; I had in my &lt;code&gt;./nano/nanorc&lt;/code&gt; to the &lt;code&gt;.nanorc&lt;/code&gt; file created at the &lt;code&gt;~/.nano/nanorc.nanorc&lt;/code&gt;, nothing and I mean nothing worked. Instead, the &lt;code&gt;errors&lt;/code&gt; came to work though 😁&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Error in ~/.nano/nanorc.nanorc on line 52: Command "set" not allowed in included file

Error in ~/.nano/nanorc.nanorc on line 59: Command "include" not allowed in included file

Error in ~/.nano/nanorc.nanorc on line 76: Command "bind" not allowed in included file
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, after a bit of looking around trying to find how to get things working together and even trying things out myself, of course I find that nano has some minimal syntax enabled by default, to my understanding, of the &lt;a href="https://wiki.gentoo.org/wiki/Nano" rel="noopener noreferrer"&gt;nano wiki&lt;/a&gt; on &lt;a href="https://wiki.gentoo.org/" rel="noopener noreferrer"&gt;Gentoo&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I got two other things out of that too 😁 One, if I want to get real use out of &lt;a href="https://wiki.gentoo.org/wiki/Nano#Syntax_highlighting" rel="noopener noreferrer"&gt;syntax support&lt;/a&gt; in &lt;code&gt;nano&lt;/code&gt;, I will have to enable &lt;code&gt;plugins&lt;/code&gt; and things, which I thought I was doing 😁 Two, something from the &lt;a href="https://wiki.gentoo.org/wiki/Nano#Configuration" rel="noopener noreferrer"&gt;Gentoo Configuration&lt;/a&gt; section caught my eyes. Guilty, ✋, I was skimming through the text, catching what I think was important, to me, and caught this: "to change options only for one user, set the option in the user's &lt;code&gt;~/.nanorc&lt;/code&gt; file. As a general rule, files present in a user's &lt;code&gt;$HOME&lt;/code&gt; directory override system wide settings". So now I know why I got "Borged", or assimilated, for those who don't know Star Trek parlor 😁&lt;/p&gt;

&lt;p&gt;Anyways, what I decided to do was remove the created directories, which were done by the &lt;a href="https://github.com/scopatz/nanorc?tab=readme-ov-file#1-automatic-installer" rel="noopener noreferrer"&gt;automated installer&lt;/a&gt; from &lt;a href="https://github.com/scopatz" rel="noopener noreferrer"&gt;scopatz's&lt;/a&gt; &lt;a href="https://github.com/scopatz/nanorc" rel="noopener noreferrer"&gt;githut&lt;/a&gt;. I copied his configurations, to a custom &lt;code&gt;.nanorc&lt;/code&gt; file 🧐 I called &lt;code&gt;syntax_config.nanorc&lt;/code&gt; and then I link it to our my main &lt;code&gt;~/.config/nano/nanorc.nanorc&lt;/code&gt;, in same directory, through an &lt;code&gt;include&lt;/code&gt; tag and boom we got &lt;code&gt;nano&lt;/code&gt; back baby 😎🙌&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ctkzizfgav24x1cx5og.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7ctkzizfgav24x1cx5og.jpg" alt="A group of people in a cloud of colored powder Description&amp;lt;br&amp;gt;
automatically generated" width="800" height="450"&gt;&lt;/a&gt;Photo by Marcin Dampc on &lt;a href="https://www.pexels.com/photo/group-of-people-having-neon-party-1684187/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Side trick 😉
&lt;/h2&gt;

&lt;p&gt;Side note, when I ran the &lt;a href="https://github.com/scopatz/nanorc?tab=readme-ov-file#1-automatic-installer" rel="noopener noreferrer"&gt;auto installer&lt;/a&gt;, provided by &lt;a href="https://github.com/scopatz" rel="noopener noreferrer"&gt;scopatz&lt;/a&gt;, there was an error message that kept popping up when accessing &lt;code&gt;nano&lt;/code&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvgwpy8zirpgicghpu7b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgvgwpy8zirpgicghpu7b.png" alt="A screenshot of a computer terminal, linux, showing nano editor" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Error in ~/.nano/nanorc.nanorc on line 26: Color 'normal' takes     no prefix&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;To fix this problem, I opened the &lt;code&gt;./nanorc.nanorc&lt;/code&gt; file and edited the line that said &lt;code&gt;icolor brightnormal " brightnormal"&lt;/code&gt; by removing prefix word &lt;code&gt;bright&lt;/code&gt; from both &lt;code&gt;normal&lt;/code&gt; tags, then saved and exited.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtzxio3jchju7mfvxwcl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvtzxio3jchju7mfvxwcl.png" alt="A screenshot of computer screen with text and a red box pointing to changed section of config file" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, if something similar ends happening somewhere 😭, then what I would do is go into the file and copy everything and save them into a text document and back it up somewhere so that I can create that file I spoke of earlier, above ⬆️&lt;/p&gt;

&lt;p&gt;Now, I don't know about you, but I am good today with being a glutton for punishment, so I went ahead and pasted the &lt;a href="https://github.com/scopatz/nanorc?tab=readme-ov-file#1-automatic-installer" rel="noopener noreferrer"&gt;install.sh&lt;/a&gt;, with the corrected section, from &lt;a href="https://github.com/scopatz" rel="noopener noreferrer"&gt;scopatz&lt;/a&gt;'s &lt;a href="https://github.com/scopatz/nanorc?tab=readme-ov-file#1-automatic-installer" rel="noopener noreferrer"&gt;auto installer&lt;/a&gt; so that if I somehow misplaced it, hey, 🤷, I got it here too 😁&lt;/p&gt;

&lt;p&gt;&lt;code&gt;curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh&lt;/code&gt;&lt;br&gt;
from his &lt;a href="https://github.com/scopatz/nanorc" rel="noopener noreferrer"&gt;Github&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsh2wgie42ucewxeodhja.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsh2wgie42ucewxeodhja.png" alt="Illustration of Man shrugging" width="800" height="1421"&gt;&lt;/a&gt; illustration by &lt;a href="https://openclipart.org/artist/Firkin" rel="noopener noreferrer"&gt;Firkin&lt;/a&gt; - uploaded on &lt;a href="https://openclipart.org/detail/242854/comic-character-316" rel="noopener noreferrer"&gt;Openclipart.org&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;############# NANO SYNTAX HIGHLIGHTING START #############



## Here is an example for nanorc files.

##

syntax "Nanorc" "\.?nanorc$"

comment "#"



## Possible errors and parameters

icolor brightred "^[[:space:]]*((un)?set|include|syntax|i?color).*$"

## Colors

icolor black " black"

icolor red " red"

icolor green " green"

icolor yellow " yellow"

icolor blue " blue"

icolor magenta " magenta"

icolor cyan " cyan"

icolor white " white"

icolor normal " normal"

icolor brightblack " brightblack"

icolor brightred " brightred"

icolor brightgreen " brightgreen"

icolor brightyellow " brightyellow"

icolor brightblue " brightblue"

icolor brightmagenta " brightmagenta"

icolor brightcyan " brightcyan"

icolor brightwhite " brightwhite"

icolor normal " normal"

icolor ,black ",black "

icolor ,red ",red "

icolor ,green ",green "

icolor ,yellow ",yellow "

icolor ,blue ",blue "

icolor ,magenta ",magenta "

icolor ,cyan ",cyan "

icolor ,white ",white "

icolor ,normal ",normal "

icolor magenta "^[[:space:]]*i?color\&amp;gt;" "\&amp;lt;(start|end)="

icolor yellow "^[[:space:]]*(set|unset)[[:space:]]+(errorcolor|functioncolor|keycolor|numbercolor|selectedcolor|statuscolor|stripecolor|titlecolor)[[:space:]]+(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\&amp;gt;"



## Keywords

icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(afterends|allow_insecure_backup|atblanks|autoindent|backup|backupdir|boldtext|brackets|breaklonglines|casesensitive|constantshow|cutfromcursor|emptyline|errorcolor|fill|functioncolor|guidestripe|historylog|jumpyscrolling|keycolor|linenumbers|locking|matchbrackets|morespace|mouse|multibuffer|noconvert|nohelp|nonewlines|nopauses|nowrap|numbercolor|operatingdir|positionlog|preserve|punct|quickblank|quotestr|rawsequences|rebinddelete|regexp|selectedcolor|showcursor|smarthome|smooth|softwrap|speller|statuscolor|stripecolor|suspend|tabsize|tabstospaces|tempfile|titlecolor|trimblanks|unix|view|whitespace|wordbounds|wordchars|zap)\&amp;gt;"

icolor green "^[[:space:]]*(bind|set|unset|syntax|header|include|magic)\&amp;gt;"

## Strings

icolor white ""(\\.|[^"])*""

## Comments

icolor brightblue "^[[:space:]]*#.*$"

icolor cyan "^[[:space:]]*##.*$"



## Trailing whitespace

icolor ,green "[[:space:]]+$"



############# NANO SYNTAX SETTINGS FIN #############
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Getting there 🐌
&lt;/h2&gt;

&lt;p&gt;I got help when it came to creating my &lt;code&gt;.nanorc&lt;/code&gt; file too. I went to these two sites:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://www.nano-editor.org/" rel="noopener noreferrer"&gt;NANORC (nano-editor.org)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://bash-prompt.net/guides/nanorc-settings/" rel="noopener noreferrer"&gt;Some Useful GNU nano Settings (bash-prompt.net)&lt;/a&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I especially ripped from &lt;a href="https://bash-prompt.net/guides/nanorc-settings/" rel="noopener noreferrer"&gt;bash-prompt.net&lt;/a&gt; (THANK YOU!!!!). &lt;a href="https://bash-prompt.net/guides/nanorc-settings/" rel="noopener noreferrer"&gt;Bash-prompt.net&lt;/a&gt; made it easier to understand &lt;a href="https://www.nano-editor.org/dist/v2.9/nanorc.5.html" rel="noopener noreferrer"&gt;nanorc-editor.org&lt;/a&gt; site and helped me to add the set mouse option to it. As I go, I'll look to add more options, that make sense to me.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;############# NANO SETTINGS START #############



# Non-default settings

set atblanks        # wrap line at blanks.

set cutfromcursor   # CTRL+K cuts from cursor position to end of line.

#set nohelp          # Disable the help information (CTRL+G to view the help screen).

set softwrap        # Enable softwrap of lines.

set suspend         # Enables CTRL+Z to suspend nano.

set tabsize 4       # Sets tab-to-spaces size to 4.

set tabstospaces    # Converts TAB key press to spaces.

include "/usr/share/nano/*.nanorc" # Enables the syntax highlighting.

include "~/.config/nano/Syntax_config.nanorc" # Enables the syntax highlighting. Custom syntax - user

set speller "aspell -x -c"         # Sets what spelling utility to use.

set constantshow    # Displays useful information e.g. line number and position in the bottom bar.

set linenumbers     # Lines are numbered.

set casesensitive   # Case insensitive search.

set historylog      # Save the last 100 history searches for later use.

set positionlog     # Saves the cursor position between editing sessions.

set zap             # Allows you to highlight text (CTRL+SHIFT+ARROW) and delete it with backspace.

set autoindent      # A new line will have the same number of leading spaces as the previous one.

set indicator       # Displays a scroll bar on the right that shows the position and size of the current view port.

set minibar         # Displays file name and other information in the bottom bar. Removes top bar.

set mouse           # . When enabled, mouse clicks can be used to place the cursor, set the mark (with a double click), and execute shortcuts.



# Enable and set a working backup directory

set backup                              # Creates backups of your current file.

set backupdir "~/.cache/nano/backups/"  # The location of the backups.



# Shortcut key bindings

bind ^C copy main       # CTRL+C - Copy

bind ^V paste all       # CTRL+V - Past

bind ^F whereis all     # CTRL+F - Find

bind ^S savefile main   # CTRL+S - Save



############# NANO GENERAL SETTINGS FIN #############
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Realization💡
&lt;/h2&gt;

&lt;p&gt;Now, things are running smooth, at least to me 🤞 Welp, too soon man! 😂 I spoke to darn soon 🤣&lt;/p&gt;

&lt;p&gt;So, if I hit &lt;code&gt;CTRL+X&lt;/code&gt; to exit after making changes to whatever I'm&lt;br&gt;
working on in nano during that buffer messaging, it seems, to me, that nano froze as I was still seeing that buffer message, as in screenshot.&lt;/p&gt;

&lt;p&gt;Actually, nano was waiting on this dodo 🦤 It wasn't frozen 🥶. All I had to do was press &lt;code&gt;(Y)&lt;/code&gt; as I usually do when I exit after making changes to something in &lt;code&gt;nano&lt;/code&gt; and then &lt;code&gt;nano&lt;/code&gt; asking me if I wanted to &lt;code&gt;apply&lt;/code&gt;/&lt;code&gt;save&lt;/code&gt; the changes by selecting &lt;code&gt;(Y)es&lt;/code&gt; or &lt;code&gt;(N)o&lt;/code&gt; before completely exiting &lt;code&gt;nano&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugsd79fg7p5rw7q2lpas.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fugsd79fg7p5rw7q2lpas.png" alt="A screenshot of nano editor opened in the terminal" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Don't know why I was getting this buffer message/warning/info&lt;br&gt;
though... I made a note of it as something seen 👀🤨. I don't think it's from the customization...!?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzs3y9tzwk9jwzca3wraa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzs3y9tzwk9jwzca3wraa.png" alt="A child with his hand on his head Description automatically&amp;lt;br&amp;gt;
generated" width="800" height="533"&gt;&lt;/a&gt; Image by &lt;a href="https://pixabay.com/users/annakovalchuk-5692419/?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaign=image&amp;amp;utm_content=2736655" rel="noopener noreferrer"&gt;Hanna Kovalchuk&lt;/a&gt; from &lt;a href="https://pixabay.com/?utm_source=link-attribution&amp;amp;utm_medium=referral&amp;amp;utm_campaign=image&amp;amp;utm_content=2736655" rel="noopener noreferrer"&gt;Pixabay&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Actually, yeah, my bad, it is from the customization. I enabled &lt;code&gt;set nohelp&lt;/code&gt;. I realized this when I spun up another VM and customized &lt;code&gt;nano&lt;/code&gt; there too. So, I disabled it by commenting it out &lt;code&gt;#set nohelp&lt;/code&gt; or, If I was inclined, I would just not include the option at all &lt;del&gt;&lt;code&gt;set nohelp&lt;/code&gt;&lt;/del&gt;.&lt;/p&gt;

&lt;p&gt;While going through the config file, I found out that the help can be accessed by hitting &lt;code&gt;CTRL-G&lt;/code&gt;. I might need to put that down on a post-it notes somewhere 🧐🤣 As much as the help menu's been at the bottom, there, I got so used to it that I didn't notice it until it wasn't there anymore 😂 and in looking to getting it back I learned something new by doing this exercise.&lt;/p&gt;

&lt;p&gt;I'm glad, now I know that I get full access to greater definition right at my fingertips, literally 😁🙌 I don't always have to go online to find the info.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkaj36y0bq9g0vsy2s79i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkaj36y0bq9g0vsy2s79i.png" alt="Screenshot of nano settings with a red conversation box" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The story of the aspell
&lt;/h2&gt;

&lt;p&gt;As an aside, I remembered that &lt;code&gt;set speller "aspell -x -c"&lt;/code&gt;, was part of the &lt;code&gt;.nanorc&lt;/code&gt; config from &lt;a href="https://bash-prompt.net/guides/nanorc-settings/" rel="noopener noreferrer"&gt;bash-promt.net&lt;/a&gt; too. &lt;a href="https://elliotcooper.com/" rel="noopener noreferrer"&gt;Elliot Cooper&lt;/a&gt;, the person to whom the site belongs, and he did mention something about installing and setting up &lt;a href="http://aspell.net/" rel="noopener noreferrer"&gt;GNU Aspel&lt;/a&gt;, no instructions though 😁 So, I went to &lt;a href="http://aspell.net/" rel="noopener noreferrer"&gt;GNU Aspel&lt;/a&gt;'s site, and they do have an &lt;a href="http://aspell.net/man-html/Installing.html#Installing" rel="noopener noreferrer"&gt;Appendix&lt;/a&gt; just on installing... 🧐😭&lt;/p&gt;

&lt;p&gt;So, yeah, no &lt;a href="https://wiki.debian.org/deb" rel="noopener noreferrer"&gt;.deb&lt;/a&gt; file, no &lt;a href="https://developer.ibm.com/articles/what-is-curl-command/" rel="noopener noreferrer"&gt;curl&lt;/a&gt;/&lt;a href="https://linuxize.com/post/wget-command-examples/" rel="noopener noreferrer"&gt;wget&lt;/a&gt;, no &lt;a href="https://www.digitalocean.com/community/tutorials/what-is-apt" rel="noopener noreferrer"&gt;apt repository&lt;/a&gt; that they maintain. OK, cool 😎 no problem. I'll keep looking on &lt;a href="https://ubuntu.com/download" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt; side to see if &lt;a href="https://ubuntu.com/download" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt; has something 😁 you know. I could see that &lt;a href="http://aspell.net/" rel="noopener noreferrer"&gt;GNU Aspel&lt;/a&gt;'s appendix does seem to have a recipe for how to &lt;code&gt;make&lt;/code&gt; it myself if I wanted to go that route, as I pointed out earlier, however, since I have &lt;a href="https://ubuntu.com/" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt;, I kept stomping the pavement and then it happened, I was able to find &lt;code&gt;sudo apt -y install aspell aspell-en&lt;/code&gt; instead 😊🙌&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ofzboq6r7v1gbbqnl3b.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ofzboq6r7v1gbbqnl3b.jpg" alt="A group of people standing together Description automatically&amp;lt;br&amp;gt;
generated" width="800" height="533"&gt;&lt;/a&gt; Photo by Helena Lopes on &lt;a href="https://www.pexels.com/photo/anonymous-friends-standing-together-at-sunset-in-mountains-4453153/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Curiosity didn't kill the cat 😼
&lt;/h2&gt;

&lt;p&gt;I had to do it 😂🤣!! I went and I looked to see if another language was available for download, and sure enough &lt;a href="https://ubuntu.com/download" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt; had another one for download, for &lt;a href="https://ftp.gnu.org/" rel="noopener noreferrer"&gt;GNU Aspel&lt;/a&gt; 🙌&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9vd52qc5u5ymf78yc849.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9vd52qc5u5ymf78yc849.png" alt="Screenshot of ubuntu terminal search of aspell language afrikaans" width="800" height="238"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;sudo apt search aspell-af #Afrikaans&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Yes, I kept the curiosity going 😂, that ain't going away man. So, I looked to see if &lt;a href="https://ftp.gnu.org/" rel="noopener noreferrer"&gt;GNU Aspel&lt;/a&gt; had &lt;a href="https://ftp.gnu.org/gnu/aspell/dict/0index.html" rel="noopener noreferrer"&gt;other languages&lt;/a&gt; in general and yes, that they do. Now, I don't know if all of them are available on &lt;a href="https://ubuntu.com/download" rel="noopener noreferrer"&gt;Ubuntu&lt;/a&gt; for download from their apt repository, as all I needed was English. Wasn't that curious I guess 🤣😂&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzgpyxfo9eue9j07lb71.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzzgpyxfo9eue9j07lb71.png" alt="A screenshot of some of the available Aspell dictionaries" width="800" height="727"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once I downloaded the dictionary of my choice, I evaluated it by opening one of my &lt;code&gt;.nanorc&lt;/code&gt; files and pressing &lt;code&gt;F12&lt;/code&gt; to fire up speller, sadly no autosuggestions like Microsoft Word or programs like that. It needs initial user interaction 🫤🤷 Ok, now that I see &lt;code&gt;aspell&lt;/code&gt; and now know it's working!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zuzjzpw5i386sx6sdvi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5zuzjzpw5i386sx6sdvi.png" alt="Screenshot of Aspell suggestion after pressing F12" width="800" height="510"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fin 🙋‍♂️
&lt;/h2&gt;

&lt;p&gt;I'm satisfied with the outcome 🙌😁&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftur4m4xuu0b4njfbw9dn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftur4m4xuu0b4njfbw9dn.jpg" alt="A person holding a glass of liquid Description automatically generated" width="800" height="645"&gt;&lt;/a&gt; Photo by Terricks Noah on &lt;a href="https://www.pexels.com/photo/woman-wears-white-lace-bathrobe-holds-shot-glass-936571/" rel="noopener noreferrer"&gt;Pexels.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hope this helps!&lt;/p&gt;

&lt;p&gt;Thank you,&lt;/p&gt;

&lt;p&gt;Blogging out! 😎😊✌️&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>learning</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
