Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
GNU is Not Unix Open Source Software

GNU Nano Gets New Stable Release 119

jones_supa writes: GNU Nano 2.4.0 has been released as the first stable update to this UNIX command line text editor in a number of years. The release codenamed "Lizf" brings a wide variety of changes: full undo system, Vim-compatible file locking, linter support, formatter support, flexible syntax highlighting, and random bugfixes.
This discussion has been archived. No new comments can be posted.

GNU Nano Gets New Stable Release

Comments Filter:
  • by Anonymous Coward on Tuesday March 24, 2015 @08:04PM (#49332551)

    I always prefer random fixes instead of carefully planned specific fixes.

  • by ShanghaiBill ( 739463 ) on Tuesday March 24, 2015 @08:27PM (#49332659)

    Nano is a full screen text editor.
    Ed [wikipedia.org] is a command line editor.
    Have Slashdot editors never used a teletype?

  • I'll always prefer pico/nano over vi and emacs.
    • by antdude ( 79039 )

      Ditto. Vi and emacs drive me crazy in trying to learn the tricks, hot keys, etc. :(

    • I bet you're .login just launches Midnight Commander too. Bah you people!

    • This - 100%. I just need to edit config files and write some simple code. I do a lot with single board ARM computers and something nice and light weight is perfect.

      • joe, ersatz emacs, microEmacs [aquest.com], QEmacs [bellard.org], ...

        Lots of choices out there for simple editors that don't need a lot of resources. But that said, emacs and vim run like a champ on my Raspberry Pi.

    • by spauldo ( 118058 )

      The thing about vi and emacs is while they're superior editors, they're really only helpful for people who do a lot of text editing. If you don't, you'll never build up the skill those programs require.

      I picked up vi because I had to work on Sun and HP machines that didn't have anything but vi and ed. It wasn't hard, but I did (and still do) a lot of text editing so I was able to build the muscle memory. If you need it - it's great. If you don't, pico/nano is more than adequate for most people.

      If your n

  • Nice (Score:5, Insightful)

    by Anonymous Coward on Tuesday March 24, 2015 @09:18PM (#49332879)

    For me, nano fulfills a vital role:

    When some inexperienced Linux user has to edit some file in some form of Linux and there is no gui available, I point them to nano, because it behaves pretty closely to what they expect from a text editor (which tends to be something like notepad...sigh).

    The other, most common alternatives aren't nice for newcomers. vi comes preinstalled in most *nixes, but it is just alien to your average user, and emacs - though it behaves more like what users expect - always ends confusing them because of the key chords (and it doesn't come installed in most distros, if I am not mistaken).

    nano is simple enough and good enough to get the job done, and most Linuxes have it pre-installed.

    So, thank you nano developers. Keep up the good work!

    • by Anonymous Coward

      When some inexperienced Linux user has to edit some file in some form of Linux and there is no gui available, I point them to nano, because it behaves pretty closely to what they expect from a text editor (which tends to be something like notepad...sigh).

      Now, if I only could find an entire toolchain like that.
      An entire OS that behaves the way one would expect, that would be the dream.

      But I can't say that I appreciate the new features. Sometimes I wish programmers would limit the scope of a program and say "Now it's done, there is no need to do further changes except pure bugfixes."

    • Comment removed based on user account deletion
      • Re:Nice (Score:5, Funny)

        by jeffmeden ( 135043 ) on Wednesday March 25, 2015 @06:47AM (#49334559) Homepage Journal

        It's easy. You just use "vi [filename]" and then inside the file you hit lower case i to actually edit it and then escape to stop editing it and then ctrl to activate the command prompt inside vi and w to write it and exclamation mark because youre sure you want to save it and then q to quit.

        And after that I have configured resolv.conf and apt.sources to the point where I can just install nano and get back to work.

    • by DrXym ( 126579 )

      When some inexperienced Linux user has to edit some file in some form of Linux and there is no gui available, I point them to nano, because it behaves pretty closely to what they expect from a text editor (which tends to be something like notepad...sigh).

      By which you mean it behaves in a relatively straightforward, least surprising way.

      • by hattig ( 47930 )

        And in addition has a clear help panel within the editor that helps you to learn the keyboard shortcuts as you use the tool.

        nano is great, and I've used it for many years, and before that as pico when it was part of pine (again, one of the better email clients).

  • This is one of the problems with open source development; people will spend endless hours perfecting the buggy whip; not to mention coming up with new, competing buggy whip designs.

    Whatever floats your boat, I guess; but there are countless other open source projects in real need of help.

    • Re:Buggy Whip (Score:4, Insightful)

      by Antique Geekmeister ( 740220 ) on Tuesday March 24, 2015 @09:51PM (#49333017)

      The tiny editors do have their uses. They tend _not_ to require dozens of unrelated and bulky graphical packages to support them, the failure of any of which can disable the graphical editor. And they work well over poor bandwidth connections to remote servers, and even work well on overburdened, very lightweight virtualization servers for software routers or proxies.

      So making them work really well can save work time and be very appreciated by people doing critical work with very real constraints.

      • The tiny editors do have their uses. They tend _not_ to require dozens of unrelated and bulky graphical packages to support them, the failure of any of which can disable the graphical editor. And they work well over poor bandwidth connections to remote servers, and even work well on overburdened, very lightweight virtualization servers for software routers or proxies.

        So making them work really well can save work time and be very appreciated by people doing critical work with very real constraints.

        Oh, absolutely. That's why vi is so useful.

        • Re: (Score:1, Troll)

          now now, lets not get into a buggy whip measuring contest.
          vi is fine if you've got nothing important to do but learn archaic interfaces but some of us have shit to do.
          • vi is fine if you've got nothing important to do but learn archaic interfaces but some of us have shit to do.

            but nano looks like wordstar

    • Re: (Score:3, Insightful)

      Even modern, GUI based systems have tools that work outside the GUI, or in a text-mode terminal of some kind.

      Maintaining such tools is just as needed as maintaining other parts of a system. Or creating new bits, for that matter. If not done, it would only be a matter of time before you'd have (badly) broken bits of software all over the place. To the point where a system becomes unusable to do real work. Text mode editors are just one of many components of modern systems (and imho, not in the "buggy whip

    • by Sique ( 173459 )
      When your GUI doesn't come up correctly, what do you do? In Windows, it's reinstalling the whole OS, taking about one workday until most of the important patches are also installed, not withstanding reinstalling a lot of software. In UNIX, it's a few minutes of editing the config files, and then restarting the GUI. But how do you edit the config files? Be glad someone made a buggy whip!

      I know the buggy whip maker is some nice metaphor, but some people don't think it through.

    • by Lotana ( 842533 )

      This is one of the problems with open source development; people will spend endless hours perfecting the buggy whip; not to mention coming up with new, competing buggy whip designs.

      Yeah, how DARE they spend their own time doing what they like! Don't they know that they should be productive and do what sunderland56 deems more important?!

    • by spauldo ( 118058 )

      Attitudes like this are part of why commercial UNIX got clobbered by Linux and BSD.

      Ever use an old version of Solaris without GNU utilities? Or HPUX? Or (shudder) UNIXware?

      The basic utilities would feel right at home to someone on UNIX 7. Clunky, unintuitive, lacking modern features, and bug-ridden. Some hardcore UNIX heads liked it, although I can't fathom why. Sun wised up after a while - no idea about HP. Even on Linux, you're seeing vim replace all the other vi clones like elVIs, to the complaint

  • by RightwingNutjob ( 1302813 ) on Tuesday March 24, 2015 @09:39PM (#49332973)
    systemd will get an integrated text editor with emacs, vi and nano emulation modes...
    • Are you not paying attention ? With systemd you have your choice of hex, oct, and binary modes in grepd for making use of the journald output !
    • systemd will get an integrated text editor with emacs, vi and nano emulation modes...

      But didn't they actually consider that a while ago? Some kind of integrated editor for service files or such?

    • I'm not using it unless it also does EDT.

  • by Antique Geekmeister ( 740220 ) on Tuesday March 24, 2015 @09:47PM (#49333007)

    Does it have the butterfly macro for real programmers?

                https://xkcd.com/378/ [xkcd.com]

  • More help needed (Score:4, Interesting)

    by Blaskowicz ( 634489 ) on Tuesday March 24, 2015 @11:42PM (#49333493)

    I would simply like if it explained how to cut and paste multiple lines of text at the same time. For that task I have to reach for the mouse (the block of text needs to fit on the screen) or use a graphical editor - that'd be pluma or leafpad, to be free of bullshit.

    That was still easier in MS-DOS EDIT.
    By the way : (shit, I put it in a pastebin because of the slashdot filter)

    http://dpaste.com/3210G6K [dpaste.com]

    It has qwerty-isms. That's perhaps one of my bigger peeves with Free software. The video games in linux are worst, they're likely to be playable with a qwerty keymap only. DOS/Windows games of the 90s at least just read the raw scan codes so the keyboard acted as if it was qwerty.

    • Re:More help needed (Score:5, Informative)

      by Trepidity ( 597 ) <delirium-slashdotNO@SPAMhackish.org> on Tuesday March 24, 2015 @11:53PM (#49333549)

      I would simply like if it explained how to cut and paste multiple lines of text at the same time.

      Use Alt+a to set a mark for the start of highlighting, then move your cursor to the desired end of the highlighted region. Now if you copy or cut, it'll operate on the highlighted region.

      • by jofas ( 1081977 )
        d p (or P if you want pasted before cursor) This is the power of vi: navigation without thinking about the cursor's x/y position.
    • Re:More help needed (Score:4, Informative)

      by dargaud ( 518470 ) <slashdot2@gd a r gaud.net> on Wednesday March 25, 2015 @04:49AM (#49334281) Homepage
      Go on the first line, press Ctrl-K (yes the line disappears because it's actually a cut), press Ctrl-K again on all the next lines you want to copy. When done press Ctrl-U to paste back your text. Move to when you want to paste, press Ctrl-U again. Done.
      • by ledow ( 319597 )

        Ctrl-^ does the same.

        Ctrl-^ at the start of the block, scroll down with arrow keys. Ctrl-K at the end of the block. Bam, you cut the whole block.

        Ctrl-U to paste.

    • by hattig ( 47930 )

      I don't understand how anything is easier that hitting ctrl-k for as many lines as you want to cut, and then ctrl-u to paste them all back where you want them.

      • That is because I never tried and assumed the buffer was destroyed every time. Stupid maybe but when editing /etc/foo.conf etc. I usually only need to change a couple values, or I use ctrl-K to delete only. Pasted text comes from some terminal or from a web browser, or is often entered with cat rather than a text editor.

  • They'll have to call it Micro now!

  • I still use Midnight Comannder's editor (mcedit) whenever I need to edit text in a Linux terminal. I find it a lot more user-friendly than any other terminal-mode text editor.

    Vi is downright arcane. You need to hit i before you can type, and you need to hit Escape :wq to save and quit. Fortunately, it's not as bad as classic vi, where arrow keys don't exist, and you need to use ESC then hjkl, and backspace keys don't exist either, and you need to use ESC x.
    Meanwhile, in mcedit land, you just hit F9, whic

    • It appears crazy at first. But it was actually designed rather well as to not have your hand move from the core of the keyboard.
      As well vi was one of the first full screen editors. So a lot of terminals had inconsistent keys on the keyboard, you could only really trust the core set. The fact it was using the esc key was pushing it.

    • by spauldo ( 118058 )

      Learning vi (at first) is all about building muscle memory. Once you do, it feels natural.

      My job involves converting MS Office documents into webpages. I do it all in vim. I've scripted a lot of it (and obviously I didn't write the docx2txt converter), but I still do a lot of manual editing as well. Jobs I've had in the past involved doing security audits on Sun and HP machines that didn't have anything but vi, so I started this job with the skillset I needed.

      I used to use pico (what nano is a clone of)

Kiss your keyboard goodbye!

Working...