Simple text editor has over 15k monthly users
mytextarea.com
mytextarea.com
Follow-up a year later: https://news.ycombinator.com/item?id=6366724
Has anyone built a substantial one like this for their own use?
to type plain text
to remove markup from text
to count words and charactershttps://www.howtogeek.com/186723/ask-htg-how-can-i-paste-tex...
offline trustworthy solutions for Windows And most of all I don't have to worry about losing control over the text.
The only benefit I see (if it is possible) is collaboration, but on a work-related environment why use a text instead of Google Docs (which I don't use either, but I see the benefit of audit trail)
I guess for the most part these sort of things start off solving a personal problem. Getting 15k monthly users is very impressive!
If it wasn't then it wouldn't be a very good "world's simplest text editor", would it now? :P
Edit: It looks small enough that you could probably turn it into a bookmarklet so it wouldn't even need a server. Now that would be awesome.
https://gist.github.com/bachmeil/7c19e72b9a5c49a85e8cecb0b7a...
Can't say I use it very often, but it was cool being able to do it in a few minutes even though I'm not a web developer.
Features:
- Works offline
- Autosaves to local storage
- Downloadable as PWA (Progressive Web App) on mobile
- Dark mode
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.
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.
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:
5ad110542ebf6a3fbae7840260b0bee5I giggled! ^_^
BTW didn't work in android FF.
No browser needed. No GUI. Works offline.
Surely that's simpler?
cat >> .gitignore
*.pyc
^D
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.
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).
data:text/html, <html contenteditable><script>document.querySelector('html').focus()</script></html>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.
Otherwise it's like saying that an application is simpler because its launch command name is shorter.
https://developer.mozilla.org/en-US/docs/Web/HTML/Global_att...
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. $ cat > edited.txt
Enter text, hit ^D when you're done.If you pray hard enough, Google will find a way to let you do that in a browser, so someone can count MAUs.
Readline and shell edit commands are a better text editor than simply cat.
echo "Your text here edited as you want" > edited.txt