me like use nano. nano say how do thing. nano exit easy.

  • MehBlah@lemmy.world
    link
    fedilink
    English
    arrow-up
    141
    ·
    2 months ago

    The image is misleading. The brain sizes represent the amount of grey matter it takes to operate the editor. The nano guy has plenty of brain power left over for things like hygiene, breathing and basic reasoning.

  • fartsparkles@lemmy.world
    link
    fedilink
    arrow-up
    34
    ·
    2 months ago

    micro enters the chat.

    Static, portable binary with no dependencies.

    Out of the box:

    • Syntax highlighting
    • Multi-line cursors like Sublime Text
    • Mouse support (works incredibly well)
    • Splits and tabs for working on multiple files
    • Diff gutter
    • Copy and paste with system clipboard
    • Cross-platform (runs basically on anything that Go does)
    • Sane key binds (ctrl-s, ctrl-c, ctrl-v, ctrl-z, ctrl-x, etc)
    • Terminal emulator
    • Plugin system to extend it
    • And much much more

    I have nothing to do with the project but this binary is the absolute best. curl or wget to any host and away you go with effectively a Sublime Text / VSCode like in the terminal. It’s as simple as nano and as functional as a well configured and extended vim.

    It’s baffling it’s not more well known and not installed by default on major distros.

    • MaggiWuerze@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      If only I could get copy paste working when using micro over ssh. inside a document it works fine but I can’t get it to put stuff on my system clipboard

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        2 months ago

        to use the system clipboard I select with the mouse while holding shift, then do ctrl-shift-c iirc. That’ll use the terminal emulator highlight and the system clipboard. At least on my machine, using kitty. Idk all the pieces that need to be in place for this to work.

        • caseyweederman@lemmy.ca
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          Yep, and then Ctrl+Shift+V for paste.
          But if you’re pasting from Micro to Micro, and it’s from the same session (horizontal/vertical splits, other tabs, elsewhere in the same document), you don’t need to go to the system clipboard and can drop the Shift.

    • CodeMonkey@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      How many Linux distros include micro in their minimal image? Vim, emacs, and nano are good because I can connect to just about any container or Linux VM and expect to have all of them available.

      Let’s say I have a test that always passes on my machine but fails in CI. If I can get a terminal on the test runner, I can open up my test code in vim, add extra logging and error handling, and rerun the test to check my fix.

      I am not going to install additional editors in a VM that will be recreated next time I push a code change. If I am setting up a development environment for long term use, I will install my favorite IDE and configuring all the bells and whistles.

      • Eager Eagle@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 months ago

        the same old argument that anal sex is good because it works on more people

        you might appreciate it, but being preinstalled is not the selling point you think it is. I spend hundreds of times longer in the editor than installing it. I want something good while I’m using it. I don’t care if it takes me 30 seconds to install, and maybe no one should.

    • pelya@lemmy.world
      link
      fedilink
      arrow-up
      28
      ·
      2 months ago

      I remember the time when Linux jokes were about audio drivers and X11 config files, but audio has long been working out of the box, and X11 is already dead and cremated.

      Even recompiling kernel now takes around five minutes instead of two hours, so that joke is irrelevant too.

      So all we are left with is timeless discussion of which text editor is the best, and dumping on Windows.

    • azertyfun@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      2 months ago

      Real answer: those things matter to me because a quick frictionless experience very heavily dependant on muscle memory really helps with my ADHD. Laggy interfaces, having to hold left key for several seconds, and similar issues quickly pull my out of my train of thought.

      It’s not about shaving 2 minutes off my day, it’s about not interrupting the flow.

    • wewbull@feddit.uk
      link
      fedilink
      English
      arrow-up
      3
      ·
      2 months ago

      Most tradespeople will have favoured tools. It might be for woodworking, plumbing, electrics, plastering or writing code.

      There’s little point in being tribal about it, but conversations will happen.

    • InputZero@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Because there is only one objectively right answer. Anyone who use anything else is no true unix user.

  • smh@slrpnk.net
    link
    fedilink
    arrow-up
    28
    ·
    2 months ago

    I love nano. I used to do tech support for a Linux-based content management system (before SAaS take took off)… The customer sysadmins were sometimes whichever engineer was volun-told to do it, so competency varied wildly.

    I helped mostly with installs. This might be the poor newbie sysadmin’s first time on the command line. Nano was my go-to suggestion for editing config files–all the commands are right there! Much less intimidating than vi or emacs for a newbie.

  • Cevilia (they/she/…)@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    23
    ·
    2 months ago

    Fortunately, every computer comes equipped with an “exit editor” button. It’s on the back, attached to the power supply unit. You just flick the switch. Exits every editor known to humanity. /j

  • Francislewwis@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 months ago

    Honestly nano is perfect for quick edits. Vim and Emacs are powerful, but sometimes you just want to open a config file, change one line, and exit without fighting the editor. 😄

    • creation7758@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

      This is what i use vim for. Vim doesn’t necessarily have to be a full blown ide with 30 plugins

      • Gladaed@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        Vim does not just work if you don’t know how to get into edit mode and save and quit from there. Nano even has built in search and replace.

        • creation7758@lemmy.ml
          link
          fedilink
          arrow-up
          4
          ·
          2 months ago

          Funny story, when i first got into linux (almost a decade ago), I accidentally opened nano pasting some random command off the internet and didn’t know how to close it because I didn’t know what the ^ symbol meant.

          I had successfully been quiting (and using) vim for a few months at this point.

  • Steamymoomilk@sh.itjust.works
    link
    fedilink
    arrow-up
    11
    ·
    2 months ago

    Some real talk.

    Can we just include the 4 most popular text editors on basic systems??

    Like i wanna scream when there isnt my text editor installed on a lightweight distro.

    Vi Emacs Micro Nano

    For context,

    Debian ships with nano and vi Openwrt only ships with nano

    Like cant we just include small editors. In a perfect world i would want neovim installed. But i understand its larger and has alot more dependency’s.

    So having VI isnt as good but im willing to be reasonable.

    JUST INCLUDE VI

    the reason i learned vim is because VI is installed by default on almost every distro.

    Im tempted to try emacs tho

  • AlbatrossFanboy@programming.dev
    link
    fedilink
    arrow-up
    10
    ·
    2 months ago

    I don’t get why there’s so much prejudice towards nano users in the Linux community, people act like nano is useless but it performs its job well, and it does it without being large or overly complicated.

  • Grass@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    2 months ago

    I used some distro with vim back in the day and I just kept using it. I lose my shit when I use something with just nano and my muscle memory tries to do a vim thing.

  • Hemingways_Shotgun@lemmy.ca
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 months ago

    nano is usually built in. Adding another one is just redundant if all you’re using it for is editing an occasional config file.

    Honestly never understood the hate for it. Who cares? Petty, stupid, nerd-wars over little crap like a text editor is the reason average people don’t even consider linux.

    • Skullgrid@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      ·
      2 months ago

      I very rarely see people hate nano (except a few comments in this thread), and I always see nano recommended as the text editor when people give advice on doing things in the command line

    • kkj@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      I see vim preinstalled more than nano (e.g. in container images). I’ve been trying to convert to micro, though. It has better support for terminal emulators than nano.

  • I Cast Fist@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    2 months ago

    Emacs is a table saw, vim is a chainsaw, nano is a scissor. Every problem those 3 solve is a differently sized single sheet of paper.