Show HN: a distraction-free Markdown editor
pencil.asleepysamurai.com
pencil.asleepysamurai.com
For reference, the original title I submitted was 'Show HN: Sideproject - I built a distraction free Markdown editor last weekend'. Seriously, the moderating is getting quite heavy handed here.
But despite my jealousy and, I must admit, bitterness, I have to say nice work. I (hate to say :) ) I really like this.
Btw, you should totally use hnpickup to find the correct time to submit to HN. Worked like a charm for me.
Since we're here: I'm immediately put off from writeapp for two very simple reasons: 1) very cluttered homepage, everything is extremely verbose 2) requires sign-up (and no OAuth) before I can see anything.
Can you imagine github's homepage with a "Publish git repositories and make them available for co-workers and contributors to commit, track issues and send patches to" in big bold letters? You are in desperate need of better copy.
The actual app is nice, I prefer it's UI over the OP's. Other issues: Museo in the preview doesn't look that good, the options button is not working, and I can't figure out how to get a public link to a post.
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...
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.
http://pencil.asleepysamurai.com/hag56udxkx#p
If someone edits it I suppose it'll no longer be there, but so be it!
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!
I'd still prefer something like this for the actual drafting, of course.
Maybe its just my OS/browser combo or something. Maybe adding a few instructions somewhere would help.
I suspect it's the latter and I think I know why it's happening. Will fix soon.
1. Fixed the space+shift=tab bug.
2. Fixed the inconsistent mode jumping and saving bug.
3. File Saved prompt is only shown the first time the file is saved. For subsequent saves, a label is displayed in top left corner.
4. Links are opened in a new tab so as not to lose unsaved work.
Also, I have cleaned up the code slightly and open sourced it using the MIT license. [https://github.com/asleepysamurai/pencil]
Fork, change and send me a pull request and I'll gladly look into it.
- I have no idea how to make 'preview' button come up (and it doesn't look clickable when it does)
- Sometimes it inserts a tab character instead of a space in the middle of a sentence
- What causes it to save and how do I avoid the repeat prompt?
- How do I get the URL for sharing?
Overall it's nice, but it could do with some (auto-hide) UI for save/edit/preview.
2. It inserts a tab when you hit shift+space. I initially put this in because I thought it would be an easy way to get tabs on the iphone, but apparently the ios shift key is not really a sift key so it doesnt work on the iphone anyway. Have to remove this.
3. Ctrl+s or click the empty left margin to save. The repeat prompt will be changed to prompt on first save only soon.
4. The url to share is the one in the addressbar.
You should give it distinctive syntax higlighting feature. Ace, for example, is great with that. You should provide easy way to indent/unindent text blocks with four spaces (tab and shift+tab). Operations with selections (linkify selected text, turn current paragraph into code section or, if i may, header).
Also, images. See latest Github take on images drag'n'drop [feature][1]. That would, of course, require server-side support.
I can write markdown in textarea. But I'd rather do that in proper editor which more or less looks and acts like one :)
[1]: https://github.com/blog/1347-issue-attachments "Github Issue Attachments"
: the update delay is a tiny bit high for my taste, or maybe just lacks communications/notifications, a tiny gizmo (spinner, led, hud..).
I noticed this when I tried to do this:
Markdown
========
but the = signs weren't lining up. Drives me nuts! (I must have OCD ;-)Very good idea, if you will open source it i'll consider using it as standard interface on a project i have (with your permission obviously :)) That said, awesome job!
- Syntax highlighting, with subtle colors
- A dismissable help popup in the beginning
- Some means of getting a clean HTML output
[Bam!](javascript:alert(1);)
[](Any url in here) should be xss cleaned. But it isn't!