Show More
@@ -11,6 +11,8 b' def clear_f(self,arg):' | |||||
11 |
|
11 | |||
12 | %clear out - clear output history |
|
12 | %clear out - clear output history | |
13 | %clear in - clear input history |
|
13 | %clear in - clear input history | |
|
14 | %clear shadow_compress - Compresses shadow history (to speed up ipython) | |||
|
15 | %clear shadow_nuke - permanently erase all entries in shadow history | |||
14 | """ |
|
16 | """ | |
15 |
|
17 | |||
16 | api = self.getapi() |
|
18 | api = self.getapi() |
@@ -18,7 +18,7 b' TIMEOUT_STORAGE = 3 #Time in seconds after which the rootmodules will be stored' | |||||
18 | TIMEOUT_GIVEUP = 20 #Time in seconds after which we give up |
|
18 | TIMEOUT_GIVEUP = 20 #Time in seconds after which we give up | |
19 |
|
19 | |||
20 | def quick_completer(cmd, completions): |
|
20 | def quick_completer(cmd, completions): | |
21 |
""" Easily create a |
|
21 | """ Easily create a trivial completer for a command. | |
22 |
|
22 | |||
23 | Takes either a list of completions, or all completions in string |
|
23 | Takes either a list of completions, or all completions in string | |
24 | (that will be split on whitespace) |
|
24 | (that will be split on whitespace) | |
@@ -27,8 +27,7 b' def quick_completer(cmd, completions):' | |||||
27 |
|
27 | |||
28 | [d:\ipython]|1> import ipy_completers |
|
28 | [d:\ipython]|1> import ipy_completers | |
29 | [d:\ipython]|2> ipy_completers.quick_completer('foo', ['bar','baz']) |
|
29 | [d:\ipython]|2> ipy_completers.quick_completer('foo', ['bar','baz']) | |
30 | [d:\ipython]|3> foo boooo |
|
30 | [d:\ipython]|3> foo b<TAB> | |
31 |
|
||||
32 | bar baz |
|
31 | bar baz | |
33 | [d:\ipython]|3> foo ba |
|
32 | [d:\ipython]|3> foo ba | |
34 | """ |
|
33 | """ |
@@ -7,6 +7,11 b'' | |||||
7 | added until AFTER adding the current line; translated and raw |
|
7 | added until AFTER adding the current line; translated and raw | |
8 | history should finally be in sync with prompt now. |
|
8 | history should finally be in sync with prompt now. | |
9 |
|
9 | |||
|
10 | * ipy_completers.py: quick_completer now makes it easy to create | |||
|
11 | trivial custom completers | |||
|
12 | ||||
|
13 | * clearcmd.py: shadow history compression & erasing | |||
|
14 | ||||
10 | 2007-08-21 Ville Vainio <vivainio@gmail.com> |
|
15 | 2007-08-21 Ville Vainio <vivainio@gmail.com> | |
11 |
|
16 | |||
12 | * ipmaker.py: finding ipythonrc-PROF now skips ipy_profile_PROF. |
|
17 | * ipmaker.py: finding ipythonrc-PROF now skips ipy_profile_PROF. |
General Comments 0
You need to be logged in to leave comments.
Login now