Nano has already supplanted the great EMacs and Vim as the most popular text editor of all linux distros, for though it has many omissions in functionality it scores over the older, more complete programs in two important respects. First, it is slightly simpler; and secondly it has the text “^ Exit” inscribed in highlighted text on its footer

EDIT : This sees to be going over some people’s heads. It’s a hitchiker’s guide to the galaxy reference.

The Hitchhiker’s Guide has already supplanted the great Encyclopaedia Galactica as the standard repository of all knowledge and wisdom, for though it has many omissions . . . it scores over the older, more pedestrian work in two important respects. First, it is slightly cheaper; and secondly it has the words DON’T PANIC inscribed in large friendly letters on its cover.

  • ZoteTheMighty@lemmy.zip
    link
    fedilink
    arrow-up
    0
    ·
    19 hours ago

    Perhaps you’re right…or perhaps the Encyclopaedia Galactica is a better tool for navigating the galaxy if you’re willing to learn a trick or two about how to navigate it? No one ever argued that the Restaurant at the End of the Universe was the BEST restaurant, only that it was the one at the end.

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    24 hours ago

    Many were increasingly of the opinion that they’d all made a big mistake moving away from ‘ed’ in the first place, and some said that even ‘ed’ had been a bad move, and that no-one should ever have left punch cards.

  • burlemarx@lemmygrad.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    I understand why. People tried using vi/vim but couldn’t figure out how to exit the app. On the other hand, with Emacs, you need to use 4 keystrokes to do anything. It does not surprise me why nano is way used by default.

  • Digit@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 day ago

    *Ahem*

    mcedit

    under sung hero of easy tui text editors. [Has controls on screen.]

    overlooked because it’s part of mc, and thus does not show up in the text editor categories in package managers and websearches?

    could do a similar THGTTG bit for it. … or other parodies of other stuff… idk, my brain not conjuring such things with ease just now.

    (And yes, I missed the reference, at first, too… Thought about responding with some contrived towel elaboration).

  • FerrisEuler@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    1 day ago

    Nano’s used because it’s easier to use, which means the user interface is more intuitive than the others who insist you hit a key before making an edit.

  • esc@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    Both nano and emacs suffer from the same problem - bad defaults. You need to pass like ten options to nano for it to work as expected to edit configuration files and small scripts.

      • esc@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 day ago

        alias nano='nano -A -D -E -F -T 4 -Z -g -i -l -m -q -t -% -_' and you need to enable syntax highlighting in nanorc (not all distros enable it by default) include /usr/share/nano/*.nanorc also there are additional/improved rules for highlighting here https://github.com/galenguyer/nano-syntax-highlighting and you can rebind every key, but it seems that it doesn’t support ‘chaining’ of keys nor multiple modifier keys at the same time.

        • 🌞 Alexander Daychilde 🌞@lemmy.world
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 day ago

          Nice, thanks!

          For anyone wondering about the options: https://i.imgur.com/hAjTxJO.png

          Also, apparently you can create ~/.nanorc and put the following in for those (instead of an alias):

          set smarthome
          set boldtext
          set tabstospaces
          set multibuffer
          set tabsize 4
          set zap
          set showcursor
          set autoindent
          set linenumbers
          set mouse
          set indicator
          set saveonexit
          set stateflags
          set minibar

          I’ll play around with those and the syntax stuff. I definitely personally do not want the saveonexit behaviour, but you’ve started me on the path of looking at the other options, and that right there shows me it’s worth my time to look, so thank you :)

  • TaterTot@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’m ashamed to admit that, despite having read Hitchhiker’s Guide to the Galaxy several times, my Vim elitist mindset made me miss the reference.

    Sometimes you need a real good slice of humble pie to remember what’s important in life.

  • Solemarc@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 days ago

    I use helix for all my developer work and nano for “I need to edit this config file buried somewhere in /usr/…”. I never remember to do Sudo -E

  • heliotrope@retrofed.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    2 days ago

    I’ve used Vim, NeoVim, Micro, mg(1), JOE, and even MS Edit (both the original DOS version and the recent Rust clone). No matter how complex and tailored I wrote my config, though, the features I actually used were included in GNU nano and/or my command shell without any of the bugs, bloat, learning curve, or slop.

    Using it as my default just makes sense.

    • UnfortunateShort@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      2 days ago

      It is insane how far using the same shortcuts literally everything else can get you in the world of terminal text editors and yet here we are

  • Xeno@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    2 days ago

    Sometimes I catch myself opening nano inside emacs’ term. I literally forget I’m using emacs and just do it on instinct. I once also opened emacs inside emacs’ term and I just stared at the screen in disbelief.