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

  • fartsparkles@lemmy.world
    link
    fedilink
    arrow-up
    37
    arrow-down
    4
    ·
    edit-2
    23 hours 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.

    • 0ops@piefed.zip
      link
      fedilink
      English
      arrow-up
      7
      arrow-down
      1
      ·
      22 hours ago

      I use nano because I can’t be assed to memorize key bindings, but I’ll give this a go

      • caseyweederman@lemmy.ca
        link
        fedilink
        arrow-up
        3
        ·
        5 hours ago

        Hahaha
        Memorize
        Okay guess what the keybind for Copy is in micro
        Go on, guess
        YEAH THAT’S RIGHT IT’S CONTROL+C
        Now guess what Paste is
        YOU GOT IT
        Quit? Find? Undo? Save? Open?
        If you guessed anything weird, that’s on you.
        My only complaint is that Ctrl+N is “find next” instead of Ctrl+G, but you can remap keybinds at will, so it’s not that big of a deal.

    • MaggiWuerze@feddit.org
      link
      fedilink
      arrow-up
      3
      ·
      20 hours 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
        ·
        edit-2
        17 hours 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
          ·
          5 hours 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
      arrow-down
      5
      ·
      22 hours 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
        3
        ·
        17 hours 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.