{"size": 777, "ext": "js", "max_stars_repo_path": "custom/custom.js", "max_stars_repo_name": "liuderchi/jupyter-nodejs", "max_stars_repo_stars_event_min_datetime": "2018-07-13T02:38:59.000Z", "max_stars_repo_stars_event_max_datetime": "2018-07-13T02:38:59.000Z", "max_issues_repo_path": "custom/custom.js", "max_issues_repo_name": "liuderchi/jupyter-nodejs", "max_issues_repo_issues_event_min_datetime": "2018-07-30T00:07:52.000Z", "max_issues_repo_issues_event_max_datetime": "2018-07-30T06:54:44.000Z", "max_forks_repo_path": "custom/custom.js", "max_forks_repo_name": "liuderchi/jupyter-nodejs", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 32.375, "max_line_length": 121, "alphanum_fraction": 0.7014157014}
// this script is ran when page is loaded
//   http://jupyter-notebook.readthedocs.io/en/latest/examples/Notebook/JavaScript%20Notebook%20Extensions.html#custom.js
//   http://blog.rtwilson.com/how-to-get-sublime-text-style-editing-in-the-ipythonjupyter-notebook/

require([
  'codemirror/keymap/sublime',
  'notebook/js/cell',
  'base/js/namespace',
], (sublime_keymap, cell, IPython) => {
  cell.Cell.options_default.cm_config.keyMap = 'sublime';

  if (IPython.notebook) {
    IPython.notebook
      .get_cells()
      .forEach(cell => cell.code_mirror.setOption('keyMap', 'sublime'));
  } else {
    console.warn('IPython.notebook is undefined');
  }
});

// SUBLIME KEYMAPS (macOS):
// * `cmd-d`: expand selection by current selected word
// * `ctrl-cmd-up`: move line up
