From ee375e02d54789468f42df028366f75d4ded3f99 2014-07-07 04:30:03 From: MinRK Date: 2014-07-07 04:30:03 Subject: [PATCH] Backport PR #5803: unify visual line handling Extra change on top of @ivanov pr #5768 to have more consistent handling of visual lines. In a long wrapped line End/Cmd-Right will go to the end of the visual line which seem more logical. Cmd-Left beginning of line. I did note rebind Ctrl-Left because there is already custom logic in code mirror for "smart" beginning of line. --- diff --git a/IPython/html/static/notebook/js/cell.js b/IPython/html/static/notebook/js/cell.js index 032b413..5a481c5 100644 --- a/IPython/html/static/notebook/js/cell.js +++ b/IPython/html/static/notebook/js/cell.js @@ -70,7 +70,12 @@ var IPython = (function (IPython) { cm_config : { indentUnit : 4, readOnly: false, - theme: "default" + theme: "default", + extraKeys: { + "Cmd-Right":"goLineRight", + "End":"goLineRight", + "Cmd-Left":"goLineLeft" + } } };