From d6b9c9408b895b08abd10aa8dddffa50ad94eaea 2012-06-17 11:37:55 From: Matthias BUSSONNIER Date: 2012-06-17 11:37:55 Subject: [PATCH] Allow path completion on notebook. add -(dash) /(slash) \(antislash for windows) : (colon) ~(tilde) as part of words symbol for notebook completer to help for path completion Fixes #1969 --- diff --git a/IPython/frontend/html/notebook/static/js/completer.js b/IPython/frontend/html/notebook/static/js/completer.js index 1e2a287..ac2d95c 100644 --- a/IPython/frontend/html/notebook/static/js/completer.js +++ b/IPython/frontend/html/notebook/static/js/completer.js @@ -104,7 +104,7 @@ var IPython = (function (IPython) { // we need to check that we are still on a word boundary // because while typing the completer is still reinvoking itself - if (!/[0-9a-z._]/i.test(pre_cursor)) { + if (!/[0-9a-z._/\\:~-]/i.test(pre_cursor)) { this.close(); return; }