Most active commenters
  • pxc(4)
  • seabrookmx(3)
  • prmoustache(3)
  • (3)

←back to thread

Microsoft Edit

(github.com)
486 points ethanpil | 43 comments | | HN request time: 0.525s | source | bottom
1. pxc ◴[] No.44372814[source]
I used to recommend micro[1] to people like those in the target audience of this editor. I wonder if that should change or not.

--

1: https://micro-editor.github.io/

replies(5): >>44373245 #>>44374404 #>>44374937 #>>44381163 #>>44384221 #
2. seabrookmx ◴[] No.44373245[source]
IMO it should not.

`edit` doesn't even support syntax highlighting (atleast, out of the box when I tried it).

replies(2): >>44373324 #>>44374287 #
3. Litruv ◴[] No.44373324[source]
I think you missed the point of edit.
replies(3): >>44373833 #>>44379436 #>>44389184 #
4. bapak ◴[] No.44373833{3}[source]
I think not. Edit is to edit files in the terminal. What kind of files do you expect people to edit in the terminal? Most certainly files that would benefit from colors, not prose.
replies(2): >>44374131 #>>44374610 #
5. shakna ◴[] No.44374131{4}[source]
A lot of authors, myself included, want a "distraction free" editor. Its a whole over-populated market segment.

Prose thrives in the terminal. Ice and Fire was written in WordStar, as just one popular example.

replies(3): >>44374420 #>>44374988 #>>44384635 #
6. _flux ◴[] No.44374287[source]
It might in the future, though, as the main developer has opened an issue about it: https://github.com/microsoft/edit/issues/18

The trick is doing it while keeping the binary size small, so tree sitter is not an option.

replies(2): >>44379135 #>>44389168 #
7. prmoustache ◴[] No.44374404[source]
Last time I checked, micro should have been called macro based on the binary file size.
replies(3): >>44375356 #>>44375645 #>>44378551 #
8. antonvs ◴[] No.44374420{5}[source]
Is that why the series ground to a halt
replies(1): >>44385792 #
9. kristopolous ◴[] No.44374610{4}[source]
I met someone recently that still uses WordStar. Yes I'm serious. He runs it in QEMU on FreeDOS. He's a writer for a living.
replies(2): >>44375135 #>>44378678 #
10. smartmic ◴[] No.44374937[source]
There is also dte[1]. It hits exactly the same notch and offers an extremely lean editor with Unicode support, CUA key bindings and much more. It has replaced nano as my terminal editor.

[1]: https://craigbarnes.gitlab.io/dte/

replies(2): >>44375225 #>>44378793 #
11. red_admiral ◴[] No.44374988{5}[source]
Rachel Kroll once posted that she writes her posts in nano, with the distraction of syntax highlighting turned off: https://rachelbythebay.com/w/2011/09/24/editor/

I can't find the link but I think at some point she compiled her own nano with some "helpful" feature patched out again.

12. 4k93n2 ◴[] No.44375135{5}[source]
George R.R. Martin still uses Wordstar as well!
13. sneak ◴[] No.44375225[source]
Why are you opposed to learning vi which is already installed everywhere?
replies(6): >>44375266 #>>44375556 #>>44375621 #>>44378853 #>>44379925 #>>44381764 #
14. 4ggr0 ◴[] No.44375266{3}[source]
as someone who uses CLI text editors frequently, but not often enough to build the muscle memory which remembers VI shortcuts, i really appreciate simple text editors.

i know that i can press like 3-4 arbitrary buttons to mark a block to move it to a different place - how about i just mark it with my cursor and CTRL-X CTRL-V, like every freaking other program out there.

i appreciate that i got VI on freshly installed or secured servers, but for things i use daily, i just want it to be KISS. already counting on people answering 'but vim is easy and simple'. opinions differ i guess.

https://www.youtube.com/watch?v=9n1dtmzqnCU

