News for hackers. Stuff that matters.
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @12:51AM (#22253722)
That’s not the world’s simplest text editor.

This is:

  data:text/html, <html contenteditable>
That’s a working URL. Paste it into your browser. Bookmark it for later.

No distracting GUI. No superfluous features like “save” or “open”. Does not track active user statistics. Works offline.

Re:Simple text editor has over 15k monthly users by oefrha on Thursday February 06, 2020 @03:43AM (#22254518)
No, ed(1) is the simplest and the standard text editor. And it has more than 16 users.

https://www.gnu.org/fun/jokes/ed-msg.en.html

Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @04:02AM (#22254619)
The source code to ed(1) is substantially harder to memorize, and the mobile experience is sub-par. ed(1) may seem to have strong user metrics, but they’re artificially inflated by users who don’t know how to close it and thus have kept the same session open since the early 1970s, making it difficult to inform them of other options.
Re:Simple text editor has over 15k monthly users by oefrha on Thursday February 06, 2020 @04:34AM (#22254746)
> the mobile experience is sub-par

To be fair, your editor’s tty experience is pretty much nonexistent. Tty is surely more important than mobile, don’t you think?!

Now, data:text/html, <textarea> at least works with w3m, but when I try to edit the textarea (surprise!) it just launches ed(1).

Re:Simple text editor has over 15k monthly users by anthk on Thursday February 06, 2020 @06:12AM (#22255140)
ed shines on movile on advanced usage, much more than any other editor.
Re:Simple text editor has over 15k monthly users by lasagnaphil on Thursday February 06, 2020 @04:21AM (#22254698)
Re:Simple text editor has over 15k monthly users by andrewflnr on Thursday February 06, 2020 @01:15PM (#22258549)
Butterflies are actually pretty complex, especially relative to their usage as editors.
Re:Simple text editor has over 15k monthly users by t0astbread on Thursday February 06, 2020 @01:29AM (#22253886)
If it's so good, how many monthly active users does it have?
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @01:46AM (#22253965)
Based on upvotes, at least 16. Once the current funding round is over we’ll have more time for user acquisition but right now we just want to deliver a solid MVP.
Re:Simple text editor has over 15k monthly users by busymom0 on Thursday February 06, 2020 @02:52AM (#22254285)
Time to throw some ads and analytics in there! Maybe even an autoplay video in there!
Re:Simple text editor has over 15k monthly users by gibolt on Thursday February 06, 2020 @03:13AM (#22254384)
UI is too complicated for me to comprehend. I need 3 animated generic icons on a Bootstrap site to explain all the features
Re:Simple text editor has over 15k monthly users by test1235 on Thursday February 06, 2020 @03:36AM (#22254488)
I'm going to need to upgrade it to an electron app so users can create and add plugins ... also some sort of signup/login system so they can receive useful update emails and monthly newsletters
Re:Simple text editor has over 15k monthly users by applecrazy on Thursday February 06, 2020 @03:50AM (#22254544)
And machine learning! ML makes everything better!
Re:Simple text editor has over 15k monthly users by MrGilbert on Thursday February 06, 2020 @09:01AM (#22255955)
Expanded a bit for a fancy title:

  data:text/html, <html contenteditable><head><title>InstaEdit
The corresponding .app-tld is available. Should help with VC.

For better obfuscation (competitors!), here is a base64 version:

  data:text/html;charset=utf-8;base64,PGh0bWwgY29udGVudGVkaXRhYmxlPjxoZWFkPjx0aXRsZT5JbnN0YUVkaXQ=
P.S.: Doesn't work on IE.
Re:Simple text editor has over 15k monthly users by usrme on Thursday February 06, 2020 @04:31AM (#22254731)
To those who want an automatic focus to the editable area after opening the bookmark:

    data:text/html, <html contenteditable><script>document.querySelector('html').focus()</script></html>
Re:Simple text editor has over 15k monthly users by nkrisc on Thursday February 06, 2020 @07:03AM (#22255391)
Why does it need to bloat to nearly twice the size for a simple feature? This is becoming Electron all over again.
Re:Simple text editor has over 15k monthly users by dang on Thursday February 06, 2020 @04:07AM (#22254646)
Ok, I've taken "world's simplest" out of the title, since it's baity and obviously editorialized (which breaks the rules at https://news.ycombinator.com/newsguidelines.html) and leads to maybe not the optimally interesting discussion.
Re:Simple text editor has over 15k monthly users by avip on Thursday February 06, 2020 @02:12AM (#22254093)
Should I feel dumb about not quite understanding why this url works?
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @02:18AM (#22254123)
Not at all. It’s called a data URI, and most people will never have any reason to think about them. They’re mostly useful for inlining very small icons in CSS files as hexdumps. https://en.wikipedia.org/wiki/Data_URI_scheme
Re:Simple text editor has over 15k monthly users by nkrisc on Thursday February 06, 2020 @07:04AM (#22255402)
You often see these data URLs used with a different content type and more usually a base64 encoded blob, often an image.
Re:Simple text editor has over 15k monthly users by boblivion on Thursday February 06, 2020 @02:30AM (#22254198)
Nah, my browser tells me it's insecure.
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @02:51AM (#22254283)
Did you link to it? We don’t support being linked to, which admittedly is a concern for SEO down the road.

It works in Chrome, and Firefox claims to support data URIs when directly navigated to by the user. Are you on Edge? If it lets you override the warning you should be fine.

There’s no substitute for a thorough audit of course, but if you’re worried you’ve been MITM’ed the MD5 is:

  5ad110542ebf6a3fbae7840260b0bee5
Re:Simple text editor has over 15k monthly users by skrebbel on Thursday February 06, 2020 @03:23AM (#22254423)
> the MD5 is:

I giggled! ^_^

Re:Simple text editor has over 15k monthly users by bobowzki on Thursday February 06, 2020 @02:46AM (#22254262)
It depends on what you type in I guess...
Re:Simple text editor has over 15k monthly users by rgoulter on Thursday February 06, 2020 @07:55AM (#22255625)
Re:Simple text editor has over 15k monthly users by tenant on Thursday February 06, 2020 @06:36AM (#22255258)
It needs a browser which is a lot more hungry than notepad.exe
Re:Simple text editor has over 15k monthly users by jffhn on Thursday February 06, 2020 @09:41AM (#22256269)
Agreed. When I consider the complexity of a piece of software, I always take into account the conceptual weight of all the stack behind it, down to ubiquitous basic constructs like primitive types, conditional operators, etc (but simple binary size can be an easier indicator).

Otherwise it's like saying that an application is simpler because its launch command name is shorter.

Re:Simple text editor has over 15k monthly users by Riccardo_G on Thursday February 06, 2020 @04:51AM (#22254799)
That is actually very cool!

I personally use my own chat in Slack to take random notes, and of course it saves them, but I also cannot open it as easily.

Re:Simple text editor has over 15k monthly users by buzzerbetrayed on Thursday February 06, 2020 @01:16AM (#22253821)
Just added this to my bookmarks bar. Super handy as a quick scratch pad.
Re:Simple text editor has over 15k monthly users by bigbong on Thursday February 06, 2020 @03:24AM (#22254433)
I bookmarked this.. Can I open the URI in a new tab?
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @03:34AM (#22254472)
Hold ctrl (on Windows) or cmd (on Mac) when clicking the bookmark.

It’s actually tricky to open a data URI in a new window using JS, in a bookmarklet or elsewhere. Browsers block it because it can be a vector for phishing attacks.

Re:Simple text editor has over 15k monthly users by ent101 on Thursday February 06, 2020 @01:07AM (#22253784)
That's actually pretty awesome!
Re:Simple text editor has over 15k monthly users by sandoooo on Thursday February 06, 2020 @01:11AM (#22253799)
I don't think it counts if it can't actually edit text, i.e. open and save at minimum.
Re:Simple text editor has over 15k monthly users by goodside on Thursday February 06, 2020 @01:24AM (#22253861)
It’s a text editor. It can edit text just fine. If you need to do esoteric stuff like opening/saving you might as well install Visual Studio or something.
Re:Simple text editor has over 15k monthly users by zzo38computer on Thursday February 06, 2020 @01:25AM (#22253867)
You can open and save. Just use the browser's save function, to save a local HTML file. (At least on my computer, this saves the text you put in, at least if you select the "complete" option when saving.) You can then recall that file just as easily.

Of course, it will only save as HTML and recall the same HTML file you saved in this way, and doesn't support plain text files. But, nevertheless, you can open and save.

Re:Simple text editor has over 15k monthly users by _carl_jung on Thursday February 06, 2020 @04:36AM (#22254753)
You can even export as PDF and print
Re:Simple text editor has over 15k monthly users by hopia on Thursday February 06, 2020 @02:06AM (#22254061)
What a lifehack!
Re:Simple text editor has over 15k monthly users by jabits on Thursday February 06, 2020 @01:06AM (#22253772)
Neat! So simple.
Re:Simple text editor has over 15k monthly users by Insanity on Thursday February 06, 2020 @05:39AM (#22254998)
that's quite cool actually!
Re:Simple text editor has over 15k monthly users by hyperpallium on Thursday February 06, 2020 @03:16AM (#22254389)
All it needs is a browser!

BTW didn't work in android FF.

Re:Simple text editor has over 15k monthly users by elrobinto on Thursday February 06, 2020 @03:19AM (#22254403)
Works for me on android firefox
Re:Simple text editor has over 15k monthly users by hyperpallium on Thursday February 06, 2020 @09:23AM (#22256120)
Thanks! I tried again, and it is working. It was so simple (and no cursor until select), I thought it was just a blank screen.
Re:Simple text editor has over 15k monthly users by jankotek on Thursday February 06, 2020 @01:32AM (#22253900)
Does it run on DOS?
Re:Simple text editor has over 15k monthly users by vbezhenar on Thursday February 06, 2020 @04:05AM (#22254640)
It is web scale!
Re:Simple text editor has over 15k monthly users by hootbootscoot on Thursday February 06, 2020 @08:23AM (#22255750)
thank you.
Re:Simple text editor has over 15k monthly users by kraigie on Thursday February 06, 2020 @03:17AM (#22254396)
What about cat example.txt?

No browser needed. No GUI. Works offline.

Surely that's simpler?

Re:Simple text editor has over 15k monthly users by skrebbel on Thursday February 06, 2020 @03:19AM (#22254402)
it's also not an editor.
Re:Simple text editor has over 15k monthly users by jraph on Thursday February 06, 2020 @08:02AM (#22255665)
Would cat >> example.txt be one, however?
Re:Simple text editor has over 15k monthly users by lainproliant on Saturday February 08, 2020 @05:38AM (#22275096)
Yes, and it is my preferred method of editing `.gitignore` files:

cat >> .gitignore

*.pyc

^D

Re:Simple text editor has over 15k monthly users by yitchelle on Thursday February 06, 2020 @06:46AM (#22255309)
but you need the cat executable and CLI environment. Harder to do these days than double clicking on the browser icon.