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

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

    • MaggiWuerze@feddit.org
      link
      fedilink
      arrow-up
      1
      ·
      3 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
        1
        ·
        edit-2
        42 minutes 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.

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

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

    • CodeMonkey@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      4
      ·
      5 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
        1
        ·
        36 minutes 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.