News for hackers. Stuff that matters.
Re:I created this small app for you, if you like to write by cientifico on Sunday December 23, 2012 @12:45PM (#4960035)
Really like it. Love the detail of saving in localstorage.

Thinks that, from my point of view, can create an even better experience.

* 1.5 space between paragraphs.

* Backspace sound.

* New line sound.

* Space sound.

* 80 character wide.

* Slightly different sound per key (or row of keys).

* Easy to remember domain.

Then things that I am not so sure, but as long as don't change the interface, could be cool.

* Ctrl-C copy all the text without the need of selecting text. (Probably require flash).

* Ctrl-Shift-C the same but copy the result of markdown the current text (so html is actually copied).

* Selecting text automatically copy the selection to the clipboard.

Things that I will like to play with but don't sure if they are usefull.

* Page simulation. 80 char + margin in white, with proper paper texture, and back background.

* Go for fullscreen on load (if possible), and fallback to show a small, only onmousemove fullscreen icon.

On any case. Really. I really like it. Love to be able to have a webdav (basic auth) interface and could install on my own server. So i can add files just by changing the url, and access that files later through ssh.

Re:I created this small app for you, if you like to write by guru_shastry on Sunday December 23, 2012 @01:30PM (#4960163)
Love your ideas!
Re:I created this small app for you, if you like to write by channi on Sunday December 23, 2012 @12:20PM (#4959952)
Someone please make me understand why this end up on first page on HN. I saw similar apps many times earlier here. What's the big deal? Why not regular editor in some 'guru' distraction free mode? For instance Sublime Text can do that (including autosave and quick startup).
Re:I created this small app for you, if you like to write by DanBC on Sunday December 23, 2012 @01:09PM (#4960109)
It's a weekend, and different things get to the front page on weekends.

I like to think that most "Show HN" posts make it to the front page, but I realise that's probably not true.

Re:I created this small app for you, if you like to write by antidoh on Sunday December 23, 2012 @01:47PM (#4960215)
Everyone's big deal is different.

"I made this" is always welcome here.

Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @12:40PM (#4960016)
I personally found this interesting because the app looks fun, it makes sounds, and it demonstrates some aspects of modern JavaScript that I have got out of date on. I could put the app up on a projector in class and students would find it amusing.

Yes, I shall continue to use Gedit for writing Web page text, which I can then run through markdown.

Re:I created this small app for you, if you like to write by polymathist on Sunday December 23, 2012 @12:58PM (#4960075)
The sound is lagging behind my typing by at least a second. As a result, I hear nothing and then bursts of several instances of the sound playing at once, which sounds awful. As others have pointed out, the lag might be because you're invoking local storage after every keyup event. I see the merit in that idea, but as AskHugo suggested, it runs a lot smoother if you save every 2 seconds. I don't think anyone would complain about losing a maximum of the past 2 seconds of their work.

Sound effects are always going to be a polarizing feature (some like it, some hate it), and the comments on this post prove that. You should provide an easy way to turn sound effects off.

That aside, great job with this. I am a big fan of beauty through simplicity.

Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @03:10PM (#4960479)
Gnome Ubuntu Remix with Firefox, and no sound anyway. Same with Opera. Epiphany browser (the 'official' Gnome web browser) does play the sound. This is probably a Linux thing, not your app.

Where are you going with this? Just plain and simple for actual 'stream of consciousness' writing or the full skeuomorphic invocation of the manual typewriter, like

http://www.masswerk.at/google60/

did for the card punch? Either is fine by me!

Re:I created this small app for you, if you like to write by Falling3 on Sunday December 23, 2012 @12:07PM (#4959920)
Just to echo some of the ideas mentioned here...

Enjoyed the keypress noise.

Expected word wrap and "ka-ching" sound.

Love the minimal interface.

Markdown support would be really cool.

Re:I created this small app for you, if you like to write by 19_ploT on Sunday December 23, 2012 @12:22PM (#4959962)
Word wrap done. Finding a cool ka-ching sound now.
Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @12:54PM (#4960061)
https://dl.dropbox.com/u/8403291/cr.mp3

A real carriage return

https://dl.dropbox.com/u/8403291/ring.mp3

The little bell is harder because you tend to type a couple of characters during its decay

Freesound has plenty of typewriter samples.

Re:I created this small app for you, if you like to write by mahesh_rm on Sunday December 23, 2012 @01:40PM (#4960184)
This [for newline] keeps up with the app aurea and it's short enough to solve decay problems: http://www.freesound.org/people/orginaljun/sounds/153063/
Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @03:00PM (#4960446)
Yes, bit lower and less 'ringy' than the manual typewriters I used for years but fits in with the clicks used for the characters. Nice find
Re:I created this small app for you, if you like to write by stblack on Sunday December 23, 2012 @01:44PM (#4960202)
Other than display what I type, I couldn't reckon anything else this can do.

Reading the comments I see I missed some things but that's a pretty clear failure of UI design.

So I went back. Still can't see any features other than display what I type.

So I try again, this time on Chrome. Now I hear very annoying audio as I type, and no hint of any other features.

How the hell does this POC make it to the front page of Hacker News?

Re:I created this small app for you, if you like to write by roh26it on Sunday December 23, 2012 @11:44AM (#4959848)
Superb for writing, but what do I do once I'm done? Really like the sound as I type though my mechanical keyboard makes them for me already! :)
Re:I created this small app for you, if you like to write by 19_ploT on Sunday December 23, 2012 @11:46AM (#4959857)
You can close it and go to bed. If you come back in the morning, your poem/story will be loaded for you.
Re:I created this small app for you, if you like to write by Techasura on Sunday December 23, 2012 @11:54AM (#4959884)
Truly nice. Simple and beautiful. can i use it on my website?
Re:I created this small app for you, if you like to write by diggan on Sunday December 23, 2012 @12:00PM (#4959903)
Why not?

    <iframe src="http://solitarydesigns.net/write/"></iframe>​​​​​​​
Difficult to read the data with that solution though, if it had one JS API, it would become more useful...
Re:I created this small app for you, if you like to write by homunculus on Sunday December 23, 2012 @11:57AM (#4959894)
Do I need to use the same browser or does it ID my computer some other way?
Re:I created this small app for you, if you like to write by 19_ploT on Sunday December 23, 2012 @11:59AM (#4959900)
Same browser for now.
Re:I created this small app for you, if you like to write by yuchi on Sunday December 23, 2012 @11:56AM (#4959887)
LocalStorage FTW
Re:I created this small app for you, if you like to write by renownedmedia on Sunday December 23, 2012 @11:51AM (#4959870)
It doesn't go Ka Ching when I hit enter...
Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @12:12PM (#4959933)
http://freesound.org/people/keithpeter/sounds/123344/

Some end of line bell sounds here.

I liked the application - totally minimal! I'm out of date on Javascript, local storage data I assume ends up in the browser cache?

Re:I created this small app for you, if you like to write by grimgrin on Sunday December 23, 2012 @01:53PM (#4960237)
It's HTML5's "localStorage", a local database that is all key/value.

localStorage.setItem("theKeyToSaveItAs", "theValue");

OP is saving via localStorage every 2 seconds:

setInterval(function() {

    localStorage.setItem("text", textarea.value);
}, 2000);
Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @03:03PM (#4960453)
Thanks for the code example. I've tracked down where Firefox puts this, and I've realised that the original piece of work will carry on working when saved locally. Quite interesting...
Re:I created this small app for you, if you like to write by 19_ploT on Sunday December 23, 2012 @01:50PM (#4960224)
Now it does.
Re:I created this small app for you, if you like to write by AskHugo on Sunday December 23, 2012 @12:44PM (#4960031)
I don't know if I'm just imagining it, but typing feels a little laggy.

Could it be because it's saving to local storage after every keyup?

I made it save every 2 seconds with setInterval() and it feels a little smoother.

Re:I created this small app for you, if you like to write by 19_ploT on Sunday December 23, 2012 @01:04PM (#4960093)
Thanks for the suggestion, it works good now.
Re:I created this small app for you, if you like to write by bretthardin on Sunday December 23, 2012 @12:00PM (#4959905)
Awesome. Two requests:

1. No sound. It's distracting. 2. Support of markdown?

Re:I created this small app for you, if you like to write by mosselman on Sunday December 23, 2012 @12:14PM (#4959935)
Nice.

Would be cool to be able to store things in a more secure feeling way than local storage.

Also, the already made comments about ka-ching and word wrap.

Re:I created this small app for you, if you like to write by klepra on Sunday December 23, 2012 @01:36PM (#4960174)
Nice! It would be cool if you could login/send it to your gmail inbox or something. Than later use it.

I would love to write emails in such editor!

Re:I created this small app for you, if you like to write by Felix21 on Sunday December 23, 2012 @11:56AM (#4959890)
Quite awesome

I would like to be able to Write different notes tho. Apart from that, pretty neat concept.

And the design is beautiful.

Re:I created this small app for you, if you like to write by irmbrady on Sunday December 23, 2012 @12:00PM (#4959906)
I actually had fun with this. Any chance of adding word wrapping? It lost its charm once I had to scroll to see my longer sentences.
Re:I created this small app for you, if you like to write by nakkiel on Sunday December 23, 2012 @11:55AM (#4959885)
Two things, besides the limited usefulness of it:

sound on keypress, really?

save on keypress, really?

Re:I created this small app for you, if you like to write by dignati on Sunday December 23, 2012 @12:14PM (#4959939)
The sound is so satisfying that I spend 5 minutes writing a bunch of senseless stuff just to hear it.
Re:I created this small app for you, if you like to write by cfj on Sunday December 23, 2012 @01:54PM (#4960239)
The carriage return sound isn't preloaded. You misspelled the preload attribute as preloaf.
Re:I created this small app for you, if you like to write by guru_shastry on Sunday December 23, 2012 @01:37PM (#4960175)
A word & character count somewhere in the margins would be great.

Absolutely love it.

Re:I created this small app for you, if you like to write by keithpeter on Sunday December 23, 2012 @03:13PM (#4960489)
If the original author is going down that road, how about 'hiding' the counts and then a mouse hover brings them up? Minimal working area but accoutrements a mouse gesture away.
Re:I created this small app for you, if you like to write by andyobryan on Sunday December 23, 2012 @12:14PM (#4959938)
Beautiful! Thanks for sharing: Wordwrap would be a nice addition, as others have noted.
Re:I created this small app for you, if you like to write by nrbafna on Sunday December 23, 2012 @12:35PM (#4959997)
Please add support for Tab key.
Re:I created this small app for you, if you like to write by josscrowcroft on Sunday December 23, 2012 @01:19PM (#4960132)
Beautiful. Will you release the source? Would love to have this locally on my mac.
Re:I created this small app for you, if you like to write by johngunderman on Sunday December 23, 2012 @01:34PM (#4960170)
This is all client-side. You can just save the page if you want it locally.
Re:I created this small app for you, if you like to write by josscrowcroft on Sunday December 23, 2012 @01:53PM (#4960236)
Sweet, thanks!
Re:I created this small app for you, if you like to write by bjoe_lewis on Sunday December 23, 2012 @01:39PM (#4960179)
ctrl+s
Re:I created this small app for you, if you like to write by bjoe_lewis on Sunday December 23, 2012 @01:42PM (#4960193)
Intuitive. Simple. fast. Would like to have such a native text editor.
Re:I created this small app for you, if you like to write by djbender on Sunday December 23, 2012 @11:59AM (#4959901)
I'm impressed by the simplicity of the Javascript. Well done. :)
Re:I created this small app for you, if you like to write by dsego on Sunday December 23, 2012 @08:19PM (#4961397)
it's really fun :) hey, here's an idea, make a sublime plugin that makes the clickety-click sounds!
Re:I created this small app for you, if you like to write by JMiao on Sunday December 23, 2012 @12:18PM (#4959946)
please ignore the folks asking for a mute button. they can mute if they want to.
Re:I created this small app for you, if you like to write by adkatrit on Sunday December 23, 2012 @12:24PM (#4959968)
...not if you prefer to listen to music on the same device. Is there a mute per tab browser plugin somewhere?
Re:I created this small app for you, if you like to write by Falling3 on Sunday December 23, 2012 @12:41PM (#4960020)
Re:I created this small app for you, if you like to write by steve918 on Sunday December 23, 2012 @12:52PM (#4960049)
All it does is make sounds if you type. If you need a mute button just use any other text editor that doesn't make sounds.