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.

  • palordrolap@fedia.io
    link
    fedilink
    arrow-up
    4
    ·
    7 days ago

    Then you want nano -/ which uses the modern key bindings. They’ve been in nano for a while now.

    For historical reasons, it doesn’t use them by default.

    • Feyd@programming.dev
      link
      fedilink
      arrow-up
      6
      ·
      7 days ago

      Yup they could use nano -/0, or they could just use micro.

      A note: I couldn’t find -/ referenced online easily though when I checked it is indeed there. On Mac nano redirects to pico by default which doesn’t have that either. I think it’s understandable someone would just choose to use micro

      • palordrolap@fedia.io
        link
        fedilink
        arrow-up
        4
        ·
        7 days ago

        To flog this dead horse just a bit longer, micro is nearly seven times the size of nano, and Apple are clearly doing it wrong. Pointing an old name at a new thing is fine as long as there’s backward compatibility, but a new name at an old thing that doesn’t support the same features is a disservice to the old thing, the new thing and the user.

        • rumschlumpel@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          6 days ago

          , micro is nearly seven times the size of nano,

          Still starts up instantly, though, and still smaller than practically every GUI editor.

          -/

          $ nano -/ test.txt 
          nano: invalid option -- '/'
          

          So much for that. Is this a really new option, or does it require a compilation flag that Debian doesn’t bother with?

          • esc@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            ·
            6 days ago
            # nano --help | tail -n1  
            -/             --modernbindings        Use better-known key bindings  
            # cat /etc/debian_version 
            13.6  
            
            • rumschlumpel@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              edit-2
              6 days ago

              That’s like yesterday by Debian standards, lol. And honestly, I’m surprised that they’re adding this kind of feature after this long. Feels similar to how i3-wm eventually merged gaps functionality (as known from the popular i3-gaps patch by airblader), I never thought it would actually happen.

              LTS Debian

              Why would you run any other kind of Debian? I’m proudly running oldstable, my laptop has an Ubuntu version that’s even older. And though tempting, I’m not upgrading for nano -/.

              I really appreciate the info, though!