News for hackers. Stuff that matters.
Re:Show HN: a distraction-free Markdown editor by josscrowcroft on Friday December 07, 2012 @09:38PM (#4890386)
The "Saved!" dialog gets a little pesky when repeatedly clicking around or focusing/unfocusing. I think it could just be displayed somewhere on the screen.

But I love the editor - congrats!

If you feel like going more advanced, it'd be amazing to be able to edit while in preview mode - this could be done with contenteditable I think, and the changes merged back into markdown when exiting preview mode...

Re:Show HN: a distraction-free Markdown editor by chaosprophet on Friday December 07, 2012 @09:53PM (#4890419)
Yeah, I could probably put it in the corner same as the Previev mode indicator. Good idea, will get to it.

As for editing in the preview mode, that kinda goes against the whole reason I made this. I want it to be simple and minimal. Markdown also happens to be great for writing, since it doesn't look too different from plain text, ergo you don't get distracted by how your text looks.

Re:Show HN: a distraction-free Markdown editor by josscrowcroft on Friday December 07, 2012 @09:47PM (#4890401)
Threw this together to preview markdown HTML elements - posted here in case it saves anybody some time:

http://pencil.asleepysamurai.com/hag56udxkx#p

If someone edits it I suppose it'll no longer be there, but so be it!

Re:Show HN: a distraction-free Markdown editor by josscrowcroft on Friday December 07, 2012 @09:52PM (#4890416)
Actually, that makes me think - a feature suggestion if possible, would be to "lock" a markdown file to editing (only Preview mode available), and require a password to edit.

This would make the app super useful for a quick-and-nasty publishing solution (similar to gist or pastebin, but also for random thoughts). Good luck!

Re:Show HN: a distraction-free Markdown editor by jrajav on Friday December 07, 2012 @10:15PM (#4890471)
If you like gists, markdown, and quick-and-nasty publishing: http://gist.io/

I'd still prefer something like this for the actual drafting, of course.

Re:Show HN: a distraction-free Markdown editor by bpatrianakos on Friday December 07, 2012 @09:58PM (#4890430)
I followed the link to try to edit it (I wasn't going to save it, I was just curious) and I have to say that on second use, I'm having trouble figuring out how to move from Preview mode to edit mode. Clicking outside the content area seems to move it into preview mode but then no matter what I try I can't get anything editable again.

Maybe its just my OS/browser combo or something. Maybe adding a few instructions somewhere would help.

Re:Show HN: a distraction-free Markdown editor by chaosprophet on Friday December 07, 2012 @10:08PM (#4890452)
Ctrl+p to move in and out of preview mode. Or click the empty margin to the right side of the text.
Re:Show HN: a distraction-free Markdown editor by bpatrianakos on Friday December 07, 2012 @10:30PM (#4890499)
Right, I got the empty margin thing but it seems to behave pretty inconsistently for me. I'm using a pretty small screen. Maybe that's the deal? 11 inch Macbook Air. I don't know. Maybe it's probably one of those real isolated problems.
Re:Show HN: a distraction-free Markdown editor by chaosprophet on Friday December 07, 2012 @10:44PM (#4890529)
Inconsistent as in not changing modes when clicked or changing modes when clicked in places other than the margin?

I suspect it's the latter and I think I know why it's happening. Will fix soon.