Hacker News new | past | comments | ask | show | jobs | submit

NetBSD adds a new text editor called atto

https://mastodon.sdf.org/@netbsd/117518160563539748
To promote this to a top-level comment, because I think it's important context: nothing in the README file says the point is to be "beginner-friendly". As far as I can tell, that's something that Hacker News or whoever submitted this used as a description. Neither the word "beginner" nor the word "friendly" appear in the README; its goal is to "be the smallest functional Emacs in less than 2000 lines of C."

I think somebody incorrectly described Atto as comparable to nano/pico, and these comments are dragging it because it's not something that it was never intended as.

OP here, I just paraphrased the announcement:

> To ease the transition for new users, #NetBSD -current now includes an alternative editor to vi(1) and xedit(1) in its base system, atto(1). https://man.netbsd.org/atto.1

> It is a modeless screen-based editor similar to nano, pico, xedit, or emacs. It is only 48 kilobytes, making it suitable for inclusion in the rescue system.

I think it's fair to call it beginner-friendly, in context of BSD and vi, but maybe indeed it shouldn't be a part of the title.

loading story #50289992
loading story #50292403
loading story #50288923
loading story #50289106
loading story #50291707
loading story #50289046
OpenBSD also has an Emacs-y non-extensible editor, mg(1):

https://man.openbsd.org/mg

Just noting for completeness, as I didn’t catch any mention of it.

loading story #50290060
loading story #50290040
loading story #50294891
> https://man.netbsd.org/atto.1

> atto is not the standard editor.

Hah. That is clearly a reference to https://www.gnu.org/fun/jokes/ed-msg.en.html

NetBSD isn't the first to use the name. My pet text editor is also called atto: https://git.levitati.ng/Levitating/atto
loading story #50292737
loading story #50291718
Who knew a little emacs-like editor would be so controversial.

I think it looks great. Syntax highlighting, multi-buffer, splits, standard emacs commands... For new users in the emacs camp, this seems like a nice editor to include in the base install. Even as a vi user, I'd be pretty happy being stuck with this in a rescue system.

The source code and README are here: https://github.com/NetBSD/src/tree/trunk/usr.bin/atto

You are welcome!

loading story #50289730
NetBSD has beginners?
Currently seeing an influx of interest from new people who want an OS with strong anti-ai stances.
loading story #50289813
loading story #50288051
loading story #50288315
I always thought the essential feature of an emacs was its extensibility. I never felt that emacs was just a collection of keybinds and split buffer windows.

Note, I'm not talking about Lisp per se, just some kind of mechanic within the editor to allow the user to make extensions to it.

Why not just add nano?
loading story #50288154
loading story #50288348
loading story #50299262
For me the most easy-to-use editor for cli / ssh and relatively lightweight is https://github.com/sinelaw/fresh everybody can just use it intuitively.
loading story #50288301
loading story #50288811
loading story #50289331
Is this the same editor that is used in the open-source Moodle LMS?

https://docs.moodle.org/400/en/Atto_editor https://github.com/moodlehq/moodle-editor_atto

loading story #50292042
loading story #50293483
I guess it has poor (or nonexistent) unicode support in 48kb. My only gripe with NetBSD was its lacking UTF-8 support for many core tools (eg. wscons, vi) when I used it as daily driver beck in the days (NetBSD 5 RC2 times :P)
loading story #50295601
loading story #50295337
Genuine question: Are there a lot of "beginners" hopping on NetBSD?

I feel like most people who even know about NetBSD would be technical enough to at least function at a basic level in something like vi or nano.

To be beginner friendly they should call it text editor. Or notepad, or quickwriter. No beginner is going to guess that something called Atto lets you write words on a computer.
loading story #50295955
loading story #50297007
>making it suitable for inclusion in the rescue system

People seem to be missing the point. Also NetBSD has what I call a "real single user mode". Last time I had to boot single user, ed(1) was the only editor available without some work. My guess is this new editor will be useful for people who do not want to deal with ed(1).

I have not seen it yet, but I guess it will be included in 11.1.

loading story #50289264
Badly editorialized title.
The beginner-friendly label seems to be obscuring what atto actually is, which is a very small Emacs-like editor meant to live in the base system. At roughly 48 KB and under 2,000 lines of C, it fits places nano and the larger alternatives do not, especially a rescue environment or single-user mode where you still need something more usable than ed or a stripped-down vi. That constraint also explains the choices people are arguing about here: Emacs bindings come with the design, and a permissively licensed C program can be maintained with the tools NetBSD already ships, unlike a Go editor such as micro. For someone new to NetBSD but already comfortable at a Unix terminal, that is a reasonable trade. It is less a first editor for a general beginner than a safety net that happens to be approachable once you are already in that world.
loading story #50295890
loading story #50295767
> Perhaps all that needs to be known to use atto at a basic level is that holding the control key, pressing x, then pressing w will write the currently open file, and holding the control key, pressing x, then pressing c will exit the editor.

Very beginner friendly lol. These people have no idea.

Micro is a beginner-friendly console text editor. This isn't.

loading story #50288395
loading story #50288845
loading story #50288330
loading story #50288300
loading story #50288778
loading story #50288732
Why are they using weird key combinations instead of traditional Ctrl + S, Ctrl + A, Ctrl + C used in desktop applications? Why every console program wants to be a special snowflake and not use standard key combinations, please explain. I do not care that 40 years ago someone used Ctrl + C to send SIGINT, it is 2026 now.
loading story #50289015
loading story #50291979
loading story #50289731
loading story #50288869
loading story #50289762
loading story #50289076
loading story #50288834
loading story #50289071
loading story #50291338