[–] chipotle_coyote 14 hours ago
[–] luke8086 13 hours ago
> 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.
[–] SoftTalker 13 hours ago
Every time I get launched into nano/pico on a new system I find it very confusing. To use the help menu you need to know that ^-X means Ctrl-X and M-X means Alt-X. Why "Write Out" and not "Save"? And when I "Write Out" I'm offered DOS format or Mac format, and options to Append or Prepend (not even sure what that does).
It's completely bizarre if you're used to something like Notepad or Word.
[–] lakeviewterrace 8 hours ago
Nano was a (bloated as usual) GNU clone of Pico. Its only reason for existing is GPL freedumb nonsense that was popular back in the day. It copied the UX of Pico.
Pico was not developed as a standalone editor; rather it was the builtin editor for the Pine email reader. Hence the weird keybindings — it followed the UX of the email client.
Pico stood for PIne COmposer.
It became a simple universal editor because vi and emacs sucked and for some reason no one felt it necessary to invent something better.
Users repurposed the editor from a mail client because it was already there. Nearly every university Sun box in the 90s had Pine installed for reading email.
It was written by the same guy that invented IMAP at the University of Washington.
Can't wait for the Rust clone of Nano then the cycle will be complete.
[–] oblio 7 hours ago
People that do that are weirdos, and yes, I'm one. But I don't expect regular people to learn that way.
> Its only reason for existing is GPL freedumb nonsense that was popular back in the day.
These days we need more GPL, not less. We need AGPL and apparently, soon, AntiLLM-GPL.
[–] lakeviewterrace 2 hours ago
The reason Pico became popular — if you went to university in the 90s — is normal people, not just turbonerds, needed the occasional ability to edit simple text files on Unix hosts.
They were already using Pine to read their email, so why not use the editor that used the same keybindings they already knew for sending mail?
[–] anthk 8 hours ago
[–] basscomm 12 hours ago
When you launch nano without a file loaded, there's a notice at the bottom of the screen: [ Welcome to nano. For basic help, type Ctrl+G. ]
Press 'Ctrl + G' and it takes you to a help page that says, among other things, "Shortcuts are written as follows: Control-key sequences are notated with a '^' and can be entered either by using the Ctrl key or pressing the Esc key twice. Meta-key sequences are notated with 'M-' and can be entered using either the Alt, Cmd, or Esc key, depending on your keyboard setup."
You can't force a user to read docs or learn how the programs they're using work, but this is a reasonable attempt.
[–] setopt 8 hours ago
> Command-line option --modernbindings (-/) makes ^Q quit, ^X cut, ^C copy, ^V paste, ^Z undo, ^Y redo, ^O open a file, ^W write a file, ^R replace, ^G find again, ^D find again backwards, ^A set the mark, ^T jump to a line, ^P show the position, and ^E execute.
> Above modern bindings are activated also when the name of nano's executable (or a symlink to it) starts with the letter "e".
So if you symlink nano to /usr/bin/editor and make it the default $EDITOR, then you now do get CUA-like bindings by default.
There’s still a lot of more things they perhaps should enable by default. I don’t know whether you’ve looked into .nanorc, but you can turn on stuff like syntax highlighting and line numbers, it’s just all off by default.
I don’t actually use nano myself, but I was really taken aback by how featureful it is when you look closely. Not st the level of Vim or Emacs, but more than expected. I basically stumbled upon someone on Reddit /r/unixporn that "riced" their nanorc and it piqued my curiosity.
For most people though, I think micro is a better fit than nano if you want a terminal CUA-style editor.
[–] echoangle 5 hours ago
Maybe stupid question but do you then need to run nano through the symlink to get the new bindings or is the existence of a symlink enough? Wouldn’t nano have to check every directory for a symlink to itself to do that? There’s no way to get all symlinks for a specific file without checking the whole file system, right?
[–] setopt 4 hours ago
[–] mmmlinux 12 hours ago
[–] forgotpwd16 11 hours ago
At least "Uncut" has been renamed to "Paste".
[–] jpablo 9 hours ago
[–] SoftTalker 3 hours ago
[–] dang 11 hours ago
[–] drummojg 14 hours ago
[–] Natfan 14 hours ago
[–] majorchord 12 hours ago
Reminds me of that House MD episode where the delivery driver was a secret genius who was abusing DXM to dumb himself down just to feel happy.
"For with much wisdom comes much sorrow; the more knowledge, the more grief."
[–] metchio 14 hours ago
[–] MonkeyClub 14 hours ago
[–] vinceguidry 13 hours ago
[–] aleph_minus_one 12 hours ago
Most people don't want to learn (in particular not learn sufficiently hard to really improve).
[–] lioeters 11 hours ago
Learning requires some amount of humbleness, to accept you don't know everything.
[–] vinceguidry 12 hours ago
[–] marssaxman 9 hours ago
I only stopped using pico/nano after writing my own editor, which blatantly stole pico's interface design.
[–] zimpenfish 10 hours ago
"for users who are not accustomed to text editors with separate insertion and editing modes"[0] could be construed as "beginner-friendly" (albeit with some squinting, I'd concede.)
[–] insanetake 14 hours ago
> To ease the transition for new users...
So I would consider it for beginners ("new users") and friendly ("to ease").
[–] shevy-java 11 hours ago
I think the main take-away is that vi/vim is too complicated for many folks. I use nano a lot on the commandline. For quick editing it is so much more convenient than vim.
[–] MonkeyClub 13 hours ago
Just noting for completeness, as I didn’t catch any mention of it.
[–] torstenvl 13 hours ago
However, the code is a mess, with deliberately cryptic identifiers (e.g., `w_doto` for `cursorOffset`), redundant functions (e.g., `vtputc()` is a strict subset of the behavior of `vtpute()`) and a bunch of other weird choices (e.g., deeply-baked assumptions that one byte == one char == one column, even thought Big5 and ShiftJIS were already a thing when it was written).
I tried adding UTF-8 support to mg a couple years ago and basically gave up.
I'll probably be an atto convert.
[–] Koshkin 9 hours ago
Well, sometimes we call the cursor "the dot."
[–] torstenvl 9 hours ago
[–] kragen 2 hours ago
I think this alias was an aid to porting Lisp from some other Emacs variant in the 80s that used "dot" instead of "point". Never figured out which. It isn't mg because mg doesn't run Lisp.
[–] pratyahava 4 hours ago
[–] skydhash 6 hours ago
[–] SoftTalker 13 hours ago
[–] rfmoz 8 hours ago
[–] Fil0sOFF 12 hours ago
> atto is not the standard editor.
Hah. That is clearly a reference to https://www.gnu.org/fun/jokes/ed-msg.en.html
[–] dsevil 6 hours ago
[–] Levitating 15 hours ago
[–] forgotpwd16 11 hours ago
[–] mig39 10 hours ago
[–] markusQi 14 hours ago
You are welcome!
[–] passthejoe 13 hours ago
[–] LeFantome 1 hour ago
[–] Gracana 13 hours ago
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.
[–] itomato 15 hours ago
[–] helterskelter2 10 hours ago
[–] dogcow 8 hours ago
I'd argue that OpenBSD would be worthy of that title, too. It is incredibly easy, elegant, and simple. The thoughtfulness that goes into all the base system utilities in OpenBSD is so appreciated.
FreeBSD is kinda somewhere in between Open/NetBSD and Linux in my opinion. Their docs are OK, but the handbook leaves a lot to be desired, and they don't seem to have nearly nice little quality of life utilities that OpenBSD has out of the box.
[–] officeplant 14 hours ago
[–] Narishma 13 hours ago
[–] antiframe 11 hours ago
[–] bityard 9 hours ago
[–] tancop 11 hours ago
[–] graemep 15 hours ago
[–] mehjustmeh 10 hours ago
[–] excannuk 15 hours ago
[–] graemep 12 hours ago
I spend a fair bit of time on Linux command lines, but I use a mix of different TUI and GUI editors (including ones that work over ssh for editing files on servers), and none of those are vi. I can manage vi if I must, but its an effort and distracts from the task because I have to think about how to do things in vi.
[–] hxorr 9 hours ago
My favourite editor is mcedit, which you get by installing mc (midnight commander)
Like nano but (IMO) easier to use with a lot more features
[–] alnsn 15 hours ago
[–] daishi55 14 hours ago
[–] whartung 11 hours ago
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.
[–] kragen 2 hours ago
[–] OnlineTux 15 hours ago
[–] Matl 15 hours ago
[–] ninjin 15 hours ago
[–] Matl 15 hours ago
[–] brewmarche 14 hours ago
The parts of Linux that get integrated into BSDs should not be GPL-licensed, e.g. <https://github.com/torvalds/linux/blob/c339f4010dea8b0d754f8...> and its siblings use MIT.
[–] ninjin 15 hours ago
https://netbsd.org/about/redistribution.html
As for being compatible. Yes, FSF considers anything permissive to be compatible with their family of licenses. However, it is a one-way relationship in that permissive code can be freely used by GPL projects, but not the other way around as using GPL code would impose further restrictions compared to a permissive license.
[–] jmclnx 15 hours ago
Linux:
-rwxr-xr-x 1 root root 321832 Dec 15 2021 /usr/bin/nano
per the link, atto(1) is 48 kilobytes.[–] Rucadi 15 hours ago
[–] hnlmorg 15 hours ago
[–] Daunk 14 hours ago
[–] stonogo 14 hours ago
[–] mig39 13 hours ago
https://docs.moodle.org/400/en/Atto_editor https://github.com/moodlehq/moodle-editor_atto
[–] forgotpwd16 11 hours ago
[–] dkenyser 12 hours ago
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.
[–] shakna 7 hours ago
A lot of people in my circles recently got fed up with Windows breaking everything. They went from teasing about Linux, to installing it.
... And then the kernel fully embraced genAI.
The same people went, "No thanks." Saw NetBSD's AI stance, and started installing it.
Granted, tech people. But not that deep into things. Most are scared of the command line - but find they don't need it.
[–] hoppp 10 hours ago
[–] talideon 7 hours ago
> atto is not the standard editor
[–] fodkodrasz 8 hours ago
[–] GalaxyNova 7 hours ago
[–] fodkodrasz 6 hours ago
[–] JdeBP 5 hours ago
[–] agumonkey 7 hours ago
unless someone can offer a custom keybinding mechanism.. and custom dynamic functions the user can bind to..
[–] bmacho 13 hours ago
[–] cowlevel 14 hours ago
[–] kragen 2 hours ago
"Hey, how do I insert one file into another in text editor?"
"Which text editor?"
"Text editor."
"Sounds like a personal problem."
[–] 1vuio0pswjnm7 5 hours ago
(If don't want to link curses and terminfo)
For me ait is a 277.3K static binary (musl)
Here's an earlier "Anthony's Editor" by Anthony Howe of MK Systems for IOCC 1991
https://www.ioccc.org/1991/ant/index.html
Here is a message about writing editors he sent to comp.editors in 1991
https://web.archive.org/web/20031214211718if_/http://ned.rub...
https://web.archive.org/web/20040221091356if_/http://ned.rub...
The later Anthony's Editor upon which atto is based, from 1993:
https://web.archive.org/web/20101130024855if_/http://sites.g...
The atto author got it to compile on GNU/Linux:
https://github.com/hughbarney/Anthonys-Editor--for-Ubuntu-Li...
According to the above Usenet communication, Howe was not a CS major
Perhaps this explains why his IOCC entries are so good IMHO
His 6086-character grep-like utility, "ag", from 1993 is all-time favorite
It still compiles today: 30.6K static binary (musl)
[–] kragen 2 hours ago
Atto seems to be a little smaller than that version of ae, though.
[–] ktnb 3 hours ago
[–] jmclnx 15 hours ago
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.
[–] iamnothere 14 hours ago
Edit: apparently it requires /usr to be mounted though
[–] JdeBP 5 hours ago
[–] arbor-group 14 hours ago
[–] IshKebab 15 hours ago
Very beginner friendly lol. These people have no idea.
Micro is a beginner-friendly console text editor. This isn't.
[–] chipotle_coyote 14 hours ago
tl;dr: I think somebody incorrectly described Atto as comparable to nano/pico, and these comments are dragging it because it's not the thing that it was never meant to be.
[–] IshKebab 8 hours ago
[–] hnlmorg 15 hours ago
By this I mean, a beginner to NetBSD is already a far more competent user than a beginner in many other contexts of OS users.
[–] passthejoe 15 hours ago
[–] lukaslalinsky 14 hours ago
[–] iamnothere 14 hours ago
I do think Micro is a nice editor, but we need a tiny, BSD licensed pico/nano for true beginners
[–] passthejoe 13 hours ago
Atto has a great man page that would give a user everything they needed to know if they were unfamiliar with emacs keybindings.
[–] passthejoe 14 hours ago
[–] CodeCompost 15 hours ago
[–] pwdisswordfishq 14 hours ago
[–] yearolinuxdsktp 14 hours ago
How someone jumped to beginner-friendly from that is the real question.
[–] IshKebab 8 hours ago
[–] codedokode 14 hours ago
[–] elehack 14 hours ago
[–] pjmlp 13 hours ago
[–] Narishma 13 hours ago
[–] jruohonen 10 hours ago
For many, it is indeed about what they call "muscle memory". Almost impossible to change after so many years. And therefore I hope everyone would provide keybinding alternatives generally (shouldn't be that hard).
[–] cowlevel 14 hours ago
[–] codedokode 14 hours ago
[–] MonkeyClub 14 hours ago
[–] knorker 12 hours ago
Or ARM? It's from the 1980s! So old!
[–] pjmlp 13 hours ago
[–] codedokode 13 hours ago
[–] pjmlp 12 hours ago
Despite all those flaws, people keep writing new software in C every day, go figure.
[–] anthk 2 hours ago
[–] currysausage 14 hours ago
[–] superbaconman 13 hours ago
[–] codedokode 13 hours ago
[–] basscomm 11 hours ago
[–] codedokode 11 hours ago
[–] knorker 12 hours ago
That's… not what "standard" means.
[–] athorax 13 hours ago
[–] knorker 12 hours ago
Not "40 years ago". Non-stop all day every day for 55 years.
The fact that you personally don't use it today is as irrelevant as if you were ranting about "why doesn't Linux have a Start menu!? It's 2026!!!"
[–] jhgb 11 hours ago
[–] insanetake 14 hours ago
[–] boricj 14 hours ago
I would prefer ms-edit or nano if I have to edit text files from the terminal.
[–] lostmsu 5 hours ago
Honestly after VSCode ate a good chunk of vim and emacs users I am not sure why something with similar UX but in terminal is not the standard yet in every *nix. Talk about sunken cost fallacy.
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.