NetBSD 在 -current 基本系統中加入 atto 文本編輯器
NetBSD 新增了一个名为 atto 的文本编辑器
NetBSD Foundation 在 NetBSD -current 的基本系統中加入 atto(1),作為 vi(1) 和 xedit(1) 以外的編輯器,方便新用戶適應。atto 是一款無模式、以螢幕為基礎的文本編輯器,類似 nano、pico、xedit 或 emacs,體積僅 48 kilobytes,可納入救援系統。
- Skip to main contentHotkey 1
- Skip to main navigationHotkey 2
Recent searches
No recent searches
Search options
Only available when logged in.
mastodon.sdf.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko
Administered by:
Server stats:
1.6K
active users
mastodon.sdf.org:
Mastodon:
Back
NetBSD Foundation @netbsd@mastodon.sdf.org
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.
(This is real, but I'm honestly missing an opportunity by not posting it on 1 April. Let the editor wars commence!)
man.netbsd.orgatto(1) - NetBSD Manual Pages
111 boosts·1 quote·234 favorites
@netbsd Thankyou! Vi was an interesting new experience, but certainly a hurdle while learning everything else at once.
1
Ein Philosophiker@slesa@social.saarland20h
@noodle@netbsd Where is NeoVim?
1
mega@megatog615@mastodon.social20h
1
Ein Philosophiker@slesa@social.saarland20h
@megatog615@noodle@netbsd Nvim is slop???
1
mega@megatog615@mastodon.social20h
@slesa@noodle@netbsd
yes? where have you been?
https://github.com/neovim/neovim/blob/master/CONTRIBUTING.md#ai-assisted-work
1
Ein Philosophiker@slesa@social.saarland20h
@megatog615@noodle@netbsd I'll give up. Maybe work with wood. Programming doesn't make sense nor fun anymore.
0
d@nny disc@@hipsterelectron@circumstances.run1d
@netbsd emacs user but 48kb is cute and i like cute shit. i'm working on refactoring the emacs configure script and establishing canonical accepted versions of dependencies to make packaging easier but emacs will always be eight megabytes and constantly swapping in my heart
0
Parade du Grotesque @ParadeGrotesque1d
From the man page:
STANDARDS
atto is not the standard editor.
Well played, #NetBSD well played...
2
Stephen Borrill@sborrill@justfollow.me.uk1d
@ParadeGrotesque@netbsd It makes a serious point though. The EDITOR environment variable says what should be used by various programs and is unset by default. If not set, it defaults to vi. This is set in various places:
https://nxr.netbsd.org/source/search?q=_PATH_VI&project=src
This affects common tasks like crontab -e and vipw.
The weird thing is that atto is not in pkgsrc, so you can't try it for non-current without manually building it.
nxr.netbsd.orgCross Reference: /src/sys/lib/libsa/close.c
1
Parade du Grotesque @ParadeGrotesque1d
But vi is not the standard editor either!
1
@ParadeGrotesque@sborrill vi is the standard editor
vi is the standard editor
vi is the standard editor
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html
1
alephoto85 
@alephoto85@fedi.bobadin.icu1d
@netbsd@ParadeGrotesque@sborrill
...forgive them, for they don't know what they do
0
Tall Simon@TallSimon@mstdn.ca1d *
Paging @mwl ... please come to the front desk ...
0
@netbsd angry goose meme what is the standard editor? What's the standard editor, NetBSD?
3
Cara@cararemixed@mastodon.social1d
@drj@netbsd Remove ed and add sam. This will be like free [rage inducing] publicity. (Maybe best for April 1st)
2
@cararemixed@drj@netbsd
I demand to know why TECO is not installed by default. How am I supposed to edit my tapes without TECO?
:-)
1
Cara@cararemixed@mastodon.social1d
@wfk@drj@netbsd TECO is there, somewhere, on the tapes.
1
@cararemixed@drj@netbsd
Oh, it's there, in the packages. Or at least a clone of it (I guess the original wouldn't compile). But I would have to go through all the trouble of separately installing it myself. That's just not done.
:-)
0
ed(1) conference@ed1conf@bsd.network1d
ALT
Hide
0
@drj@netbsdhttps://cs.wellesley.edu/~cs249/Resources/ed_is_the_standard_text_editor.html
cs.wellesley.eduEd Is The Standard Text Editor
0
@drj vi is the standard editor.
vi is the standard editor.
vi is the standard editor.
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html
0
Chad McCullough@chadmccullough@bsd.cafe1d
0
Laoise Nic Giolla Uidhir@lw@bsd.cafe1d
@netbsd i once had a really long argument with someone who claimed the FreeBSD is unusable because while we include ee(1) in base, we still default to vi(1) if EDITOR/VISUAL isn't set.
i assume NetBSD isn't planning to make atto the default?
1
@lw@netbsd sounds like that person was being overly dramatic and should calm down!
FreeBSD is Completely Unusable for other important reasons, such as:
- how do i install it on my sun blade
- why is there no aiomixer(1)
0
Speed demon @hakona@im.alstadheim.no1d
@netbsd
Nice. More emacs-like than nano it seems.
1
njsg@njsg@mementomori.social1d
@hakona@netbsd That would actually be a good thing, I have to check it out. Nano tends to be hard for me because of 'so close but yet so different', so muscle memory fails me a bit.
(I should, though, in the interest of transparency, mention I tend to use ed for certain editing tasks :-P )
0
Ray McCarthy@raymaccarthy@mastodon.ie1d
@netbsd
nano & emacs are nothing like each other.
Still, sounds like a good idea.
0
Jay
@jaypatelani@bsd.network1d
@netbsd you guys should have renamed to atto-san I read it as attosan
3
SirWumpus @sirwumpus@tilde.zone1d
Hugh Barney's work based on my ae - sweet. Is that 48KB static link?
Maybe take a look at eh about 35KB (dynamic linked - c, curses) minimalist vi-like. It was added to pkgsrc by someone.
0
SirWumpus @sirwumpus@tilde.zone1d
atto metric unit of measure; Hugh also has smaller versions femto and zepto.
0
@jaypatelani natto perhaps.
ALT
Hide
3
Haelwenn /элвэн/
@lanodan@queer.hacktivis.me1d
@netbsd@jaypatelani Ah yes, NetBSD atto(1)
0
I hope your dog feels better soon
0
Jay
@jaypatelani@bsd.network23h
@netbsd it even rhymes with nano 
0
echopapa@echopapa@social.tchncs.de1d
waiting for femto...
0
ed(1) conference@ed1conf@bsd.network1d
:coughs:
1
SirWumpus @sirwumpus@tilde.zone1d
:coughs:
They have an illusion for that.
0
thedæmon (Clay Ayers) [he / him]@thedaemon@snac.9front.club1d
"atto is not the standard editor." Love this honesty in the man page!
0
@netbsd alternative to vi? the editor that everyone knows and loves? for what purpose :D
1
@jadedarko Some people are very strange.
1
yomimono, temporarily bakemono@yomimono@wandering.shop20h
@netbsd@jadedarko this sounds like a bit but it is just literally true: my ESC key isn’t being registered by vi for some reason so I can’t change modes. It will be really helpful to have a usable editor that doesn’t need ESC
1
David JONES@drj@typo.social20h
@yomimono Does Ctrl-[ work? it sends the same ASCII code as Esc. Or, it should do. If you have a [ key. and a Ctrl key.
0
Henrik Pauli@phl@mastodon.social1d
@netbsd I know the Emacs-ish customs are C-x and M-y, but it still feels pretty weird to see Esc-x (with a dash) in the manual that seems to be aimed at newcomers, while Esc isn't really a held modifier key.
0
Michael Ormsby@michaelormsby@mastodon.art1d
@netbsd ed(1) is the One True Faith.
0
Gourd@gourd@indieverse.social1d
@netbsd oh thank God, I spent thirty minutes a few weeks ago trying to edit one line of text in /etc/fstab in vi a few weeks ago when setting up cgd. I don't know if it was me or something going wrong with my keyboard in single user mode or what.
0
@netbsd My sincerest apologies for bringing in BSD to our one in one hundred, mass extinction events.
0
The existence of an extremely minimal #editor named atto implies the existence of an extremely maximal editor named micro that has absolutely every feature ever.
1
mega@megatog615@mastodon.social20h
@argv_minus_one@netbsd emacs
0
David Fleetwood - RG Admin@reflex@retrogaming.social1d
@netbsd I always tell people I'm a Pico guy just to see the reaction...
0
@netbsd@mastodon.sdf.org How's the unicode support? My biggest pet peeve with small text editors like mg is that they don't support UTF-8.
1
@netbsd@mastodon.sdf.org Ok I read the man page and it literally says it supports UTF-8 in the first paragraph. Great!
0
Andrew@cinebox@masto.hackers.town1d
@netbsd this is ridiculous, we’re going to run out SI prefixes
0
mirabilos@mirabilos@toot.mirbsd.org1d
@netbsd yikes.
But long as /bin/ed remains…
2
@mirabilos I am sorry, we could not include jupp because it is GPL.
1
mirabilos@mirabilos@toot.mirbsd.org19h
@netbsd yes, I know, I have the same problem…
0
Eric Likness@carpetbomberz@mastodon.online5h
ed IS the standard editor. Just as the man pages say. ️
0
Steven Rosenberg@passthejoe@ruby.social1d
@netbsd This is great for people who have some familiarity with Emacs keybindings, or who want to gain that knowledge. It reminds me of mg in #OpenBSD in that regard.
For new users, I think the micro editor is the way to go. It uses the keybindings that most GUI programs use, so there's very little learning curve.
1
@passthejoe Counterpoint: Users can figure out how to use atto in 10 seconds by spamming key combinations and being greeted with "Not bound - try ctrl+x+w to write and ctrl+x+c to exit".
1
Steven Rosenberg@passthejoe@ruby.social17h
@netbsd I'll try it. I'm not strong in emacs knowledge, so I'm a good guinea pig
1
@passthejoe The person who committed this editor has never used emacs before.
0
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.
Drag & drop to upload
來源:Hacker News 熱門(buzzing.cc 中文翻譯) · mastodon.sdf.org

GitHubneovim/CONTRIBUTING.md at master · neovim/neovimVim-fork focused on extensibility and usability. Contribute to neovim/neovim development by creating an account on GitHub.
Codeberg.orgeheh - Edit Here - vi(1) the good parts version is a minimalist version of vi(1) with zero configuration.