News for hackers. Stuff that matters.
Re:GNU Nano 4.0 by mmastrac on Sunday March 24, 2019 @11:25AM (#19476847)
"nano" is an interesting creature - it was originally developed as a replacement for the "pico" command that shipped with "pine" (an amazing curses-based email client) because the license on pico was just not really clear.

I still use nano 50% of the time because it's so easy to jump into a file, make some quick changes, and jump out. Plus the mark/cut/paste keystrokes are seared into my memory after years of use.

Re:GNU Nano 4.0 by nicoburns on Sunday March 24, 2019 @12:02PM (#19477026)
I would recommend micro. It's simple like nano, but has full mouse support. The only real downside is that it's not installes by default.
Re:GNU Nano 4.0 by pantalaimon on Sunday March 24, 2019 @12:48PM (#19477292)
Nano also has mouse support, it's just disabled by default.

/etc/nanorc is worth a look, at least on Debian it's well commented

Re:GNU Nano 4.0 by Too on Sunday March 24, 2019 @01:45PM (#19477614)
I'm confused. The only reason one uses nano is because you ssh'ed into some random machine and you are stuck with whatever is on it. If you got enough bother to install micro or fiddling with the settings of nano you might as well setup something more proper.
Re:GNU Nano 4.0 by savolai on Sunday March 24, 2019 @02:07PM (#19477737)
I'm a GUI dev/UX/education designer. Nano/pico to me are the only cli editors remotely suitable for ordinary human cognition. I have faint interest in the Emacs ecosystem, but wish it took basic ergonomics into account more seriously. I do understand I could get used to the lack of affordances but life's too short, perhaps. I understand keyboard usage wins you speed but not sure it's worth the general unpleasantness. I suppose I'm in the minority here though.
Re:GNU Nano 4.0 by harshreality on Sunday March 24, 2019 @06:29PM (#19479150)
It is not a human cognition problem. It's a motivation problem. Lack of motivation to take a few minutes to learn a keyboard command that will save you orders of magnitude more time in the future than you spend learning it.

With the GUI version, what do you have to learn in emacs? In gvim, you have to learn how to switch between normal and insert mode, but I can't think of anything else basic that can't be done in the menus.

You can pick a new keyboard shortcut to learn every day or two, or whenever you get tired of digging through menus to use a feature. In a year you'll wonder why the hell you let negative bias/emotion keep you from learning a real editor for so long.

Re:GNU Nano 4.0 by savolai on Monday March 25, 2019 @05:55AM (#19481271)
I believe this discussion is a part of a wider cultural gap and differences in understanding. I have been researching these differences for a decade or two now, and would like to understand them better.

That's why I would like to understand where you're coming from.

First, I'd like to verify: Do you think motivation isn't a human cognition problem?

Second, it appears to me you are making a wide array of assumptions about my preferences and my goals, as well as about what I find difficult or easy.

For example, you appear to assume that were I to choose rationality (?, i.e. not carrying "negative bias/emotion") I should value speed over of a host of other qualities of interaction design.

You seem to imply that committing to a specific kind of interesting, but very quaint visual/interaction style, i.e. the interaction constraints of a terminal UI, are a price worth paying for the speed of operation gained. Am I correct that you are implying this?

Keyboard shortcuts are not an exclusive feature of terminal UIs. I have a strong preference for UIs that comply with, for instance, the well-researched heuristics from the field of human-computer interaction. Terminal UIs are generally a lot more challenging to design to comply with them (for general audiences). Also visual hierarchy and a host of other beneficial properties are harder to achieve.

https://www.nngroup.com/articles/ten-usability-heuristics/

Yet, certain types of expert users tend to prefer - in my point of view - extremely arcane UIs, as they fit those users' style of operation.

They do not seem to fit mine. I want to emphasize that these are my current preferences, and you may well be right that I would enjoy the speed of emacs/vim usage. So far though, no one has bothered to sell them to me in a way that I personally would find convincing.

Re:GNU Nano 4.0 by Shorel on Sunday March 24, 2019 @07:56PM (#19479438)
Arcane cursor moving commands have never saved me orders of magnitude more time. They are in fact a quickly forgotten inconvenience.

Now, things like Emmet and the possibility of having hundreds of simultaneous editing cursors, these things really save time, and work in an intuitive editor like SublimeText.

Re:GNU Nano 4.0 by krageon on Monday March 25, 2019 @05:43AM (#19481225)
I'm not convinced this is true. I have spent a few weeks getting used to both emacs and vim and did end up going back to an IDE for proper development and nano for small editing. I'm not convinced that those two editors are worth the time investment that they require to be even remotely usable, even for the average software developer.
Re:GNU Nano 4.0 by morganvachon on Sunday March 24, 2019 @02:18PM (#19477823)
JOE (Joe's Own Editor)[1] is actually easier to use than nano, and it can emulate other editors (including nano/pico via jpico). It also has mouse support. It is installed by default in Slackware, and is in the package manager for most other OSes.

[1] https://joe-editor.sourceforge.io/

Re:GNU Nano 4.0 by garyrob on Sunday March 24, 2019 @03:57PM (#19478416)
Thirding the recommendation for JOE. And as someone who started programming in the '80's, I especially enjoy its WordStar mode which feels like coming home again!
Re:GNU Nano 4.0 by savolai on Sunday March 24, 2019 @03:51PM (#19478391)
From the screenshots that seems to have fewer, not more, immediately visible affordances tho?
Re:GNU Nano 4.0 by amyjess on Sunday March 24, 2019 @03:20PM (#19478197)
Seconding the recommendation for JOE. It was what I used before I learned vim.
Re:GNU Nano 4.0 by mixmastamyk on Sunday March 24, 2019 @01:59PM (#19477697)
Easy to scp micro or nanorc over with one command.
Re:GNU Nano 4.0 by zeckalpha on Sunday March 24, 2019 @02:43PM (#19477985)
Or use a local editor and scp the edited file.
Re:GNU Nano 4.0 by morganvachon on Sunday March 24, 2019 @02:14PM (#19477784)
> The only real downside is that it's not installes by default.

This is why I recommend to anyone wanting to try a -nix like OS to learn the basic commands in both vi and nano. One or the other is shipped with every -nix like OS I've ever used. Once they get more used to the OS, go ahead and install whatever editor they want to. But logging into a fresh install of pretty much any system, one can get by with either of the two.

Re:GNU Nano 4.0 by Scarblac on Sunday March 24, 2019 @12:19PM (#19477113)
So one day someone will write the improvement and call it milli, but then what? Is there a prefix for 10^0? Do these people not plan ahead?
Re:GNU Nano 4.0 by blattimwind on Sunday March 24, 2019 @12:25PM (#19477146)
Well you can use some of the convenience steps around 1, e.g. centi and deci and then skip the 1.0 and go straight to deca and hecto.
Re:GNU Nano 4.0 by sandov on Sunday March 24, 2019 @12:55PM (#19477344)
You can call it one, or alternatively:
Re:GNU Nano 4.0 by klyrs on Sunday March 24, 2019 @02:20PM (#19477840)
How about uno
Re:GNU Nano 4.0 by earenndil on Sunday March 24, 2019 @07:35PM (#19479379)
Well, it seems we've already skipped to kilo[1], so it'll have to be mega.

1: https://github.com/antirez/kilo

Re:GNU Nano 4.0 by tomsmeding on Sunday March 24, 2019 @02:26PM (#19477891)
Re:GNU Nano 4.0 by the8472 on Sunday March 24, 2019 @12:53PM (#19477332)
unit
Re:GNU Nano 4.0 by bonoboTP on Monday March 25, 2019 @05:42AM (#19481222)
It's still a bit buggy. It sometimes freezes over ssh and randomly misinterprets keypresses/mouse signals if done too fast.
Re:GNU Nano 4.0 by copperx on Sunday March 24, 2019 @12:59PM (#19477363)
What happened to pine, by the way? It was absolutely fantastic because it was minimalistic. I like mutt, but it's not the same.
Re:GNU Nano 4.0 by jonah-archive on Sunday March 24, 2019 @01:56PM (#19477676)
The UW no longer wanted to support Pine but they were unable to release it under the existing license. It was mostly rewritten as Alpine ( https://www.washington.edu/alpine/overview/story.html ), and is now sort of maintained by other folks: http://alpine.x10host.com/alpine/

I still use it regularly and it still works well, but I should probably be looking for something else.

Re:GNU Nano 4.0 by nichos on Sunday March 24, 2019 @10:21PM (#19479906)
Not at all similar, but mutt is a fantastic replacement. Like Vim, very powerful once you get in to it.
Re:GNU Nano 4.0 by stevekemp on Sunday March 24, 2019 @01:30PM (#19477543)
There was a fork/successor called alpine, I recall having to setup for my wife. But beyond that I think that mutt eventually "won". (Especially when development started picking up again with mutt-ng, etc.)

I wrote a console-based mail-client with lua-based scripting, over at https://lumail.org/ but I don't think I have more than 50 hard-core users. It seems like most people use mutt, and work around its annoyances, or use web-browser for their mail.

(I realize at some point notmuch came out and became popular, but I've never had a strong feeling for how popular. I think I'm a little biased since I read of people using it, but nobody "local" to me does.)

Re:GNU Nano 4.0 by Ologn on Sunday March 24, 2019 @01:58PM (#19477690)
I was used to pine and pico so I migrated to alpine and nano. Alpine works fine for me, alpine is very much like pine. I have spamassassin tagging mail as spam, and I have an alpine filter that moves those tagged messages to a possible spam folder.

I was used to pine when mutt came out, so I always used pine or alpine. You can check both out and see which you prefer.

Re:GNU Nano 4.0 by unveres on Sunday March 24, 2019 @01:23PM (#19477500)
There's alpine, but I haven't use it yet, so can't say if it's as good ;)
Re:GNU Nano 4.0 by simias on Sunday March 24, 2019 @11:49AM (#19476972)
Being an Emacs user I use Zile for that since it's effectively a trimmed-down version of Emacs. Of course unlike nano it's not usually installed by default on most distros, so I still have to use nano or vi from time to time, but I can't say I enjoy it very much.
Re:GNU Nano 4.0 by komon on Sunday March 24, 2019 @12:36PM (#19477223)
I often reach for

  emacs -nw -Q
It boots up quickly and the basic editing defaults are all there. Has the advantage of being everywhere Emacs already is as well
Re:GNU Nano 4.0 by mruts on Sunday March 24, 2019 @01:12PM (#19477449)
I like mg as an emacs-like editor that is simple and quick. Made by the great OpenBSD folks and is of great quality with good documentation.
Re:GNU Nano 4.0 by wglb on Sunday March 24, 2019 @01:58PM (#19477693)
Actually made by David G Conroy while he was at Mark Williams, and open sourced. I kicked around to various folks and ended up in the gnu fold.
Re:GNU Nano 4.0 by spudlyo on Sunday March 24, 2019 @01:45PM (#19477615)
If I want a light version of emacs (like on OpenWRT, or a constrained embedded device) I reach for JOVE, or Jonathan's Own Version of Emacs. JOVE was actually the version of emacs I first learned on back in the late 80s.

JOVE is tiny, and has implemented a huge amount of emacs. After you spend 15 minutes or so tweaking your .joverc file you won't even notice it's not GNU.

Re:GNU Nano 4.0 by dehrmann on Sunday March 24, 2019 @02:53PM (#19478040)
When I'm not using an IDE, I'm a vi user because it's always there. When my /usr on FreeBSD has issues, vi is in /bin. OpenWrt ships with vi. I honestly have no idea if Emacs is any better, but not being a default makes it a non-starter for me.
Re:GNU Nano 4.0 by h1d on Monday March 25, 2019 @01:19AM (#19480445)
Do you really have that many occasions to work in an environment where you can't ask for/install a package?

Limiting yourself for such rare occasions just sounds wrong.

Re:GNU Nano 4.0 by dsq on Monday March 25, 2019 @08:41AM (#19481966)
Production corporate environments are often firewalled/locked down. To change anything you have to go through layers of dis/approval. You are generally stuck with the defaults till the end of time.
Re:GNU Nano 4.0 by Cyph0n on Sunday March 24, 2019 @11:55AM (#19477000)
I also used nano quite a bit for quick editing tasks, but that changed after I learned Vim.
Re:GNU Nano 4.0 by kilroy123 on Sunday March 24, 2019 @12:33PM (#19477200)
Yup same here. It's not any slower IMO.