You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi sorry for the late reply..
i didn't implement that feature, if you are comfortable with typescript you can fork this repo and customise it yourself.
here are some pointers,
this line changes the keymap to sublime for the active cell, you can add custom keymap to apply here
to add custom keymap you probably need to follow https://codemirror.net/doc/manual.html#keymaps
, you can access the codemirror instance by (activeCell.editor as CodeMirrorEditor).editor
so something like
(activeCell.editor as CodeMirrorEditor).editor.setOption("extraKeys", {
"Alt-Up": function(cm) {
cm.execCommand("swapLineUp")
}
});
Just wondering how do I further customize the keymap after installed? For example I would like to change from
swapLineUp : Shift-Ctrl-Up
to
swapLineUp : Alt-Up
The text was updated successfully, but these errors were encountered: