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.

  • rumba@lemmy.zip
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 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.

  • Digit@lemmy.today
    link
    fedilink
    English
    arrow-up
    3
    ·
    7 hours 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
    2
    ·
    7 hours 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.

  • TaterTot@piefed.social
    link
    fedilink
    English
    arrow-up
    24
    ·
    19 hours 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.

    • Skullgrid@lemmy.worldOP
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      7 hours ago

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

      digital watches

  • esc@piefed.social
    link
    fedilink
    English
    arrow-up
    12
    ·
    18 hours 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
        4
        ·
        4 hours 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
          1
          ·
          4 hours 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 :)

  • heliotrope@retrofed.com
    link
    fedilink
    English
    arrow-up
    19
    ·
    24 hours 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.

    • Cyno@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      Same, although I did wish I could like, just select text with my mouse properly, or move the cursor to a place by clicking there, delete blocks without cutting them, and/or remember the copy/paste/undo shortcuts…etc

    • chonglibloodsport@lemmy.ca
      link
      fedilink
      arrow-up
      1
      ·
      3 hours ago

      Vi lets me jump to the place I need to be and make edits to a config file very sticky, simply, and efficiently. But all that came at the cost of the steep learning curve.

    • homes@piefed.world
      link
      fedilink
      English
      arrow-up
      43
      ·
      edit-2
      1 day ago

      That’s why nano gets used more than vi/vim. In the past, the majority of people using terminal text editors were geeks and developers. Now the majority of people using the terminal text editors are more often casual users who have no use for putting the time and effort to learn vi/vim, especially because they have no need for the extended functionality

      • chellomere@lemmy.world
        link
        fedilink
        arrow-up
        15
        ·
        1 day ago

        I don’t get you people. Proper copy/paste support is “extended functionality”? I beg to differ. This is basic functionality.

        And no, single line copy/paste as offered by nano, or copy and paste through the terminal is not proper copy/paste.

        • CanadaPlus@lemmy.sdf.org
          link
          fedilink
          arrow-up
          0
          ·
          5 hours ago

          That’s true, if you had no GUI for an extended period, it’d be worth learning something that could do that. Although, other people are saying there’s a way in nano.

          If you’re using a GUI, and working in an emulator, who cares if it’s not “proper”?

        • leMe@anarchist.nexus
          link
          fedilink
          English
          arrow-up
          3
          ·
          15 hours ago

          this functionality is only bloated and complicated for the person using a terminal a couple of times a year.

          i say that while looking like this when i see any editor but vim used:

          but i know my co-worker looks at me like this, because he knows he only ever uses vi:

        • homes@piefed.world
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          19 hours ago

          Sit down by the campfire my dear youngin’ and I’ll talk you tales of a terror myth called ASSEMBLY

          OOOOOooOOOOOooOOO!

          Machine language! Director memory addressing! AAAAAaaaaa!

          MWAHAHAHAHAHAHAHAHA!!!

          Computers existed before the year 2000, you silly children…

            • homes@piefed.world
              link
              fedilink
              English
              arrow-up
              5
              ·
              edit-2
              12 hours ago

              https://demoscene.assembly.org/

              My favorite when I was a kid was absolutely, and without a doubt Second Reality by Future Crew. Full screen 3-D object rendering at 30 frames a second on a 486SX/25 CPU without a graphics card. in 1993

              Future Crew, active in the early 90s, was a legendary group within the demoscene. They were acclaimed for their groundbreaking demos, like “Second Reality”, that demonstrated advanced programming, visual artistry, and music composition. These works set new standards for what was possible in real-time computer graphics, and they inspired countless artists and programmers around the world. Despite the group’s dissolution in 1994, Future Crew’s influence on the demoscene and the broader fields of graphics and game development is undeniable, and their legacy continues to inspire creativity in the digital world.

              Fucking legendary.

              And it fit on a floppy

              Edit: I remember my friend Nick brought back a copy of Second Reality from ASSEMBLY 93, an annual convention of assembly developers where they would show off their programming prowess with these demos. Me and my friends got to see it before it hit the BBSs and Usenet. So fresh, yo!

              • bufalo1973@piefed.social
                link
                fedilink
                English
                arrow-up
                1
                ·
                4 hours ago

                I remember seen it in 1993 or 1994 in a friend’s PC with a Gravis Ultrasound. It was AMAZING. For comparison, the games of that year were almost all 16 bits platformers.

                • homes@piefed.world
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  edit-2
                  2 hours ago

                  I think it took me over an hour to get my sound blaster pro configured just right

                  Here’s another reference from the era, let’s see if you get it:

                  “Did you bring the pages?”

                  It was from a game, but not a platformer

              • teslekova@sh.itjust.works
                link
                fedilink
                arrow-up
                2
                ·
                7 hours ago

                Just watched it all and goddamn. Rabbit hole time. Haven’t remembered what it was like back then for a long time. An age of marvels and wonder.

              • teslekova@sh.itjust.works
                link
                fedilink
                arrow-up
                2
                ·
                7 hours ago

                That’s incredible work.

                And it makes me remember another gem of the period, Elite! I first played Elite Plus, but when I heard about the original, the magic of being able to navigate all those worlds in such a small format fired my imagination.

          • chellomere@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            11 hours ago

            Ah, I looked it up, it seems it actually has multiline copy/paste? Alt-A to mark the start of the text, Alt-6 to copy, Ctrl-U to paste. I’ll try it out next time I’m stuck in nano, thanks!

        • esc@piefed.social
          link
          fedilink
          English
          arrow-up
          3
          ·
          19 hours ago

          Nano has proper copy/pate, it works identical to any text editor. Mark -> copy/cut -> paste

  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    75
    ·
    edit-2
    1 day ago

    Many were increasingly of the opinion that they’d all made a big mistake in making text editors in the first place. And some said that even making operating systems had been a bad move, and that no one should ever have built computers at all.

  • edinbruh@feddit.it
    link
    fedilink
    English
    arrow-up
    36
    ·
    edit-2
    1 day ago

    It’s there and it’s easy. Most people don’t use terminal text editors unless they are SSHing in a server, and they would only do that sporadically, so it makes no sense to become proficient in a complex text editor like vim or Emacs for that little use case.

    Sidenote: personally, I learned vim once, and used it extensively every day for two years. I stopped using it for one year and was back to square one. Now I use vscode for everything… Even when I’m using SSH, because vscode supports SSH

    • Bilb!@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 hours ago

      I use kate for almost everything. I can open and edit files over sftp, and it has a terminal like vscode as well. I should try vscode again, it’s been a while.

    • Zarobi@aussie.zone
      link
      fedilink
      English
      arrow-up
      2
      ·
      18 hours ago

      I only use terminal text editors anymore when I need to edit config files à la sudo nano. I just don’t trust visual text editors to do that stuff, I’ve been burned too many times in the past. Files “saving” but not actually saving. Files actually corrupting or changing ownership on save. Etc. Good old nano, doesn’t fuck with the critical system files any more than I already am.

    • jaybone@lemmy.zip
      link
      fedilink
      English
      arrow-up
      8
      ·
      1 day ago

      It’s kind of sad that many people don’t use the shell / terminal anymore, especially as part of their regular development flow. There’s so much scripting and so many shell commands you can use that will do things you just can’t do in vscode. And having an editor like vi immediately available is part of that flow.

      For me, vim and the shell are my primary IDE. I rarely fire up vscode. But I guess I’m getting old. Still faster than the younger devs who mainly use vscode and then struggle when they are forced to use the command line due to whatever circumstance where vscode is not available or appropriate. Kind of makes me sad. Feels like a valuable skill is being lost.

      • fxdave@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        17 hours ago

        I used vim, vim based stuffs, spacemacs, jetbrains, netbeans, atom etc… Now I use mainly claude code, sometimes, rarely I also open vscode. Shame because I know a lot of shortcuts, but not needed.

      • edinbruh@feddit.it
        link
        fedilink
        English
        arrow-up
        8
        ·
        1 day ago

        Oh, I use the terminal a lot, it doesn’t throw me off. When I can’t have vscode (e.g. small openwrt devices) I can use vim. It’s just plain easier to use vscode for editing files when I can

      • edinbruh@feddit.it
        link
        fedilink
        English
        arrow-up
        9
        ·
        1 day ago

        And instead vscode supports SSH (without quotes), you can connect to an SSH host, and it will open files and folders on the host like it does locally. And if you open the integrated terminal it will run on the remote host. And it will forward the git login agent so you can commit or push with the credentials of your local machine. And it can forward ports from the remote.

        • scrion@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          18 hours ago

          Sure, but none of that is special in any way. That’s just what SSH does already. If you like that to happen in your editor GUI, by all means, you do you.

          What I’m saying is not a single of those features is an accomplishment of vscode and you can do that with every editor you like, or even without any. I didn’t want people to believe they’d need to switch to vscode to achieve any of that. That was my angle.

          I can’t and I’m not going to comment on the integration or the workflow, if you’re the audience for those kinda things, it’s probably great, give vscode a try. It’s probably obvious that I am not but hey, different strokes and all.

    • Skullgrid@lemmy.worldOP
      link
      fedilink
      arrow-up
      7
      ·
      1 day ago

      If ind it quite funny that the majority of the posts are about the text editor and not about the blatant hitchhiker’s guide reference to the point where I had to specify it in the OP and then the thread exploded after that point.