laobubu / HyperMD

A WYSIWYG Markdown Editor for browsers. Break the Wall between writing and previewing.
MIT License
1.47k stars 137 forks source link

refactor: extract keymap methods into separate files #45

Open michaelgmcd opened 6 years ago

michaelgmcd commented 6 years ago

Trying to look into #43, but the keymap file is pretty difficult to follow. Its size has a lot to do with it. There is definitely some more work that could be done (the tab file is pretty massive), but this is a start!

laobubu commented 6 years ago

Thanks for your efforts! I was planning to separate the functions into files, and provide them as "CodeMirror Commands". Your pull request will be very helpful!

I Will test and merge in few days.