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

  • fartsparkles@lemmy.world
    link
    fedilink
    arrow-up
    23
    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.

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

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

    • MaggiWuerze@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      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
        19 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.

    • 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.