15. 3836293648 ◴[] No.44375356[source]
Well, it is orders of magnitude larger than nano, so...
16. IshKebab ◴[] No.44375556{3}[source]
Because vi has all the usability of a keyboard made out of hedgehogs.
replies(2): >>44376497 #>>44380564 #
17. smartmic ◴[] No.44375621{3}[source]
I learned vi a long time ago and use it when no other editor is at hand. In fact, I am using several editors simultaneously, depending on the task at hand and what is availabe. I stumbled over dte because I like to try out new things. And because dte hits many sweet spots for me, I installed it on machines where I often need a terminal editor. Binding myself to only one tool just because I learned to use it at some point in time is not my philosophy. Thankfully, the open source world offers so many alternatives and innovations, so that there is something for almost all tastes and habits. It comes with no costs besides building muscle memory to switch as needed and wanted.
18. sime2009 ◴[] No.44375645[source]
Seriously? We're going to complain about a couple megs in a text editor in the year 2025?
replies(2): >>44378803 #>>44381755 #
19. s1mplicissimus ◴[] No.44376497{4}[source]
I wouldn't consider vi usability to be overall bad. Sure, affordance ("is it easy grasp which moves i can make without affording much cognitive effort?") is terrible.

Setting up a decent environment is also a huge pain to get started with, but nowadays you can just hop into a prewarmed pool with premade setups like Normalvim or LunarVim.

But usability is not just "is it easy to learn", it's also "once i know it, how hard is it to use"

