mil-edit
mil-edit copied to clipboard
A Simple List Editing Interface which exports to Markdown. Like a WYSIWYG or Markdown Preview Tools. Though, Simpler.
mil edit
mil edit is a simple markdown list editor I've been working on. I wanted something different than the WYSIWYG & Dual-pane Markdown options. My main motive was that I only wanted to work with a single list. This is the way I usually take notes and outline my ideas in Markdown.
This was developed and tested for Webkit exclusively. I think it works with Firefox too fine. Let me know if it works in your X rendering engine browser. I kind of doubt it'll work for IE.
All Keybindings
-
Navigation
- ← ↑ ↓ →
- Vim-Esque: [Ctrl] [Shift] J K
-
Indentation
- [Tab], [Shift] [Tab]
- [Shift] ← →
- Vim-Esque: [Ctrl] [Shift] H L
-
Shifting
- [Shift] ← ↑ ↓ →
-
Quick Delete Backwards
- [Ctrl] [Shift] [Delete]
-
Quick Indent Insert
- [Shift] [Enter]
-
Quick New Child
- [Enter] [Enter]
-
Markdown Insertion Styling
- Bold: [Ctrl] B
- Italic: [Ctrl] I
- URL: [Ctrl] U
-
Clear
- [Ctrl] X
-
Switch Mode
- [Ctrl] Q
Loading A Markdown List
mil_edit.load_markdown(markdown-list-string)
Please note, mil edit is only designed to work with markdown lists and no other features of markdown. Your markdown-list-string
should be a new line delineated markdown list. See start_on_load.js
for an example.
Exporting markdown
mil_edit.dump_markdown(tab-size-num)
tab-size-num will default to 2 if no preference is given.
Released under CC0
mil edit - a simple markdown list editor Written in 2013 by mil - [email protected] To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.
Contributing
The usual fork-pull routine is encouraged. Feel free to hit me up on IRC if you wanna chat code, or philosophy. (irc.freenode.net - nick: mil).
Check out the HACKING file, if you be a hacker.
Credits
mil edit was made possible due to several other projects. mil edit is CC0, but please respect the licenses of the following projects.
- Zepto.js, divide by four, hence good
- _.js, lettin us all be lazy
- to-markdown, the work was done
- markdown-js, quite nutritious
- famfamfam, damn fly
- subtle, so ambient