Show More
@@ -0,0 +1,3 | |||||
|
1 | * In notebook, Showing tooltip on tab has been disables to avoid conflict with | |||
|
2 | completion, Shift-Tab could still be used to invoke tooltip when inside | |||
|
3 | function signature and/or on selection. |
@@ -209,12 +209,6 var IPython = (function (IPython) { | |||||
209 | // Don't autocomplete if the part of the line before the cursor |
|
209 | // Don't autocomplete if the part of the line before the cursor | |
210 | // is empty. In this case, let CodeMirror handle indentation. |
|
210 | // is empty. In this case, let CodeMirror handle indentation. | |
211 | return false; |
|
211 | return false; | |
212 | } else if ((pre_cursor.substr(-1) === "("|| pre_cursor.substr(-1) === " ") && IPython.config.tooltip_on_tab ) { |
|
|||
213 | IPython.tooltip.request(that); |
|
|||
214 | // Prevent the event from bubbling up. |
|
|||
215 | event.stop(); |
|
|||
216 | // Prevent CodeMirror from handling the tab. |
|
|||
217 | return true; |
|
|||
218 | } else { |
|
212 | } else { | |
219 | event.stop(); |
|
213 | event.stop(); | |
220 | this.completer.startCompletion(); |
|
214 | this.completer.startCompletion(); |
@@ -67,7 +67,6 var IPython = (function (IPython) { | |||||
67 | 'diff' :{'reg':[/^diff/]} |
|
67 | 'diff' :{'reg':[/^diff/]} | |
68 | }, |
|
68 | }, | |
69 |
|
69 | |||
70 | tooltip_on_tab : true, |
|
|||
71 | }; |
|
70 | }; | |
72 |
|
71 | |||
73 | // use the same method to merge user configuration |
|
72 | // use the same method to merge user configuration |
@@ -234,7 +234,7 | |||||
234 | "cell_type": "markdown", |
|
234 | "cell_type": "markdown", | |
235 | "metadata": {}, |
|
235 | "metadata": {}, | |
236 | "source": [ |
|
236 | "source": [ | |
237 |
" |
|
237 | "Shift-Tab on selection, or after `(` brings up a tooltip with the docstring:" | |
238 | ] |
|
238 | ] | |
239 | }, |
|
239 | }, | |
240 | { |
|
240 | { |
General Comments 0
You need to be logged in to leave comments.
Login now