Once the moves are ingrained in your (muscle-)memory it becomes so incredibly efficient. di{, dat, yaf etc. are just the low hanging fruit, once you start with regex, macros and plugins the fun really begins.

20. pxc ◴[] No.44378551[source]
Isn't the relatively large binary just because it's written in Golang? Go executables each ship their own copy of the Go runtime. That alone accounts for a big chunk of small programs like this.

Nano also links against ncurses, which is about as big as the compressed tarball for micro. I'm looking at the dependency closures of each right now in nix-tree[1], and micro's closure's total size is 15.04 MiB while nano's is 12.78 MiB-- not really "orders of magnitude" (as a sibling commenter suggests) when you look at it like that.

Admittedly, nano's dependencies (`file` and `ncurses`, on my system) are likely to ship as part of the "base system" of any Linux distro anyway; the real size it adds to any distro is negligible. But there's no indication to me that micro is meaningfully "bloated", as the meme goes; it seems like what is required to run it is reasonable and comparable to other tools that serve the same purpose.

--

1: See: https://github.com/utdemir/nix-tree ; Try `nix run nixpkgs#nix-tree -- $(nix build --no-link --json nixpkgs#nano | jq -r .[0].outputs.out)`

replies(2): >>44380211 #>>44381726 #
21. legends2k ◴[] No.44378678{5}[source]
Sure, there are always exceptions but they're only that, exceptions.
22. whou ◴[] No.44378793[source]
I'd recommend everyone to take a look and read some of dte's source code. It's a great example of beautifully written modern C code.
23. mixmastamyk ◴[] No.44378803{3}[source]
Yes, couldn’t use on my router because of its size. No reason for a TUI to be so big. Advanced features outside of syntax highlighting not useful. Should have a light version.

I installed nano with CUA keybindings instead.

24. mixmastamyk ◴[] No.44378853{3}[source]
Learning CUA once is more realistic/convenient for most people.
25. ComputerGuru ◴[] No.44379135{3}[source]
Vim (and so many other editors, too) supported syntax highlighting for decades before TreeSitter even existed. Let’s not act as if this is a novel challenge.
26. seabrookmx ◴[] No.44379436{3}[source]
I think you missed the question I was answering in my comment.
replies(1): >>44381677 #
27. pxc ◴[] No.44379925{3}[source]
I like vim a lot, and I use vim-style bindings wherever I can.

But before I learned to ride a bike, I used training wheels, and before I learned enough vim to enjoy using vim, I leaned on nano.

When someone is first learning to explore GNU/Linux, or even to dig into the Unix guts of macOS, they're learning a whole new world, not just a new text editor. For some people, strategic bridges to what they know (like CUA or Windows-like shortcuts) can make this process more fun and less fatiguing. Sometimes that difference is decisive in keeping someone motivated to learn and explore more.

Anyway, I think vim is worth learning (and maybe some of the quirks of old-school vi, if you expect to work on old or strange systems). It's not a matter of if I recommend that someone learn vim, but when. And until it's time for them to explore an editor deeply, micro seems like a great fit for most people.

I also want to say: as enthusiasts of Unix-like operating systems, or as professionals who appreciate some of their enduring strengths, should we really embrace a "because it's there" doctrine? Isn't that same kind of thinking responsible for huge, frustrating piles of mediocrity that we work with every day and resent?

ss someone who loves an ecosystem built first by volunteers as "just a hobby, nothing big and serious", I will it's sad, if not hypocritical, to dismiss software projects just because they aren't already dominant players. Most software I love was once marginal, something its users went to lengths to install on the systems they used because they enjoyed it more than the defaults. We should, to the extent practical, try to leave a little room for that in the way we approach computing— even as we get older and grumpier.

28. ◴[] No.44380211{3}[source]
29. sneak ◴[] No.44380564{4}[source]
vi isn’t usable. it sucks. but the facts are it’s installed everywhere and you can learn how to use it in 10-15 minutes. easier to patch your ignorance of basic vi than it is to install software on every machine you’ll ever edit on.
30. mattbee ◴[] No.44381163[source]
And you can get it on Windows with just "winget install zyedidia.micro". Reminds me of 8 & 16-bit editors of a similar era.
31. JdeBP ◴[] No.44381677{4}[source]
There's an underlying assumption about "target audience for this editor" that you both share, that others, I suspect quite a few others, do not.

For starters, there's your assumption that there is "syntax" to be highlighted. Not every text file is something written in a computer programming language.

replies(2): >>44382079 #>>44382116 #
32. prmoustache ◴[] No.44381726{3}[source]
The reason may help understand why but it is not really interesting from the point of view of the user or those packaging it with their OS.
33. prmoustache ◴[] No.44381755{3}[source]
Like my mother say. Small stream makes huge rivers.

Not caring about a couple of megs here and there is what makes some modern systems so bloated.

34. JdeBP ◴[] No.44381764{3}[source]
You realize that you're asking this in a discussion of a tool that is intended to be installed out of the box on Microsoft Windows, where vi is not installed out of the box, right? Your "everywhere" doesn't include the primary use case for what is being headlined here.
35. ◴[] No.44382079{5}[source]
36. seabrookmx ◴[] No.44382116{5}[source]
You're right, I do assume most (90+%? of) people that are looking for a terminal editor are likely developers.

In fact I'd put money on it, but sadly do not have any evidence to back it up.

If you have evidence to the contrary I'd be intrigued!

replies(1): >>44387872 #
37. EasyMark ◴[] No.44384221[source]
Micro is a great editor to replace stuff like nano. I think it would be a bad replacement for edit though, edit is very barebones, and micro is very "upgradeable" through lua. It also handles large files quite well also
38. ◴[] No.44384635{5}[source]
39. shakna ◴[] No.44385792{6}[source]
> “I’m 12 years late on this damn novel, and I’m struggling with it,” he said. “I have like 1,100 pages written, but I still have hundreds more pages to go. It’s a big mother of a book for whatever reason. Maybe I should’ve started writing smaller books when I began this, but it’s tough.”

He's averaging a hundred pages a year. Maybe not the fastest, but certainly not the slowest writer. With the size of his books... Cut the guy some slack.

replies(1): >>44411468 #
40. pxc ◴[] No.44387872{6}[source]
You might not be wrong about percentages, but there are famously some Emacs users who for into it for Org mode or academic writing, including even some who learned to program long to better customize their Emacs setup and eventually became contributors.

But these are amateur geeks or geeks in the making who probably don't mind having the capability of syntax highlighting built in, even if for some purposes they want it turned off.

41. kasajian ◴[] No.44389168{3}[source]
why would the binary size be big to support this? Scintilla has been doing syntax color for decades -- it's pretty small.
42. kasajian ◴[] No.44389184{3}[source]
I think you're assuming people who are thinking of going beyond the original "point" of edit missed that point. We didn't. We're looking new directions it can go.
43. antonvs ◴[] No.44411468{7}[source]
> 12 years late

Seems like people have cut him a lot of slack already. Of course he doesn’t really owe anything to anybody, but at some point he and everyone else has to face the reality - which is that if that book is ever published, it’ll be posthumously, finished by a ghostwriter.