diff --git a/IPython/Extensions/clearcmd.py b/IPython/Extensions/clearcmd.py index 562fbda..2d19339 100644 --- a/IPython/Extensions/clearcmd.py +++ b/IPython/Extensions/clearcmd.py @@ -11,6 +11,8 @@ def clear_f(self,arg): %clear out - clear output history %clear in - clear input history + %clear shadow_compress - Compresses shadow history (to speed up ipython) + %clear shadow_nuke - permanently erase all entries in shadow history """ api = self.getapi() diff --git a/IPython/Extensions/ipy_completers.py b/IPython/Extensions/ipy_completers.py index fa11a84..ddf7d54 100644 --- a/IPython/Extensions/ipy_completers.py +++ b/IPython/Extensions/ipy_completers.py @@ -18,7 +18,7 @@ TIMEOUT_STORAGE = 3 #Time in seconds after which the rootmodules will be stored TIMEOUT_GIVEUP = 20 #Time in seconds after which we give up def quick_completer(cmd, completions): - """ Easily create a completer a trivial completer for a command. + """ Easily create a trivial completer for a command. Takes either a list of completions, or all completions in string (that will be split on whitespace) @@ -27,8 +27,7 @@ def quick_completer(cmd, completions): [d:\ipython]|1> import ipy_completers [d:\ipython]|2> ipy_completers.quick_completer('foo', ['bar','baz']) - [d:\ipython]|3> foo boooo - + [d:\ipython]|3> foo b bar baz [d:\ipython]|3> foo ba """ diff --git a/doc/ChangeLog b/doc/ChangeLog index 9e1e3c5..a3a9807 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -6,6 +6,11 @@ * logger.py: Fix bug where blank lines in history were not added until AFTER adding the current line; translated and raw history should finally be in sync with prompt now. + + * ipy_completers.py: quick_completer now makes it easy to create + trivial custom completers + + * clearcmd.py: shadow history compression & erasing 2007-08-21 Ville Vainio