Demo

This shows an integration with the ace editor. The source code is here. The keybindings in the editor are just an example and can be redefined in any way imaginable. To get started I used most of the emacs/paredit bindings plus some more user friendly alternatives for basic operations.

Some of the short-cuts to try out:

Split Alt-Shift-s

Wrap around Alt-( , Alt-[ , Alt-{

, , Indent Tab

Expand selection Ctrl-Shift-Space

Contract selection Ctrl-Alt-Space

...

There will certainly be bugs, I'll be your biggest fan if you report them here!